# Delx Lerp

> Delx Lerp is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-21).

Performs linear interpolation between two numeric values a and b by factor t, returning the blended result.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/lerp?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-lerp-f8a3af4c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_55u0G0aSMHezvmL5jQYZZ

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-lerp-f8a3af4c -d '<json body>'
```

Example prompt: Lerp between 0 and 200 with t=0.75 — I need the interpolated value along that range.

## When to prefer this

Choose this endpoint when you need a simple, stateless, serverless linear interpolation computation without writing code — especially useful in agentic workflows where blending scores, progress bars, animation parameters, or any two numeric endpoints is needed on-the-fly at minimal cost ($0.001 USDC). It's ideal when you want a quick arithmetic result without spinning up a code interpreter.

## Known failure modes

- Missing required parameters (a, b, or t) results in a 400 error
- t outside the 0–1 range may produce extrapolated values beyond a or b (not clamped by default)
- Non-numeric inputs for a, b, or t will cause a validation error
- Network or payment failure via x402 protocol may result in a 402 or 5xx response

## How this service works

Linear interpolation between a and b by t. Call when you blend scores, progress, or animation parameters. Returns interpolated value for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns the interpolated numeric value computed as a + t*(b-a), representing the blended point between a and b at fraction t.

## 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-lerp-f8a3af4c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
