Skip to content
Fourohtwo

Text chunking for RAG

mpp-docs.fmf-x402.workers.dev/mpp/text/chunk

Text chunking for RAG — Split text or Markdown into retrieval-ready chunks that respect headings, paragraphs and sentences. Params: size (target tokens, default 400, 50-4000), overlap (tokens, default 40). Returns chunks with heading path, char offsets and token estimates. Body: JSON {text} or raw text. Max 2 MB. Price $0.001 per call.

BaseAnswering
GEThttps://mpp-docs.fmf-x402.workers.dev/mpp/text/chunk

Uptime100% 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://mpp-docs.fmf-x402.workers.dev/mpp/text/chunk?size=400&text=%23+Title%0A%0AFirst+paragraph.%0A%0ASecond+paragraph.");
console.log(await res.json());

Example input

{
  "size": "400",
  "text": "# Title\n\nFirst paragraph.\n\nSecond paragraph."
}

More from FMF Tools FMF Tools Doc ToolsProvider status