# SignalDesk AI Linear Interpolation

> SignalDesk AI Linear Interpolation is a paid API for AI agents from x402-agent.kariguetoazul.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-13).

Computes the linearly interpolated y-value for a given x between two known data points (x0,y0) and (x1,y1)

## Facts

- Endpoint: POST https://x402-agent.kariguetoazul.workers.dev/api/math/linear-interpolate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signaldesk-ai-linear-interpolation-6bcaf0cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X7fTimbvYfyRtUQiyWF7B

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 signaldesk-ai-linear-interpolation-6bcaf0cc -d '<json body>'
```

Example prompt: Can you linearly interpolate to find the y value at x=15, where x0=10, y0=0, x1=20, and y1=100?

## When to prefer this

Choose this endpoint when you need a fast, cheap, stateless computation of a single linear interpolation without setting up local math libraries. At $0.001 USDC per call it is ideal for AI agents that need occasional on-demand interpolation in workflows where installing numeric libraries is impractical. Prefer this for real-time pipelines needing a reliable hosted math microservice.

## Known failure modes

- x0 equals x1 causing division by zero (undefined behavior or error)
- Missing required fields x, x0, x1, y0, or y1 returns a validation error
- Values outside the allowed range [-1e15, 1e15] are rejected
- Non-numeric inputs cause schema validation failure
- Payment not included or insufficient USDC causes 402 Payment Required response

## How this service works

Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.

## Output

Returns a JSON object containing the single numeric field 'y', which is the linearly interpolated value at the given x position between the two provided data points using the standard linear interpolation formula: y = y0 + (x - x0) * (y1 - y0) / (x1 - x0).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "x": {
   "type": "number",
   "maximum": 1000000000000000,
   "minimum": -1000000000000000,
   "description": "Finite number."
  },
  "x0": {
   "type": "number",
   "maximum": 1000000000000000,
   "minimum": -1000000000000000,
   "description": "Finite number."
  },
  "x1": {
   "type": "number",
   "maximum": 1000000000000000,
   "minimum": -1000000000000000,
   "description": "Finite number."
  },
  "y0": {
   "type": "number",
   "maximum": 1000000000000000,
   "minimum": -1000000000000000,
   "description": "Finite number."
  },
  "y1": {
   "type": "number",
   "maximum": 1000000000000000,
   "minimum": -1000000000000000,
   "description": "Finite number."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "y": 15
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-linear-interpolation-6bcaf0cc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.kariguetoazul.workers.dev](https://www.zero.xyz/host/x402-agent.kariguetoazul.workers.dev/llms.txt)
