# ONE Engine Array Sum

> ONE Engine Array Sum 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).

Computes the sum and count of an array of up to 1000 numbers via a pay-per-call API on Base using x402.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/array/sum?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-sum-ff135ed7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_71RNLsMGU89Ze8txmpQnh

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-sum-ff135ed7 -d '<json body>'
```

Example prompt: Add up this list of numbers for me — [12.5, 7, 3.8, 42, 100] — and tell me the total and how many items there are.

## When to prefer this

Choose this endpoint when an AI agent needs a lightweight, on-demand numeric summation without bundling heavier computation libraries, especially in agentic workflows on Base where x402 micropayment infrastructure is already in use. Ideal for summing up to 1000 numbers with minimal latency at a low per-call cost of $0.001 USDC.

## Known failure modes

- Array exceeds 1000 items — request rejected
- Non-finite numbers (Infinity, NaN) in the array — validation error
- Malformed or missing 'values' field — bad request error
- Payment failure via x402 — 402 Payment Required response
- Empty array — may return count 0 and value 0

## How this service works

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

## Output

Returns a JSON object with 'count' (number of elements in the input array) and 'value' (the computed sum of all elements). Example: {"count":3,"value":7}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "array",
   "description": "Array of finite numbers, maximum 1000 items"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "value": 7
 }
}
```

## More

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