# ONE Engine Array Slice

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

Extracts a subarray from an input array using start and end indices, returning the sliced values and count.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/array/slice?utm_source=zero.xyz
- Price: $0.001/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-slice-b193b3b0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Tcg5VxfJU1lRiAHuI25Py

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-slice-b193b3b0 -d '<json body>'
```

Example prompt: Slice my array [10, 20, 30, 40, 50] from index 1 to 3 and give me the resulting elements.

## When to prefer this

Choose this endpoint when an AI agent needs a lightweight, pay-per-call array slicing operation without spinning up its own compute — especially useful in agentic pipelines on Base where microtransactions via x402 are already in use and the cost ($0.001 USDC) is negligible compared to orchestration overhead.

## Known failure modes

- Missing or invalid 'values' array returns an error
- Out-of-bounds start/end indices may return an empty array or error
- Non-integer start/end values may cause a validation error
- Payment failure via x402 results in a 402 response before processing
- Malformed JSON body returns a 400 error

## How this service works

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

## Output

A JSON object containing 'values' (the sliced subarray) and 'count' (the number of elements returned in the slice).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "end": {
   "type": "integer"
  },
  "start": {
   "type": "integer"
  },
  "values": {
   "type": "array"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "values": [
   2,
   3
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-array-slice-b193b3b0/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)
