Compare Prices
ProvidersModelsCompareCalculatorsGuides
API COST CALCULATOR

LLM API Cost Calculator

Model your monthly AI API spend across leading frontier and open-weight models—factoring in daily request volume, input/output token ratios, and prompt caching hit rates.

Presets:
1050,000+
100100K+
016K+
0%100%
1d31d
Monthly requests: 75,000Input volume: 240.00M tokensOutput volume: 33.75M tokens
Cheapest Frontier OptionFlagship Tier
$152.82/mo
DeepSeek logoDeepSeek V4 Pro (DeepSeek)
Best Value PickScore 45+
$271.95/mo
OpenAI logoGPT-6.1 Terra(51.4)
Cheapest OverallLowest Spend
$27.91/mo
Anthropic logoClaude Haiku 5.5 (Anthropic)
Average Monthly SpendAll models
$626.22/mo
Mean cost across frontier & lightweight tiers

Visual Monthly Cost Breakdown

Updated Nov 2026

Input (obsidian) vs Output (terracotta) share across selected models.

InputOutput
Anthropic logoClaude Haiku 5.5
$27.91
OpenAI logoGPT-6 Luna
$27.91
OpenAI logoGPT-6 Luna Pro
$27.91
Qwen logoQwen3.8 Flash
$32.57
Qwen logoQwen3.8 Omni Flash
$32.57
Meta logoLlama 4 Scout
$34.13
DeepSeek logoDeepSeek V4.1 Flash
$35.08
Z.ai logoGLM 5.3 Flash
$35.59
Mistral logoMistral Small 4
$36.81
MiniMax logoMiniMax M3.1 Flash
$36.81
OpenAI logoGPT-5.4 Nano
$64.27
Z.ai logoGLM 5.3 FlashX Legal
$88.51
Anthropic logoClaude Haiku 5.5AnthropicIntelligence: 36.5
$0.1/1M in · $0.5/1M out · $0.01/1M cached
1M
$11.04
$9.60 + $1.44
$16.88-$12.96$27.91
OpenAI logoGPT-6 LunaOpenAIIntelligence: 27.9
$0.1/1M in · $0.5/1M out · $0.01/1M cached
1.05M
$11.04
$9.60 + $1.44
$16.88-$12.96$27.91
$0.1/1M in · $0.5/1M out · $0.01/1M cached
1.05M
$11.04
$9.60 + $1.44
$16.88-$12.96$27.91
Qwen logoQwen3.8 FlashQwenIntelligence: 28.5
$0.15/1M in · $0.47/1M out · $0.016/1M cached
1M
$16.70
$14.40 + $2.30
$15.86-$19.30$32.57
$0.15/1M in · $0.47/1M out · $0.016/1M cached
1M
$16.70
$14.40 + $2.30
$15.86-$19.30$32.57
$0.1/1M in · $0.3/1M out · no cache tier
1.31M
$24.00
$10.13No cache$34.13
DeepSeek logoDeepSeek V4.1 FlashDeepSeekIntelligence: 32.4
$0.15/1M in · $0.6/1M out · $0.003/1M cached
1.05M
$14.83
$14.40 + $0.43
$20.25-$21.17$35.08
Z.ai logoGLM 5.3 FlashZ.aiIntelligence: 27.7
$0.15/1M in · $0.5/1M out · $0.03/1M cached
1.05M
$18.72
$14.40 + $4.32
$16.88-$17.28$35.59
Mistral logoMistral Small 4MistralIntelligence: 4.3
$0.15/1M in · $0.6/1M out · $0.015/1M cached
262K
$16.56
$14.40 + $2.16
$20.25-$19.44$36.81
MiniMax logoMiniMax M3.1 FlashMiniMaxIntelligence: 29.1
$0.15/1M in · $0.6/1M out · $0.015/1M cached
1.05M
$16.56
$14.40 + $2.16
$20.25-$19.44$36.81
$0.2/1M in · $1.25/1M out · $0.02/1M cached
400K
$22.08
$19.20 + $2.88
$42.19-$25.92$64.27
$0.37/1M in · $1.25/1M out · $0.075/1M cached
1.05M
$46.32
$35.52 + $10.80
$42.19-$42.48$88.51
$0.37/1M in · $1.25/1M out · $0.075/1M cached
1.05M
$46.32
$35.52 + $10.80
$42.19-$42.48$88.51
$0.35/1M in · $1/1M out · $0.17/1M cached
524K
$58.08
$33.60 + $24.48
$33.75-$25.92$91.83
Google logoGemini 3.5 Flash LiteGoogleIntelligence: 11.7
$0.3/1M in · $2.5/1M out · $0.03/1M cached
1.05M
$33.12
$28.80 + $4.32
$84.38-$38.88$117.50
Mistral logoMistral Large 4MistralIntelligence: 26.1
$0.7/1M in · $2.1/1M out · $0.07/1M cached
1.05M
$77.28
$67.20 + $10.08
$70.88-$90.72$148.15
DeepSeek logoDeepSeek V4 ProDeepSeekIntelligence: 20.8
$0.764/1M in · $1.5016/1M out · $0.2/1M cached
1.05M
$102.14
$73.34 + $28.80
$50.68-$81.22$152.82
Google logoGemini 3.8 FlashGoogleIntelligence: 30.7
$0.825/1M in · $4.125/1M out · $0.0825/1M cached
1.05M
$91.08
$79.20 + $11.88
$139.22-$106.92$230.30
$1.25/1M in · $2.5/1M out · $0.2/1M cached
2M
$148.80
$120.00 + $28.80
$84.38-$151.20$233.18
$0.75/1M in · $4.5/1M out · $0.075/1M cached
400K
$82.80
$72.00 + $10.80
$151.88-$97.20$234.68
OpenAI logoGPT-6.1 TerraOpenAIIntelligence: 51.4
$1/1M in · $5/1M out · $0.05/1M cached
1.05M
$103.20
$96.00 + $7.20
$168.75-$136.80$271.95
$1/1M in · $5/1M out · $0.05/1M cached
1.05M
$103.20
$96.00 + $7.20
$168.75-$136.80$271.95
Qwen logoQwen4 MaxQwenIntelligence: 42.8
$1.425/1M in · $4.275/1M out · $0.0713/1M cached
1M
$147.07
$136.80 + $10.27
$144.28-$194.93$291.35
Z.ai logoGLM 5.3Z.aiIntelligence: 31.6
$1.4/1M in · $4.4/1M out · $0.0689/1M cached
1.05M
$144.32
$134.40 + $9.92
$148.50-$191.68$292.82
$1.68/1M in · $5.28/1M out · $0.336/1M cached
1M
$209.66
$161.28 + $48.38
$178.20-$193.54$387.86
Google logoGemini 4 HydrogenGoogleIntelligence: 54.1
$1.5/1M in · $7.5/1M out · $0.075/1M cached
1.05M
$154.80
$144.00 + $10.80
$253.13-$205.20$407.93
xAI logoGrok 4.7xAIIntelligence: 35.4
$2/1M in · $6/1M out · $0.5/1M cached
500K
$264.00
$192.00 + $72.00
$202.50-$216.00$466.50
Anthropic logoClaude Sonnet 5.5AnthropicIntelligence: 54.7
$2/1M in · $10/1M out · $0.1/1M cached
1M
$206.40
$192.00 + $14.40
$337.50-$273.60$543.90
OpenAI logoGPT-6.2 SolOpenAIIntelligence: 57.3
$2/1M in · $10/1M out · $0.1/1M cached
1.05M
$206.40
$192.00 + $14.40
$337.50-$273.60$543.90
Google logoGemini 4 ArgonGoogleIntelligence: 50.5
$2/1M in · $10/1M out · $0.1/1M cached
1.05M
$206.40
$192.00 + $14.40
$337.50-$273.60$543.90
Google logoGemini 4 CarbonGoogleIntelligence: 60.1
$2/1M in · $10/1M out · $0.1/1M cached
1.05M
$206.40
$192.00 + $14.40
$337.50-$273.60$543.90
$2/1M in · $10/1M out · $0.1/1M cached
1.05M
$206.40
$192.00 + $14.40
$337.50-$273.60$543.90
$2/1M in · $10/1M out · $0.1/1M cached
1.05M
$206.40
$192.00 + $14.40
$337.50-$273.60$543.90
OpenAI logoGPT-6.1 SolOpenAIIntelligence: 54.7
$2/1M in · $10/1M out · $0.1/1M cached
1.05M
$206.40
$192.00 + $14.40
$337.50-$273.60$543.90
Moonshot logoKimi K3.1 ProMoonshotIntelligence: 46.6
$2/1M in · $10/1M out · $0.2/1M cached
1.05M
$220.80
$192.00 + $28.80
$337.50-$259.20$558.30
$2/1M in · $10/1M out · $0.2/1M cached
1.05M
$220.80
$192.00 + $28.80
$337.50-$259.20$558.30
OpenAI logoGPT-6 SolOpenAIIntelligence: 44.1
$2/1M in · $10/1M out · $0.2/1M cached
1.05M
$220.80
$192.00 + $28.80
$337.50-$259.20$558.30
OpenAI logoGPT-5.4OpenAI
$2.5/1M in · $15/1M out · $0.25/1M cached
1.05M
$276.00
$240.00 + $36.00
$506.25-$324.00$782.25
Google logoGemini 4 NeonGoogleIntelligence: 61.5
$3/1M in · $15/1M out · $0.15/1M cached
1.05M
$309.60
$288.00 + $21.60
$506.25-$410.40$815.85
$3/1M in · $15/1M out · $0.3/1M cached
1M
$331.20
$288.00 + $43.20
$506.25-$388.80$837.45
$4/1M in · $12/1M out · $0.5/1M cached
1M
$456.00
$384.00 + $72.00
$405.00-$504.00$861.00
Anthropic logoClaude Opus 5.5AnthropicIntelligence: 59.1
$4/1M in · $20/1M out · $0.2/1M cached
1M
$412.80
$384.00 + $28.80
$675.00-$547.20$1,087.80
$4/1M in · $20/1M out · $0.4/1M cached
1.05M
$441.60
$384.00 + $57.60
$675.00-$518.40$1,116.60
$5/1M in · $25/1M out · $0.5/1M cached
1M
$552.00
$480.00 + $72.00
$843.75-$648.00$1,395.75
Anthropic logoClaude Fable 5.2AnthropicIntelligence: 64.8
$8/1M in · $40/1M out · $0.2/1M cached
1M
$796.80
$768.00 + $28.80
$1,350.00-$1,123.20$2,146.80
OpenAI logoGPT-6.2 AstraOpenAIIntelligence: 62.2
$8/1M in · $40/1M out · $0.4/1M cached
1.05M
$825.60
$768.00 + $57.60
$1,350.00-$1,094.40$2,175.60
$8/1M in · $40/1M out · $0.4/1M cached
1.05M
$825.60
$768.00 + $57.60
$1,350.00-$1,094.40$2,175.60
Anthropic logoClaude Fable 5.1AnthropicIntelligence: 50.0
$10/1M in · $50/1M out · $0.25/1M cached
1M
$996.00
$960.00 + $36.00
$1,687.50-$1,404.00$2,683.50
OpenAI logoGPT-6 AstraOpenAIIntelligence: 56.9
$10/1M in · $50/1M out · $1/1M cached
1.05M
$1,104.00
$960.00 + $144.00
$1,687.50-$1,296.00$2,791.50
$10/1M in · $50/1M out · $1/1M cached
1.05M
$1,104.00
$960.00 + $144.00
$1,687.50-$1,296.00$2,791.50

