# Chunk Arrays for Agents

> Chunk Arrays for Agents is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Splits a JSON array into fixed-size chunks to support batching, pagination, and payload-limit compliance

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/list-chunk
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chunk-arrays-for-agents-0f3a84ff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uydURDGOPVsLxT5kqRX6X

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 chunk-arrays-for-agents-0f3a84ff -d '<json body>'
```

Example prompt: Split this list of 500 product IDs into chunks of 25 so I can process them in batches without hitting the payload limit.

## When to prefer this

Choose this endpoint when your agent pipeline needs to batch tool calls, enforce pagination, or stay under downstream payload limits without implementing array-splitting logic in your own code. It is deterministic, requires no API key or subscription, costs $0.001 USDC per call via x402 on Base, and returns no side effects — ideal for lightweight preprocessing steps in agentic workflows.

## Known failure modes

- items array exceeds 10,000 item cap — request rejected with a structured validation error (not billed)
- chunk_size less than 1 — validation error returned
- missing or malformed items field — structured validation error
- payment not provided or insufficient — x402 payment required response

## How this service works

Chunk a JSON array. Use to batch tool calls, page results, or stay under payload limits. Returns array chunks with the requested size (bounded input). $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.

## Output

An array of sub-arrays, each containing at most chunk_size items from the original input. The final chunk may be smaller if the total item count is not evenly divisible. Response is deterministic first-party JSON with no extra metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "size": {
   "type": "integer",
   "maximum": 64,
   "minimum": 4,
   "description": "Optional NanoID length (4–64). Default 21 when omitted."
  },
  "items": {
   "type": "array",
   "items": {},
   "maxItems": 10000,
   "description": "JSON array to split into chunks. Cap 10k items per call."
  },
  "chunk_size": {
   "type": "integer",
   "minimum": 1,
   "description": "Optional chunk length for list_chunk (handler default when omitted)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "size": 10,
  "chunks": [
   [
    "alpha",
    "beta",
    "gamma",
    "delta"
   ]
  ],
  "schema": "delx/list-chunk/v1",
  "chunk_count": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chunk-arrays-for-agents-0f3a84ff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
