# Delx Commerce Map Range

> Delx Commerce Map Range is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Linearly maps an integer value from one numeric range to another (e.g. 0–100 to 0–255), paid per call via USDC on Base or Solana.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/map-range?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-map-range-81cf5be0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rAby00MIESjBXchaIgNaG

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 delx-commerce-map-range-81cf5be0 -d '<json body>'
```

Example prompt: Map the value 50 from the input range 0 to 100 to the output range 0 to 255 — paying per result with no signup needed.

## When to prefer this

Choose this endpoint when you need a simple, deterministic, pay-per-use linear range mapping computation without setting up any account or subscription. Ideal for agents that occasionally need to rescale numeric values (sensor data, UI ranges, game inputs) and want verifiable, on-chain micropayment billing via x402 on Base or Solana.

## Known failure modes

- Missing required fields (value, in_min, in_max, out_min, out_max) returns an error
- Division by zero if in_min equals in_max (degenerate input range)
- Non-integer inputs may be rejected or coerced
- Payment failure if USDC balance is insufficient or x402 handshake fails

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the mapped integer value scaled proportionally from the input range to the output range, along with a schema identifier (delx/util-map-range/v1).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "integer",
   "description": "Input field: value."
  },
  "in_max": {
   "type": "integer",
   "description": "Input field: in max."
  },
  "in_min": {
   "type": "integer",
   "description": "Input field: in min."
  },
  "out_max": {
   "type": "integer",
   "description": "Input field: out max."
  },
  "out_min": {
   "type": "integer",
   "description": "Input field: out min."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "value": 50,
  "schema": "delx/util-map-range/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-map-range-81cf5be0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
