Splits text into chunks for RAG and LLM context windows
159-65-130-200.sslip.io/api/text-chunker
Splits text into chunks for RAG and LLM context windows. Deterministic, no LLM. Input: {"text": string (max 200k chars), "max_chars": int 10-20000 (default 1000), "overlap_chars": int >=0 and < max_chars (default 0), "split": "paragraph" | "sentence" | "char" (default paragraph)}. Paragraph mode packs whole paragraphs (blank-line separated); sentence mode packs whole sentences; char mode makes fix
POST
https://159-65-130-200.sslip.io/api/text-chunkerUptime100% of 3 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://159-65-130-200.sslip.io/api/text-chunker", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"max_chars":40,"overlap_chars":0,"split":"sentence","text":"Alpha beta gamma. Delta epsilon! Zeta eta theta?\n\nIota kappa lambda mu nu."}),
});
console.log(await res.json());Example input
{
"max_chars": 40,
"overlap_chars": 0,
"split": "sentence",
"text": "Alpha beta gamma. Delta epsilon! Zeta eta theta?\n\nIota kappa lambda mu nu."
}