# ONE Engine Linear Scale (Numeric)

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

Applies a linear scale transformation to an array of numeric values, mapping them to a new range with optional rounding and offset.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/numeric/linear-scale/t4?utm_source=zero.xyz
- Price: $0.0015/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-linear-scale-numeric-dff76814
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cvsExEtW5Ko1gLt-rUxKx

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-linear-scale-numeric-dff76814 -d '<json body>'
```

Example prompt: Linearly scale this array of values [0, 25, 50, 75, 100] to a range between 0 and 1, rounded to 4 decimal places.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call linear normalization or rescaling of a numeric array without standing up your own compute. Ideal for agents performing preprocessing steps on small-to-medium datasets (up to 1000 values) where cost-efficiency matters and a simple min-max or factor-offset linear transform suffices.

## Known failure modes

- Array exceeds 1000 element limit — request rejected
- Non-finite values (NaN, Infinity) in input array cause errors
- Missing required 'values' field returns validation error
- Conflicting min/max range (min > max) may produce unexpected output
- Payment failure via x402 prevents execution

## How this service works

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

## Output

Returns an object containing the linearly scaled version of the input numeric array, transformed according to the specified min, max, factor, offset, and rounding parameters.

## 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-linear-scale-numeric-dff76814/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)
