{"uid":"cap_e0i6G6iCurSTxqa74DV_d","slug":"delx-commerce-text-chunk-plan-f6fea30b","name":"Delx Commerce — Text Chunk Plan","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/text-chunk-plan?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"UTF-8 text to encode, chunk, index, or analyze (caller-supplied only)."},"overlap":{"type":"number","description":"Characters of overlap between consecutive chunks (0 .. chunk_size-1)."},"chunk_size":{"type":"number","description":"Characters per chunk (1–20000); example uses small sizes for demos."}}},"responseSchema":{"type":"json","example":{"chunks":[{"end":4,"chars":4,"index":0,"start":0},{"end":7,"chars":4,"index":1,"start":3},{"end":10,"chars":4,"index":2,"start":6}],"schema":"delx/util-text-chunk-plan/v1","overlap":1,"truncated":false,"chunk_size":4,"text_chars":10,"chunk_count":3}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_V61Peo2CdoeffHyC4RG40","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Splits a UTF-8 text string into overlapping character-based chunks and returns the index plan (start, end, char count) for each chunk without performing embedding or storage.","exampleAgentPrompt":"Split this article into chunks of 512 characters with a 64-character overlap and show me the start, end, and size of each chunk: 'The quick brown fox jumps over the lazy dog. Natural language processing enables machines to understand human text...'","exampleUseCases":[{"title":"RAG pipeline chunk planning","prompt":"Before I embed this 10,000-character product manual into a vector database, can you generate a chunk plan with 1000-character chunks and 100-character overlap so I can review the boundaries first?"},{"title":"Document segmentation preview","prompt":"I have this legal contract text and I want to see how it would be split into 256-character chunks with a 32-character overlap — show me the index, start, and end position of every chunk."},{"title":"Counting chunks before processing","prompt":"How many chunks would this blog post produce if I use 400-character chunks with 40 characters of overlap? Here's the text: 'Artificial intelligence is transforming every industry...'"}],"resultDescription":"Returns a JSON object containing an array of chunk descriptors (each with index, start, end, and chars fields), along with metadata: total text_chars, chunk_count, the effective chunk_size and overlap used, and a truncated flag indicating whether the input was cut short. Schema version is identified as delx/util-text-chunk-plan/v1.","failureModes":["Invalid chunk_size (0 or >20000) returns a validation error","overlap >= chunk_size causes a parameter conflict error","Non-UTF-8 or malformed text body may return a 400 bad request","Payment failure or insufficient USDC balance on Base/Solana blocks the call with a 402 response","Empty text string may return a chunk_count of 0 with an empty chunks array"],"whenToPreferThis":"Use this endpoint when you need a deterministic, character-level chunk plan for a text string — especially as a preprocessing step before embedding or vector indexing — and want verifiable, pay-per-call pricing with no signup. Prefer it over rolling your own chunker when you need exact start/end offsets and overlap control in a single API call, or when operating in an agentic workflow that already uses x402 micropayments on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:44.805Z","isFirstParty":false,"canonicalSlug":"delx-commerce-text-chunk-plan-f6fea30b"}