# ONE Engine Cumulative Sum (T2)

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

Computes the cumulative sum of an array of up to 1000 numbers, with optional scaling, offsetting, and output constraints.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/numeric/cumulative-sum/t2?utm_source=zero.xyz
- Price: $0.0007/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-t2-73abc910
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C7iWHEKk0j-ZNr1yLCsRY

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-t2-73abc910 -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you need a cheap, fast, pay-per-call cumulative sum computation without spinning up local compute, especially in an agentic pipeline that uses x402 micropayments on Base. Ideal for autonomous agents that need on-demand numerical prefix-sum calculations with optional normalization (scaling, offsetting, clamping) as part of a larger workflow. Prefer over local computation when the agent lacks a math execution environment or when consistency and simplicity of a hosted API is preferred.

## Known failure modes

- Input array exceeds 1000 elements — request rejected
- Non-finite values (NaN, Infinity) in input array — validation error
- Missing required 'values' field — 400 bad request
- Payment not provided or insufficient — 402 Payment Required
- Malformed JSON body — parsing 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 sum array derived from the input values, with optional constraints applied such as clamping to min/max bounds, scaling by a factor, adding an offset, rounding to a specified number of decimal digits, and resizing the output array length.

## 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-t2-73abc910/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)
