$0 Exhaustion Billing Guarantee & Redacted Backoff Traces
Commercial API proxies routinely bill customers for failed attempts, timeouts, and empty 200 error pages—creating an invisible retry tax. FuelRouter enforces a strict outcome-only billing contract: if no upstream delivers a verified payload, the charge is strictly $0.00.
Deterministic Billing Matrix Across All Dispatch Outcomes
| Outcome Scenario | HTTP Status | charged_micros | billed_usd | upstream_cost_micros | Receipt & Trace |
|---|---|---|---|---|---|
| Live Verified Hit (Free Slot) | 200 OK | 100% outcome_price | $0.004 - $0.020 | 0 | SHA-256 receipt + redacted trace |
| Live Verified Hit (Wholesale) | 200 OK | 100% outcome_price | $0.004 - $0.020 | 250 - 2,500 | SHA-256 receipt + redacted trace |
| Cross-Tenant New-Tenant Cache Hit | 200 OK | 100% outcome_price | $0.004 - $0.020 | 0 | SHA-256 receipt + archive_hit |
| Same-Tenant Repeat Cache Hit | 200 OK | 10% outcome_price | $0.0004 - $0.002 | 0 | SHA-256 receipt + archive_hit |
| All Upstreams Exhausted | 503 Unavailable | 0 | $0.00 | 0 | SHA-256 receipt + backoff_advice |
| Invalid Input / SSRF Blocked | 422 Unprocessable | 0 | $0.00 | 0 | SHA-256 receipt + error_code |
Eliminating Retry-Tax Inflation in Autonomous Agent Loops
When an external vendor suffers a 30-minute outage, autonomous agent loops that retry every minute can burn through hundreds of dollars in failed calls on legacy gateways that charge per attempt.
FuelRouter's exhaustion_billing_rule guarantees that even if a dispatch probes 4 failing upstreams before exhausting the pool, charged_micros remains strictly 0 and billed_usd remains strictly 0.0.
Actionable Backoff Advice Instead of Opaque 500 Errors
Every HTTP 503 all_upstreams_exhausted response includes a structured backoff_advice object containing the exact retry_after_s computed from the earliest circuit cooldown unlock and a recommended_action such as wait_for_cooldown_or_expand_budget.
Agents inspect the redacted trace array to see exactly which upstreams hit 429, 503, quota limits, or fake_200_captcha_soft_ban without ever exposing raw secrets.
Verify $0 Billing and Backoff Advice in Client Error Handling
if response.status_code == 503:
body = response.json()
assert body["charged_micros"] == 0
assert body["billed_usd"] == 0.0
wait_seconds = body["backoff_advice"]["retry_after_s"]
# Schedule next agent attempt after wait_seconds
Billing Integrity Audit Checks
- Assert charged_micros == 0 and billed_usd == 0.0 on every 503 all_upstreams_exhausted response.
- Assert charged_micros == 0 on every 422 invalid_input or ssrf_blocked validation error.
- Verify every response—success or failure—emits a 64-hex receipt_sha256 for ledger reconciliation.
- Respect backoff_advice.retry_after_s so agent loops pause until HALF_OPEN probes unlock.
Frequently Asked Technical Questions
If Upstreams 1 and 2 fail and Upstream 3 succeeds, am I billed 3 times?
No. You are billed once for the single verified outcome, never per failed failover hop.
Does POST /v1/router/quote ever charge credits?
No. Quotes are always $0 dry runs (quoted_charge_micros: 0).
How do I audit total unbilled failures across my deployment?
Query GET /v1/router/metrics to inspect failover counts, fake-200 rejections, and aggregate billing totals.
Live Try-Now Console & Machine Discovery
Test failover routing, dry-run quotes, and circuit breaker metrics on the live gateway or connect via JSON-RPC 2.0 MCP.
Related FuelRouter Architecture Guides
- EWMA Dynamic Health Scoring Formula for Upstream Routing — EWMA dynamic health score API upstream routing formula
- HTTP 429 Rate Limit & Retry-After Automatic Upstream Failover — HTTP 429 rate limit Retry-After automatic upstream failover
- Hard Budget Lock (max_cost_micros) Guardrails for AI Agents — max_cost_micros hard API budget lock for autonomous agents