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

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

## Facts

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

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

Example prompt: Calculate the cumulative sum of these numbers for me: [3, 7, 2, 10, 5, 8] — round the results to 2 decimal places.

## When to prefer this

Choose this endpoint when you need a fast, pay-per-call cumulative sum computation without managing your own compute infrastructure, especially in autonomous agent pipelines on Base using x402 micropayments. It is ideal for small-to-medium arrays (up to 1000 elements) where you also need post-processing options like scaling, offset, clamping, and rounding in a single call.

## Known failure modes

- Array exceeds 1000 elements — request rejected
- Non-finite numbers (NaN, Infinity) in input values — validation error
- Missing required 'values' field — 400 bad request
- Payment not provided or insufficient — 402 Payment Required
- Output size mismatch if 'size' parameter is inconsistent with input length

## How this service works

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

## Output

Returns an object containing the cumulative sum array derived from the input values, with each element representing the running total up to that index, optionally scaled by a factor, shifted by an offset, clamped to min/max bounds, resized to a specified output size, and rounded to the specified number of decimal digits.

## 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-91ac0c86/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)
