agents.204-168-199-108.sslip.io/v1/util/chunk-text
Split long text (inline or from a URL) into chunks sized in tokens, words or characters, with overlap, breaking at sentence and paragraph boundaries (never mid-word; very long sentences are split at word boundaries). Each chunk has index, text, chars, words and estimated tokens. Use before embedding, summarising long documents, or fitting text into a model's context window.
GET
https://agents.204-168-199-108.sslip.io/v1/util/chunk-textUptime100% of 1 check 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://agents.204-168-199-108.sslip.io/v1/util/chunk-text?overlap=4&size=12&text=Agents+pay+per+call.+They+use+USDC+on+Base.%0A%0Ax402+makes+this+simple.+A+server+answers+402+with+a+price.+The+agent+pays+and+retries.&unit=words");
console.log(await res.json());Example input
{
"overlap": 4,
"size": 12,
"text": "Agents pay per call. They use USDC on Base.\n\nx402 makes this simple. A server answers 402 with a price. The agent pays and retries.",
"unit": "words"
}