AI API Cost & Model Comparator

Load a preset or enter your daily requests, token sizes, cache hit %, and batch mode to compare monthly spend across 13 models.

Presets:
Multiplied by 30 days for monthly projection.
Share of input tokens served from provider cache.
System prompt + context + user query.
Visible answer + hidden thinking tokens.
Requests / Month
0
Monthly Tokens
0M
Lowest-Cost Tier
$0.00
Custom Model Est.
$0.00
Model & Provider ↕ Input / 1M ↕ Output / 1M ↕ Cached / 1M Cost / 1K Req Est. Monthly ↕

Click column headers to sort. Reference rates reflect late 2026 standard public tiers; confirm active rates in your provider billing console.

Why Output Tokens Dominate AI API Invoices

Across OpenAI, Anthropic, and Google models, output tokens cost 4x to 6x more than input tokens. Reasoning models also bill internal thinking tokens as output. Forecasting total monthly spend requires combining uncached input, cached prefix reads, output tokens, and batch discounts together.

The Monthly API Cost Formula

Monthly_Requests = Requests_Per_Day * 30 Uncached_Input_Cost = ((Monthly_In * (1 - Cache_Hit)) / 1,000,000) * Input_Rate Cached_Input_Cost = ((Monthly_In * Cache_Hit) / 1,000,000) * Cached_Rate Output_Cost = (Monthly_Out / 1,000,000) * Output_Rate Total_Monthly_Bill = (Uncached_Input + Cached_Input + Output) * (Batch ? 0.50 : 1.0)

Worked Example: Hybrid Routing for a Support Bot

Sending 500 daily support tickets (2,500 input / 600 output tokens, 40% cached) entirely to a $2/$10 production model costs roughly $136.50/month. Routing 80% of simple questions to a $0.10/$0.50 high-volume tier and escalating only 20% drops the total bill to roughly $32.75/month.

Frequently Asked Questions

Does prompt caching have a minimum token threshold?

Yes. Most providers require static prefixes of at least 1,024 to 2,048 tokens before prompt caching activates.

When should I avoid Batch API mode?

Never use asynchronous Batch mode for live chat where users wait on screen. Use it for bulk overnight tagging, evaluation runs, and report generation.

What happens if my prompt exceeds 100K or 200K tokens?

Several models step up to higher long-context rates past 100K or 200K input tokens. Check your exact split in our Context Budget Planner.