{"uid":"cap_xID-r2Pf5w_j2t02pbZJC","slug":"machine-shop-chunk-text-20dc860b","name":"Machine Shop – Chunk Text","description":"Turn Apify product scrape results into safe catalog updates with Catalog Update Gate. Find evidence in supplied documents, compare snapshots, extract typed JSON fields, inspect x402 quotes and assess API migrations. Preview inputs, evidence and cost for free. No live web search, scheduled monitoring or third-party purchasing.","url":"https://api.pay-forge.online/v1/chunk-text?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","title":"Text","maxLength":50000},"overlap":{"type":"integer","title":"Overlap","default":150,"maximum":9999,"minimum":0},"chunk_size":{"type":"integer","title":"Chunk Size","default":1500,"maximum":10000,"minimum":64}}},"responseSchema":{"type":"json","example":{"chunks":[{"end":11,"text":"Hello world","index":0,"start":0}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IbjAG49OqaYWvcBzEeTC_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Splits a long text string into overlapping fixed-size chunks with character offsets and indices","exampleAgentPrompt":"Split this 10,000-character article into chunks of 1,500 characters with 150 characters of overlap so I can embed each piece: [article text here]","exampleUseCases":[{"title":"RAG pipeline document preprocessing","prompt":"Take this long research paper text and split it into 1,000-character chunks with 200 characters of overlap so I can store each chunk in a vector database for semantic search."},{"title":"LLM context window preparation","prompt":"I have a transcript that's too long for a single LLM call — break it into 2,000-character segments with 100-character overlap and give me the start and end positions of each chunk."},{"title":"Evidence extraction chunking","prompt":"Chunk this contract document into 500-character pieces with 50-character overlap so I can scan each chunk for specific clauses and know exactly where in the original text each chunk came from."}],"resultDescription":"An array of chunk objects, each containing the chunk index, the extracted text substring, and its start and end character positions within the original input string.","failureModes":["Text exceeds 50,000 character limit — request rejected","chunk_size below 64 or above 10,000 — validation error","overlap equal to or greater than chunk_size — may produce degenerate chunks","Empty or missing text field — returns empty chunks array or error","Payment not provided or insufficient — 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need deterministic, offset-aware text chunking with configurable size and overlap for downstream embedding, retrieval, or evidence-extraction workflows. It is ideal when you need character-level start/end positions for each chunk (e.g. to cite sources), when preparing documents for vector databases, or when working within the Machine Shop document-analysis ecosystem where other endpoints consume chunked inputs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:39:55.441Z","isFirstParty":false,"canonicalSlug":"machine-shop-chunk-text-20dc860b"}