# Delx Error Budget

> Delx Error Budget is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Calculate remaining error budget and burn rate from total requests, failed requests, and an SLO target percentage

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/error-budget
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-error-budget-295b16f3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1A3QvhnX4-CR0HfSlyV5m

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-error-budget-295b16f3 -d '<json body>'
```

Example prompt: We've had 142 failed requests out of 50,000 total this hour — can you calculate our remaining error budget assuming a 99.9% SLO target?

## When to prefer this

Choose this endpoint when an AI agent or autonomous workflow needs a fast, cheap, deterministic SLO error-budget calculation without standing up its own math logic — especially as a preflight gate before retries, API changes, or actions on untrusted input. Ideal for agent pipelines that need bounded, machine-readable reliability signals at $0.002 per call with no external data dependencies.

## Known failure modes

- Invalid input values (e.g. failed_requests > total_requests) return a structured validation error without billing
- target_percent outside 0–100 range returns a validation failure
- Non-integer request counts cause schema validation errors
- Network or payment authorization failures may prevent execution

## How this service works

Calculate remaining failure budget and burn from traffic, failures, and an SLO target. Use it before an autonomous workflow acts on untrusted input, changes an API, retries a request, or evaluates production reliability. Returns bounded machine-readable JSON for $0.002 USDC via x402 on Base. Execution is deterministic, first-party, local-only, stateless, and does not call an upstream provider; structured validation failures are not billed.

## Output

Returns a bounded machine-readable JSON object containing the calculated error budget — including allowed failures, failures consumed, remaining budget (count and percentage), and burn rate — derived deterministically from the supplied total_requests, failed_requests, and target_percent inputs. No upstream provider is called; the computation is local and stateless.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "target_percent": {
   "type": "number",
   "default": 99.9,
   "maximum": 100,
   "minimum": 0
  },
  "total_requests": {
   "type": "integer",
   "minimum": 0
  },
  "failed_requests": {
   "type": "integer",
   "minimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "delx/error-budget/v1",
  "exhausted": false,
  "burn_percent": 20.202,
  "target_percent": 99.9,
  "total_requests": 100000,
  "failed_requests": 20,
  "allowed_failures": 99,
  "remaining_failures": 79
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-error-budget-295b16f3/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)
