{"uid":"cap_gD65TlhWghWrZ20nHQKRm","slug":"preplayer-ai-text-chunker-09e85bdb","name":"PrepLayer.ai Text Chunker","description":"Split long text into pieces for RAG retrieval. Strategies: 'sentence' packs whole sentences into a size budget and never splits mid-sentence; 'paragraph' prefers \\n\\n boundaries; 'fixed' is a hard char window with overlap. The highest-value endpoint for agents that build retrieval pipelines.","url":"https://api.maximusmediahouse.com/v1/chunk?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"size":{"type":"integer","default":1000,"maximum":100000,"minimum":1,"description":"Maximum chars per chunk."},"text":{"type":"string","description":"Source text (1-1000000 chars)."},"overlap":{"type":"integer","default":200,"maximum":99999,"minimum":0,"description":"Overlap chars (fixed strategy only)."},"strategy":{"enum":["fixed","sentence","paragraph"],"type":"string","default":"sentence","description":"Splitting strategy."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hb2rp23vtpUzHs0h9yjUA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","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 chunks for RAG retrieval pipelines using sentence-aware, paragraph-aware, or fixed-window strategies.","exampleAgentPrompt":"Take this 50,000-character article and split it into sentence-aware chunks of up to 1000 characters each so I can embed them for a RAG pipeline.","exampleUseCases":[{"title":"Chunking docs for vector search","prompt":"I have a long legal document — about 200,000 characters — that I need to break into paragraph-aligned chunks of up to 1500 characters each so I can embed them in my Pinecone index. Can you chunk it using the paragraph strategy?"},{"title":"Sliding window for dense retrieval","prompt":"Split this research paper into fixed 800-character windows with 150 characters of overlap so nothing important falls between chunk boundaries — I'm building a dense retrieval system."},{"title":"Sentence-safe chunking for chatbot KB","prompt":"I need to chunk these customer support articles into pieces no larger than 600 characters, but make sure you never cut mid-sentence — use the sentence strategy so the chunks read naturally when retrieved."}],"resultDescription":"An array of text chunk strings, each respecting the requested size budget and strategy: sentence-aware chunks never break mid-sentence, paragraph chunks split at double-newline boundaries, and fixed chunks are hard character windows with optional overlap.","failureModes":["Text exceeds 1,000,000 character limit — request rejected","Overlap value equals or exceeds size value — invalid configuration error","Invalid strategy enum value — validation error returned","Empty text input — returns empty chunk array or error","Network timeout on very large payloads close to the 1M char limit"],"whenToPreferThis":"Choose this endpoint when you need deterministic, rule-based text chunking without LLM calls — especially when sentence or paragraph boundary preservation matters for RAG quality. It is faster and cheaper than model-based chunkers and supports large inputs up to 1M characters. Prefer it over manual splitting when you need overlap control or unicode-safe segmentation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:38:11.688Z","isFirstParty":false,"canonicalSlug":"preplayer-ai-text-chunker-09e85bdb"}