InputPOST /api/v1/x402/error-budget
{
"total_requests": 100000,
"failed_requests": 20
}
Agent reliability and security · agent-reliability-security
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.
One-command purchase
No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/error-budget -m POST -H 'x-delx-source: product-page' --max-amount 0.002 -b '{"total_requests":100000,"failed_requests":20}'
{
"total_requests": 100000,
"failed_requests": 20
}
{
"schema": "delx/error-budget/v1",
"target_percent": 99.9,
"total_requests": 100000,
"failed_requests": 20,
"allowed_failures": 99,
"remaining_failures": 79,
"exhausted": false,
"burn_percent": 20.202
}
Machine-readable evidence