# 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.004/call, status unknown (last checked 2026-10-02).

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

## Facts

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

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

Example prompt: I have this list of daily sales figures — [120, 85, 200, 160, 95, 310] — can you compute the cumulative running total for me, scaled by a factor of 1.1 and offset by 50?

## When to prefer this

Choose this endpoint when you need a quick, cheap, pay-per-call cumulative sum computation with optional parameter controls (scaling, offset, clamping, rounding) without setting up your own compute infrastructure. Ideal for autonomous agents needing on-demand mathematical transformation of numeric sequences at $0.004 USDC per call.

## Known failure modes

- Input array exceeds 1000 elements — request rejected
- Non-finite numbers (NaN, Infinity) in the values array — validation error
- Missing required 'values' field — 400 bad request
- Payment failure via x402 — 402 Payment Required
- Empty array input — may return empty result or 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 cumulative (running) sum array computed from the input values, with optional scaling factor, offset, digit rounding, and min/max clamping applied to each element in the output sequence.

## 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-e3f74d0b/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)
