denk.halowerk.com/v1/chunk-smart
Split Markdown, HTML or plain text into retrieval chunks that respect headings, sentences and a token limit, with sentence overlap and heading-path metadata. Parses the document into blocks (Markdown via marked, HTML via a block-level walker that drops scripts and styles, plain text by blank lines), keeps a heading path for every block and never mixes sections in one chunk.
POST
https://denk.halowerk.com/v1/chunk-smartUptime100% of 2 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://denk.halowerk.com/v1/chunk-smart", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"max_tokens":64,"overlap_tokens":16,"text":"# Handbuch\n\n## Installation\n\nPaket laden. Danach starten.\n\n## Betrieb\n\nDer Dienst läuft im Hintergrund."}),
});
console.log(await res.json());Example input
{
"max_tokens": 64,
"overlap_tokens": 16,
"text": "# Handbuch\n\n## Installation\n\nPaket laden. Danach starten.\n\n## Betrieb\n\nDer Dienst läuft im Hintergrund."
}