All Calculators

AI Infrastructure Economics

AI Token & API Cost Calculator

Compare real-time monthly inference budgets across 10 frontier LLMs. Model your exact input, output, and prompt caching hit rates to discover the optimal cost-to-intelligence balance.

Quick Presets:

Monthly Volume Inputs

20M tokens
1M100M250M
5M tokens
500K25M50M
50%
Applies cache discount (up to 90% off) where supported by Anthropic, OpenAI & Gemini.
Cost Variance Insight
Model prices range from $2.94/mo up to $108.00/mo (36.7x difference for the same token volume).

Lowest Cost Provider

DeepSeek V3

$2.94 / month

$35.28 annualized

Top Frontier Benchmark

Claude 3.7 Sonnet

$108.00 / month

$1296.00 annualized
Model & ProviderUnit Rates (In / Out)Cache SavingsMonthly Total
DeepSeek V3Lowest Cost
DeepSeek · 64k tokens · Best value general purpose chat & coding
In: $0.14 / 1M
Out: $0.28 / 1M
-$1.26/mo
$2.94$35/yr
Gemini 2.0 Flash
Google · 1M tokens · Ultra low-latency multimodal & high volume
In: $0.10 / 1M
Out: $0.40 / 1M
-$0.75/mo
$3.25$39/yr
GPT-4o mini
OpenAI · 128k tokens · Fast structured JSON & light reasoning
In: $0.15 / 1M
Out: $0.60 / 1M
-$0.75/mo
$5.25$63/yr
Llama 3.3 70B (Groq)
Groq · 128k tokens · Instant streaming at 300+ tokens/sec
In: $0.59 / 1M
Out: $0.79 / 1M
No cache API
$15.75$189/yr
DeepSeek R1
DeepSeek · 64k tokens · Complex reasoning, math & verification
In: $0.55 / 1M
Out: $2.19 / 1M
-$4.10/mo
$17.85$214/yr
Claude 3.5 Haiku
Anthropic · 200k tokens · Nuanced text generation & customer support
In: $0.80 / 1M
Out: $4.00 / 1M
-$7.20/mo
$28.80$346/yr
Gemini 1.5 Pro
Google · 2M tokens · Massive codebases & full-book analysis
In: $1.25 / 1M
Out: $5.00 / 1M
-$9.40/mo
$40.60$487/yr
GPT-4o
OpenAI · 128k tokens · Flagship intelligence & visual analysis
In: $2.50 / 1M
Out: $10.00 / 1M
-$12.50/mo
$87.50$1050/yr
Claude 3.5 Sonnet
Anthropic · 200k tokens · Industry-standard coding & system design
In: $3.00 / 1M
Out: $15.00 / 1M
-$27.00/mo
$108.00$1296/yr
Claude 3.7 Sonnet (Hybrid)
Anthropic · 200k tokens · Hybrid instantaneous or deep reasoning
In: $3.00 / 1M
Out: $15.00 / 1M
-$27.00/mo
$108.00$1296/yr
How Token Pricing Is Calculated

Formula: Total = (Uncached Input × Base Input Rate) + (Cached Input × Cache Rate) + (Output × Output Rate). All rates represent official vendor public API pricing without commitment tiers. Actual billing may vary with batch API discounts or enterprise SLAs.