# ONE Engine Cumulative Sum

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

Computes the cumulative (running) sum of an array of numbers, with optional scaling, offsetting, and output constraints.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/numeric/cumulative-sum/t7?utm_source=zero.xyz
- Price: $0.0065/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-cumulative-sum-1eeaa6ea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jH1Ldvenkeg6FsyOQC6Eb

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-cumulative-sum-1eeaa6ea -d '<json body>'
```

Example prompt: Can you compute the cumulative sum of these values: [3, 7, 2, 15, 8, 4] — keep results to 2 decimal places?

## When to prefer this

Choose this endpoint when an AI agent needs to compute cumulative/prefix sums on a numeric array as part of an automated workflow, especially when fine-grained control over output (scaling, offsetting, clamping, precision) is needed. It is ideal for lightweight pay-per-call numeric computation without spinning up your own compute, and works well in agentic pipelines on Base that already use x402 micropayments.

## Known failure modes

- Input array exceeds 1000 elements — request rejected
- Non-finite values (NaN, Infinity) in the values array — validation error
- Missing required 'values' field — 400 bad request
- Payment not included or insufficient USDC — 402 Payment Required
- Malformed JSON body — parse error

## How this service works

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

## Output

Returns a JSON object containing the computed cumulative (prefix) sum array, where each element represents the running total up to that index in the input, optionally scaled by a factor, shifted by an offset, rounded to a specified number of digits, and/or clamped between min and max bounds.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "values"
 ],
 "properties": {
  "max": {
   "type": "number"
  },
  "min": {
   "type": "number"
  },
  "size": {
   "type": "integer"
  },
  "digits": {
   "type": "integer"
  },
  "factor": {
   "type": "number"
  },
  "offset": {
   "type": "number"
  },
  "values": {
   "type": "array",
   "description": "Finite numbers, maximum 1000"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

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