# JSON Array Chunk

> JSON Array Chunk 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-15).

Splits a JSON array of integers into ordered, bounded sub-arrays (chunks) of a specified size, returning deterministic versioned results.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/json-array-chunk
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-array-chunk-2f8fd6e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ATh2pbulHDoO5ZoF7bptn

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 json-array-chunk-2f8fd6e6 -d '<json body>'
```

Example prompt: Can you split this list of integers [1,2,3,4,5,6,7,8,9,10] into chunks of 3 so I can hand each group to the next step in my pipeline?

## When to prefer this

Choose this endpoint when an agent needs a stateless, deterministic, versioned record of chunking a bounded integer array — particularly when downstream tools enforce strict contracts and you need reproducible, auditable results. Prefer it over ad-hoc in-memory splitting when the transformation output needs a versioned envelope for traceability or when the chunking logic must be consistent across distributed agent steps.

## Known failure modes

- Array exceeds 256-item maximum — request rejected with validation error
- chunk_size is zero or negative — returns validation error
- items array is empty — may return empty chunk set or validation finding
- Non-integer values in array — schema validation failure
- Missing required fields — 400-level error response

## How this service works

JSON Array Chunk: JSON Array Chunk chunks a JSON array into bounded ordered groups from bounded caller-supplied values without an external provider. Call JSON Array Chunk before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Array Chunk as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, st…

## Output

Returns a versioned deterministic JSON object containing the chunked sub-arrays (ordered groups), element counts per chunk, total item count, normalized values, and a versioned result contract identifier confirming the transformation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {
    "type": "integer"
   },
   "maxItems": 256,
   "description": "Items supplied to JSON Array Chunk; used only for this bounded calculation and processed in memory without retention."
  },
  "chunk_size": {
   "type": "integer",
   "description": "Chunk Size supplied to JSON Array Chunk; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "chunks": [
    [
     1,
     2
    ],
    [
     3,
     4
    ],
    [
     5
    ]
   ],
   "chunk_count": 3
  },
  "schema": "delx/util-json-array-chunk/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "4f72dbceaad27a26b92491017b889f01572529f0ffda27f5e6d7e08169769ac8",
   "external_calls": 0
  },
  "operation": "data_batch:json_array_chunk"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-array-chunk-2f8fd6e6/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)
