HTTP 503 / 422 · billed_usd: 0.0 · Redacted Trace

$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 ScenarioHTTP Statuscharged_microsbilled_usdupstream_cost_microsReceipt & Trace
Live Verified Hit (Free Slot)200 OK100% outcome_price$0.004 - $0.0200SHA-256 receipt + redacted trace
Live Verified Hit (Wholesale)200 OK100% outcome_price$0.004 - $0.020250 - 2,500SHA-256 receipt + redacted trace
Cross-Tenant New-Tenant Cache Hit200 OK100% outcome_price$0.004 - $0.0200SHA-256 receipt + archive_hit
Same-Tenant Repeat Cache Hit200 OK10% outcome_price$0.0004 - $0.0020SHA-256 receipt + archive_hit
All Upstreams Exhausted503 Unavailable0$0.000SHA-256 receipt + backoff_advice
Invalid Input / SSRF Blocked422 Unprocessable0$0.000SHA-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

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