Example inputPOST /api/v1/x402/error-budget
{
"total_requests": 100000,
"failed_requests": 20
}
Portable intent card · 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.
Intent to transaction
The source header follows this discovery route through challenge, payment and delivery without exposing the buyer or request body.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/error-budget -m POST -H 'x-delx-source: intent-card-error-budget-api' --max-amount 0.002 -b '{"total_requests":100000,"failed_requests":20}'
{
"total_requests": 100000,
"failed_requests": 20
}
{
"intent": "Error Budget for an agent workflow",
"tool_name": "util_error_budget",
"price_usdc": "0.002",
"machine_url": "https://commerce.delx.ai/intents/error-budget-api.json"
}
Portable and inspectable