# Delx Commerce Batch Chunk Plan

> Delx Commerce Batch Chunk Plan is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Calculates how to split a list of N items into evenly-sized chunks of a given size, returning index ranges for each chunk.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/batch-chunk-plan?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-batch-chunk-plan-2619dc0f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0f6T3X4adJkJoGw6ySJkf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-batch-chunk-plan-2619dc0f -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-batch-chunk-plan-2619dc0f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
