# Delx Commerce Error Budget Calculator

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

Computes SLO error budget status given total requests, failed requests, and a target availability percentage, returning burn rate and remaining failure allowance.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/error-budget?utm_source=zero.xyz
- Price: $0.002/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-error-budget-calculator-576d7d23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N9dZe_1BWdxoAd0KNcG0H

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-error-budget-calculator-576d7d23 -d '<json body>'
```

Example prompt: Calculate my error budget: I have a 99.9% availability target, 100000 total requests so far, and 20 of them failed — how much budget have I burned and how many failures do I have left?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use SLO error budget computation without provisioning any infrastructure or signing up for a monitoring platform. Ideal for agents that need on-demand reliability math embedded in automated workflows, CI/CD pipelines, or incident response runbooks. Prefer over full observability platforms when you only need the budget calculation itself, not dashboards or alerting infrastructure.

## Known failure modes

- Invalid input types (non-integer request counts or out-of-range target_percent) may return a 400 error
- failed_requests exceeding total_requests may produce nonsensical results or an error
- Missing required fields may default gracefully (target_percent defaults to 99.9) but missing total_requests or failed_requests may cause computation failure
- Payment failure via x402 protocol returns HTTP 402 if USDC payment is not provided

## 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 with the schema version, whether the budget is exhausted (boolean), the percentage of error budget burned (burn_percent), the target availability percent, total and failed request counts, the number of allowed failures under the SLO, and the number of remaining failures before the budget is exhausted.

## 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-commerce-error-budget-calculator-576d7d23/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)
