# Delx Commerce — Linear Interpolation (lerp) API

> Delx Commerce — Linear Interpolation (lerp) API 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).

Computes a linearly interpolated value between two integers at a given fractional position t

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/lerp?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-linear-interpolation-lerp-api-c0a26e9f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wXik_udFlER2lyPyN-Yn5

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-linear-interpolation-lerp-api-c0a26e9f -d '<json body>'
```

Example prompt: Can you linearly interpolate between 0 and 100 with a t value of 0.75 — I need the exact blended result?

## When to prefer this

Use this endpoint when you need a simple, stateless, pay-per-call linear interpolation computation with verifiable on-chain payment via USDC — ideal for AI agents that need trustless micro-transactions for mathematical utilities without API key signup overhead.

## Known failure modes

- Missing required fields (a, b, or t) returns an error response
- Non-integer values for a or b may cause validation errors
- t values outside [0,1] may return extrapolated values or errors
- Payment failure via x402 protocol will block request completion

## 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 echoing the inputs (a, b, t) alongside the computed interpolated value (e.g. value: 2.5 for a=0, b=10, t=0.25), plus a schema identifier string 'delx/util-lerp/v1'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "integer",
   "description": "Input field: a."
  },
  "b": {
   "type": "integer",
   "description": "Input field: b."
  },
  "t": {
   "type": "number",
   "description": "Input field: t."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "a": 0,
  "b": 10,
  "t": 0.25,
  "value": 2.5,
  "schema": "delx/util-lerp/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-linear-interpolation-lerp-api-c0a26e9f/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)