How it works

  1. 1Choose a realistic workload preset (SaaS Copilot, Coding Agent, RAG, Classifier) or dial in your exact daily requests and active days.
  2. 2Set your average input and output tokens per request—use our Token Counter first if you want exact numbers from a sample prompt.
  3. 3Adjust your expected Prompt Cache Hit Rate (%) to see how prefix caching cuts input spend on Claude, OpenAI, Gemini, DeepSeek, and Grok.
  4. 4Compare the Cheapest Frontier Option vs Cheapest Overall, inspect input/output cost split bars, and export the full breakdown to CSV.

Frequently asked questions

Why do input and output tokens cost different amounts?

Output generation is memory-bandwidth bound and runs sequentially token-by-token, whereas input prefill runs in parallel. As a result, output tokens are typically 3× to 8× more expensive per million than input tokens.

How does Prompt Cache Hit Rate change my bill?

When you place static system instructions, tool schemas, or shared documents at the start of every request, providers discount cached input reads by 50% to 98%. Models without a cache tier on a given serverless API are billed at full input rate.

Which models count as 'Cheapest Frontier Option'?

We compare flagship and frontier reasoning models—GPT-6.2 Astra & Sol, Claude Fable 5.2, Opus 5.5, Sonnet 5.5, Gemini 4 Neon, DeepSeek V4 Pro, and Grok 4.7—and highlight whichever delivers the lowest monthly bill for your traffic.

Are reasoning tokens accounted for in output tokens?

Yes—when estimating costs for reasoning models like GPT-6.2 Astra, Claude Fable 5.2 with adaptive thinking, Gemini 4 Neon, or DeepSeek V4 Pro, add your expected thinking tokens to Average Output Tokens per request.

Related tools

View all tools →