# ONE Engine Array Chunk

> ONE Engine Array Chunk is a paid API for AI agents from one-search.one-engine.workers.dev, paid per call via x402, $0.0011/call, status unknown (last checked 2026-10-02).

Splits an array into fixed-size chunks, returning a list of sub-arrays and a count of how many chunks were produced.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/array/chunk?utm_source=zero.xyz
- Price: $0.0011/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/one-engine-array-chunk-b6b04367
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vonafNl56HRvZ_LHrvsoh

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 one-engine-array-chunk-b6b04367 -d '<json body>'
```

Example prompt: Split this list of 500 product IDs into chunks of 100 each so I can process them in batches: [1, 2, 3, ... 500].

## When to prefer this

Choose this endpoint when an AI agent needs a simple, cheap, stateless utility to split arrays into fixed-size sub-arrays without running custom code. At $0.0011 per call it's cost-effective for high-frequency agent pipelines needing reliable batching logic without spinning up compute.

## Known failure modes

- Invalid chunk size (less than 1 or greater than 1000) returns a validation error
- Empty or missing 'values' array may return an empty chunks result or error
- Payment failure via x402 if USDC balance is insufficient
- Non-array value for 'values' field causes schema validation error

## How this service works

Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.

## Output

Returns a JSON object with a 'count' field (number of chunks produced) and a 'chunks' field (array of sub-arrays, each containing at most 'size' elements from the input).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "size": {
   "type": "integer",
   "maximum": 1000,
   "minimum": 1
  },
  "values": {
   "type": "array"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "chunks": [
   [
    1,
    2
   ],
   [
    3,
    4
   ],
   [
    5
   ]
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-array-chunk-b6b04367/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from one-search.one-engine.workers.dev](https://www.zero.xyz/host/one-search.one-engine.workers.dev/llms.txt)
