{"uid":"cap_0f6T3X4adJkJoGw6ySJkf","slug":"delx-commerce-batch-chunk-plan-2619dc0f","name":"Delx Commerce Batch 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/batch-chunk-plan?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chunk_size":{"type":"integer","description":"Chunk Size supplied to Batch Chunk Plan; used only for this bounded calculation and processed in memory without retention."},"item_count":{"type":"integer","description":"Item Count supplied to Batch Chunk Plan; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"chunks":[{"count":25,"index":0,"start":0,"end_exclusive":25},{"count":25,"index":1,"start":25,"end_exclusive":50},{"count":25,"index":2,"start":50,"end_exclusive":75},{"count":25,"index":3,"start":75,"end_exclusive":100}],"chunk_count":4},"schema":"delx/util-batch-chunk-plan/v1","status":"pass","evidence":{"retained":false,"input_sha256":"1c1864f89fcfbfd9c21b66bbe5be9c8be513a1fb836166a02d8125ac169ca095","external_calls":0},"operation":"data_batch:batch_chunk_plan"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.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_MwoztYrHzfjy7pG5l3ThY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates how to split a list of N items into evenly-sized chunks of a given size, returning index ranges for each chunk.","exampleAgentPrompt":"I have 500 items to process and want to handle them in batches of 25 — can you calculate the chunk plan so I know the start and end index for each batch?","exampleUseCases":[{"title":"Parallel API call planning","prompt":"I need to call a downstream API for each of 1000 records, but it only handles 100 at a time — can you generate the batch chunk plan so I know which index ranges to send in each call?"},{"title":"Paginated data export slicing","prompt":"I'm exporting 750 database rows and want to page through them in groups of 50. Can you give me the chunk plan with start and end indexes for each page?"},{"title":"Worker queue distribution","prompt":"I have 320 tasks to distribute across workers and each worker should get exactly 64 tasks — calculate the chunk boundaries so I can assign the right slice to each worker."}],"resultDescription":"Returns a JSON object containing an array of chunk descriptors — each with an index, start offset, end_exclusive offset, and item count — plus the total number of chunks. Also includes an evidence block confirming no data was retained and no external calls were made, along with an input hash for verifiability.","failureModes":["Missing or non-integer chunk_size or item_count fields returns a validation error","chunk_size of zero or negative causes a divide-by-zero or invalid input error","Very large item_count integers may exceed server-side bounds","Payment not included or insufficient USDC triggers a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to programmatically plan batch iterations over a known-size list before actually processing data — especially when the chunk plan needs to be deterministic, verifiable (via input hash and evidence block), and computed without storing any input data. It is particularly useful in agentic workflows that must distribute work across parallel workers or paginate through large datasets with precise index ranges.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:01.003Z","isFirstParty":false,"canonicalSlug":"delx-commerce-batch-chunk-plan-2619dc0f"}