{"uid":"cap_H5FwgWn__6DRim4gkRXkw","slug":"sitecheck-text-chunker-50e192a5","name":"SiteCheck Text Chunker","description":"Split a long text into chunks for retrieval (RAG): split on paragraphs, then sentences, then words, each chunk within maxTokens (default 500) with the overlap you ask for (default 50 tokens). Each chunk has its index, text, start and end character offsets and an estimated token count (characters divided by 4, a rough rule for English). Up to 1 MB and 2,000 chunks.","url":"https://api.sitecheck-api.workers.dev/api/text/chunk?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"The text, up to 1 MB (JSON body field)"},"overlap":{"type":"string","description":"Tokens shared by neighbouring chunks, 0 up to maxTokens minus 1, default 50"},"maxTokens":{"type":"string","description":"Largest chunk in estimated tokens, 20 to 8000, default 500"}}},"responseSchema":{"type":"json","example":{"count":2,"chunks":[{"end":58,"text":"Alpha beta gamma delta. Epsilon zeta eta theta iota kappa.","index":0,"start":0,"estimatedTokens":15},{"end":91,"text":"Epsilon zeta eta theta iota kappa.\n\nLambda mu nu xi omicron pi rho.","index":1,"start":24,"estimatedTokens":17}],"source":"Computed here (pure code): paragraph, sentence and word boundaries","overlap":5,"checkedAt":"2026-10-15T13:48:02.048Z","maxTokens":20,"tokenEstimate":"characters / 4"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4bNBjfyCFzi9cSm6Pl-EK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Splits a text string into overlapping token-bounded chunks at paragraph, sentence, and word boundaries","exampleAgentPrompt":"Chunk this article text into segments of at most 500 tokens each, with an overlap of 50 tokens between neighbouring chunks, so I can embed them for a RAG pipeline.","exampleUseCases":[{"title":"RAG pipeline document ingestion","prompt":"I have this 10,000-word research paper I scraped as plain text — can you split it into 500-token chunks with 50-token overlap so I can push each chunk into my vector database for semantic search?"},{"title":"LLM context window preparation","prompt":"Break this customer support transcript into pieces no larger than 1000 tokens each, with a 100-token overlap between consecutive chunks, so I can feed each one into the LLM without hitting the context limit."},{"title":"Embedding batch for short passages","prompt":"Take this blog post text and chunk it into 200-token segments with zero overlap — I want tight, non-repeating chunks to embed and index for a FAQ retrieval system."}],"resultDescription":"A JSON object containing the total chunk count, an array of chunk objects (each with index, start offset, end offset, text, and estimated token count), the overlap and maxTokens settings used, a description of the boundary strategy (paragraph, sentence, word), a token estimation method note, and a timestamp.","failureModes":["Text exceeds 1 MB limit — request rejected","maxTokens outside 20–8000 range — validation error","overlap value >= maxTokens — validation error","Empty or missing text field — error response","Malformed JSON body — 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need server-side, pure-code text chunking that respects paragraph, sentence, and word boundaries without any ML model overhead. Ideal for RAG pipelines, embedding batch preparation, and LLM context-window splitting where you want deterministic, reproducible chunking with configurable token size and overlap, at a very low per-call cost ($0.001).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:43:46.439Z","isFirstParty":false,"canonicalSlug":"sitecheck-text-chunker-50e192a5"}