Cost formula
Effective monthly cost = success-path cost × (1 + retry rate × avg retries per failure) + (failure token cost × failure rate); Inflated cost % = (effective cost − success cost) / success cost × 100
Calculator
Real traffic isn't 100% successful. Use this planner to estimate how rate limits, timeouts, and partial billing turn intended jobs into extra attempts—and extra API cost.
Retry overhead
$155.40+$5.40 vs ideal
GPT-5 mini · ~1.11 attempts / job · 99.9% complete
Workload
Common when the request dies before much output
Waste waterfall
Stack bars show ideal spend, retry-inflated total, and waste on failed attempts.
~99,900 jobs complete · 100 abandoned · 11,100 failed attempts.
Billing on failures varies by provider and error type—use presets as planning bounds, not invoices. Updated 2026-07-31. Approximate static list prices for planning only. Always verify against each provider’s official pricing page before production budgeting.
Guide
Estimate how retries, timeouts, and partial failures inflate LLM API spend above nominal success-path costs. Failed requests that still bill tokens, exponential backoff retries, and duplicate submissions can add 5–30% to effective monthly cost. Model failure rates explicitly instead of treating them as noise.
Effective monthly cost = success-path cost × (1 + retry rate × avg retries per failure) + (failure token cost × failure rate); Inflated cost % = (effective cost − success cost) / success cost × 100
Retry logic designed for reliability silently multiplies token bills. Finance sees higher invoices while engineering sees normal per-success token counts—retry cost explains the gap.
Often yes for tokens generated before failure. Policies vary—check your provider. This calculator lets you model partial token billing on failures.
Start with 2–5% for production if you lack data. Measure actual timeout and error rates from logs and update quarterly.
No. Results depend on your assumptions and approximate list prices. Use as a planning range, not a guaranteed invoice figure.
Each retry attempt generates new output tokens billed at output rates. High retry counts disproportionately inflate output-side spend.