{"uid":"cap_Mka_W3xHAxwhBQFvynGjp","slug":"text-chunking-api-a2939e71","name":"Text Chunking API","description":"Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.","url":"https://x402-gateway-production-1f21.up.railway.app/text/chunk?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["text"],"properties":{"size":{"type":"integer","maximum":50000,"minimum":50},"text":{"type":"string","maxLength":500000},"overlap":{"type":"integer","maximum":10000,"minimum":0}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"status":"ready"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_iSJYr9-i6nTfN9l7pdfE9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Splits a large text string into overlapping or non-overlapping chunks of a specified size for RAG ingestion and downstream processing","exampleAgentPrompt":"Split this 10,000-word article into chunks of 512 characters with an overlap of 50 characters so I can load them into my vector store.","exampleUseCases":[{"title":"RAG pipeline document prep","prompt":"Take this research paper text and chunk it into 1000-character pieces with a 100-character overlap so I can embed each chunk and load them into my Pinecone index."},{"title":"Semantic search index building","prompt":"I need to break this product documentation text into 300-character segments with no overlap so I can run embeddings on each piece for our search engine."},{"title":"LLM context window management","prompt":"This support transcript is too long to fit in one prompt — can you split it into 800-character chunks with 80 characters of overlap so I can process it section by section?"}],"resultDescription":"Returns a JSON response with an array of text chunks derived from the input, split according to the requested size and overlap parameters, ready for embedding or downstream NLP tasks.","failureModes":["Text exceeds 500,000 character limit — returns validation error","Chunk size outside allowed range (50–50,000) — returns schema validation error","Overlap exceeds chunk size — may return error or unexpected behavior","Missing required 'text' field — returns 400 bad request","Payment not provided or insufficient — returns x402 payment required response"],"whenToPreferThis":"Choose this endpoint when you need deterministic, machine-payable text chunking at $0.001 USDC per call via x402 protocol, especially in automated agent pipelines that need to prepare text for RAG ingestion, vector embedding, or LLM context windowing without standing up your own chunking infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:44:13.092Z","isFirstParty":false,"canonicalSlug":"text-chunking-api-a2939e71"}