Skip to content
Fourohtwo

saylorinnovations.com/api/text/chunk

Split text into sentence, paragraph or fixed-size chunks for RAG with optional overlap, character offsets and a rough token estimate per chunk

BaseAnswering
GEThttps://saylorinnovations.com/api/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://saylorinnovations.com/api/text/chunk?mode=sentence&size=100&text=First+sentence+here.+Second+sentence+follows+it.+Third+one+ends+the+paragraph.%0A%0ANew+paragraph+starts+now.+It+has+two+sentences.");
console.log(await res.json());

Example input

{
  "mode": "sentence",
  "size": "100",
  "text": "First sentence here. Second sentence follows it. Third one ends the paragraph.\n\nNew paragraph starts now. It has two sentences."
}

More from Saylor Innovations Data DeskProvider status