{"uid":"cap_tEDpTNTQLLq0FzBfSjRs_","slug":"keyronne-text-chunker-47713c5c","name":"Keyronne Text Chunker","description":"Split long text into retrieval-ready chunks along natural boundaries — paragraphs, sentences, or markdown sections — with configurable size, overlap, character offsets and approximate token counts per chunk. Deterministic and language-agnostic. Built for RAG ingestion and embedding pipelines. POST a JSON body like: {\"text\":\"Long document...\",\"strategy\":\"paragraphs\",\"maxChars\":2000,\"overlap\":200}","url":"https://keyronne.com/api/chunk-text?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"The text to chunk (up to ~900k characters)."},"overlap":{"type":"integer","default":200,"minimum":0,"description":"Characters of trailing context carried into the next chunk."},"maxChars":{"type":"integer","default":2000,"maximum":50000,"minimum":100},"strategy":{"enum":["paragraphs","sentences","markdown","chars"],"type":"string","default":"paragraphs"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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":{"p10Cents":"0.2000","medianCents":"0.2000","p90Cents":"0.2000","minCents":"0.2000","maxCents":"0.2000","p95Cents":"0.2000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_u1mLTvcWkkC4UrFGKP-fu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Splits long text into retrieval-ready chunks along paragraphs, sentences, markdown sections, or fixed character boundaries, returning character offsets and approximate token counts per chunk.","exampleAgentPrompt":"Chunk this 5000-word article into paragraph-based segments of up to 2000 characters each with a 200-character overlap so I can embed them for RAG — here's the text: [long document text].","exampleUseCases":[{"title":"Prepare legal documents for semantic search","prompt":"I need to split this 10-page contract into chunks by markdown sections with token counts so I can embed each one separately for a searchable knowledge base. Here's the document: [contract text]"},{"title":"Break long customer support articles into overlapping pieces","prompt":"Take this customer guide and chunk it by sentences into 1500-character segments with 300-character overlap — I want to feed these chunks to an embedding model for a support chatbot. Here's the text: [article text]"},{"title":"Segment product documentation for LLM context windows","prompt":"Split this API documentation into fixed 2000-character chunks with character offsets so I can track which parts of the source each chunk came from when building a retrieval system. Here's the documentation: [doc text]"}],"resultDescription":"Returns an array of chunk objects, each containing the chunk text, start and end character offsets within the original document, and an approximate token count. The response is deterministic and language-agnostic, making it suitable for direct ingestion into embedding or vector-store pipelines.","failureModes":["Text exceeds ~900k character limit — request rejected","maxChars out of range (below 100 or above 50000) — validation error","Invalid strategy enum value — returns error","Empty text field — returns empty chunk array or error","Malformed JSON body — 400 bad request","Payment not included or insufficient — 402 payment required"],"whenToPreferThis":"Choose this endpoint when you need deterministic, language-agnostic text splitting with configurable chunking strategies (paragraphs, sentences, markdown sections, or fixed chars), explicit character offsets, and approximate token counts — especially for RAG ingestion or embedding pipeline preprocessing. Prefer it over ad-hoc string splitting when you need overlap control, markdown-aware segmentation, or reproducible chunk boundaries across runs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-09T18:48:16.566Z","isFirstParty":false,"canonicalSlug":"keyronne-text-chunker-47713c5c"}