Free tool · 238 models

AI API Cost Calculator

Estimate what a language model will cost per month before you build. Set your traffic and token sizes, and every model is sorted from cheapest to most expensive for your workload.

Prices per million tokens from OpenRouter's public model list, updated daily (last update Dec 2026). Direct provider prices can differ slightly.

Not sure how many tokens? Paste a sample prompt

About 0 tokens (0 characters ÷ 4, a common rule of thumb for English).

ModelProviderInput / 1MOutput / 1MContextMonthly cost
🏷 Mistral NemoMistral$0.029$0.030131K$0.5550
Qwen3.7 FlashQwen$0.030$0.1301M$0.9700
Llama 3.1 8B InstructMeta$0.050$0.080131K$1.07
Mistral Small 3Mistral$0.050$0.08033K$1.07
Nova Micro 1.0Amazon$0.035$0.140128K$1.09
DeepSeek V4.1 Flash 1017DeepSeek$0.020$0.2001.0M$1.10
Gemma 3 4BGoogle$0.050$0.100131K$1.15
Command R7B (12-2024)Cohere$0.037$0.150128K$1.16
Gemma 3 12BGoogle$0.050$0.150131K$1.35
Phi 4Microsoft$0.070$0.14016K$1.61
DeepSeek V4 Flash 0731DeepSeek$0.046$0.2701.0M$1.77
Qwen3.5-9BQwen$0.085$0.125262K$1.78
Nova Lite 1.0Amazon$0.060$0.240300K$1.86
Ministral 3 3B 2512Mistral$0.100$0.100131K$1.90
Gemma 4 26B A4B Google$0.068$0.225262K$1.91
Mistral Small 3.2 24BMistral$0.075$0.200256K$1.92
Qwen3.5-FlashQwen$0.065$0.2601M$2.02
DeepSeek V4 Flash 0423DeepSeek$0.090$0.1801.0M$2.07
Llama 3.2 3B InstructMeta$0.050$0.330131K$2.07
Qwen3 Coder 30B A3B InstructQwen$0.070$0.280262K$2.17
Qwen3 32BQwen$0.080$0.280131K$2.32
Qwen4 35B A3BQwen$0.060$0.3601.0M$2.34
GPT-5 NanoOpenAI$0.050$0.400400K$2.35
GLM 4.7 FlashZ.ai$0.061$0.400131K$2.51
DeepSeek V4.1 FlashDeepSeek$0.050$0.4801.0M$2.67
Llama 4 ScoutMeta$0.100$0.3001.3M$2.70
Voxtral Small 24B 2507Mistral$0.100$0.30033K$2.70
Qwen3 30B A3B Instruct 2507Qwen$0.100$0.300262K$2.70
Qwen3 14BQwen$0.120$0.24041K$2.76
gpt-oss-120bOpenAI$0.090$0.360131K$2.79
Ministral 3 8B 2512Mistral$0.150$0.150262K$2.85
Gemma 3 27BGoogle$0.080$0.450131K$3.00
Gemini 2.5 Flash LiteGoogle$0.100$0.4001.0M$3.10
GPT-4.1 NanoOpenAI$0.100$0.4001.0M$3.10
Llama Guard 4 12BMeta$0.180$0.180164K$3.42
Claude Haiku 5.5Anthropic$0.100$0.5001M$3.50
GPT-6 LunaOpenAI$0.100$0.5001.1M$3.50
GPT-6 Luna ProOpenAI$0.100$0.5001.1M$3.50
Ministral 3 14B 2512Mistral$0.200$0.200262K$3.80
Qwen3 30B A3BQwen$0.120$0.50041K$3.80
gpt-oss-20bOpenAI$0.170$0.360131K$3.99
gpt-oss-safeguard-20bOpenAI$0.170$0.360131K$3.99
Qwen3.8 FlashQwen$0.150$0.4701M$4.13
Qwen3.8 Omni FlashQwen$0.150$0.4701M$4.13
GLM 5.3 FlashZ.ai$0.150$0.5001.0M$4.25
Gemma 4 31BGoogle$0.200$0.400262K$4.60
Command R (08-2024)Cohere$0.150$0.600128K$4.65
Mistral Small 4Mistral$0.150$0.600262K$4.65
GPT-4o-miniOpenAI$0.150$0.600128K$4.65
GPT-4o-mini (2024-07-18)OpenAI$0.150$0.600128K$4.65
Qwen3 VL 30B A3B InstructQwen$0.150$0.600262K$4.65
Qwen3.6 35B A3BQwen$0.109$0.815262K$4.90
Qwen3 Coder NextQwen$0.120$0.800262K$5.00
Qwen3 235B A22B Instruct 2507Qwen$0.140$0.800262K$5.30
SabaMistral$0.200$0.60033K$5.40
DeepSeek V3.2 ExpDeepSeek$0.270$0.410164K$5.69
DeepSeek V4 Flash Vision ExpDeepSeek$0.216$0.6471.0M$5.82
Qwen3 Next 80B A3B InstructQwen$0.100$1.10262K$5.90
Qwen3.5-35B-A3BQwen$0.140$1.00262K$6.10
GLM 5.3Z.ai$0.070$1.401.0M$6.65
Qwen3 VL 8B InstructQwen$0.250$0.750262K$6.75
Qwen3 Coder FlashQwen$0.195$0.9751M$6.82
Qwen2.5 72B InstructQwen$0.360$0.40033K$7.00
Qwen-PlusQwen$0.260$0.7801M$7.02
DeepSeek V3.2DeepSeek$0.259$0.800164K$7.08
Qwen3.6 FlashQwen$0.188$1.131M$7.31
GLM 4.5 AirZ.ai$0.200$1.10131K$7.40
Mistral Small 3.1 24BMistral$0.351$0.555128K$7.49
DeepSeek V3.1DeepSeek$0.250$0.950164K$7.55
DeepSeek V3 0324DeepSeek$0.250$1.00164K$7.75
GPT-5.6 LunaOpenAI$0.200$1.201.1M$7.80
GPT-5.6 Luna ProOpenAI$0.200$1.201.1M$7.80
DeepSeek V3DeepSeek$0.257$1.03164K$7.98
GPT-5.4 NanoOpenAI$0.200$1.25400K$8.00
DeepSeek V3.1 TerminusDeepSeek$0.270$1.00164K$8.05
Codestral 2508Mistral$0.300$0.900256K$8.10
GLM 4.6VZ.ai$0.300$0.900131K$8.10
Qwen3 Coder 480B A35BQwen$0.300$1.00262K$8.50
Qwen3.8 27BQwen$0.060$1.961.0M$8.74
Llama 4 MaverickMeta$0.350$1.00524K$9.25
Gemini 3.1 Flash LiteGoogle$0.250$1.501.0M$9.75
Gemini 3.1 Flash Lite PreviewGoogle$0.250$1.501.0M$9.75
Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)Google$0.250$1.5066K$9.75
Qwen3.7 PlusQwen$0.320$1.281M$9.92
Qwen3.5 Plus 2026-02-15Qwen$0.260$1.561M$10.14
Command A+Cohere$0.300$1.50192K$10.50
GLM 5.3 FlashXZ.ai$0.370$1.251.0M$10.55
GLM 5.3 FlashX LegalZ.ai$0.370$1.251.0M$10.55
Qwen3 VL 235B A22B InstructQwen$0.210$1.90262K$10.75
Qwen3.5 Plus 2026-04-20Qwen$0.300$1.801M$11.70
GPT-5 MiniOpenAI$0.250$2.00400K$11.75
GPT-5.1-Codex-MiniOpenAI$0.250$2.00400K$11.75
Qwen3.6 27BQwen$0.250$2.00262K$11.75
Llama 3.3 70B InstructMeta$0.590$0.790131K$12.01
DeepSeek V4 Pro 0423DeepSeek$0.382$1.581.0M$12.04
Qwen3.5-122B-A10BQwen$0.260$2.08262K$12.22
Gemma 2 27BGoogle$0.650$0.6508K$12.35
GPT-4.1 MiniOpenAI$0.400$1.601.0M$12.40
Qwen3.6 PlusQwen$0.325$1.951M$12.67
GLM 4.7Z.ai$0.400$1.75203K$13.00
Mistral Large 3 2512Mistral$0.500$1.50262K$13.50
Llama 3.1 70B InstructMeta$0.720$0.720131K$13.68
Qwen2.5 Coder 32B InstructQwen$0.660$1.0033K$13.90
Devstral 2 2512Mistral$0.400$2.00262K$14.00
Qwen3.5-27BQwen$0.260$2.60262K$14.30
Gemini 3.5 Flash LiteGoogle$0.300$2.501.0M$14.50
Nano Banana (Gemini 2.5 Flash Image)Google$0.300$2.5033K$14.50
GLM 4.6Z.ai$0.500$2.00203K$15.50
Nova 2 LiteAmazon$0.330$2.751M$15.95
Qwen2.5 VL 72B InstructQwen$0.800$1.00128K$16.00
R1 0528DeepSeek$0.500$2.15164K$16.10
GLM 4.5VZ.ai$0.600$1.8066K$16.20
Kimi K2.5Moonshot$0.500$2.50262K$17.50
GLM 4.5Z.ai$0.600$2.20131K$17.80
GPT Audio MiniOpenAI$0.600$2.40128K$18.60
Mistral Large 4Mistral$0.700$2.101.0M$18.90
SonarPerplexity$1.00$1.00127K$19.00
Gemini 3 Flash PreviewGoogle$0.500$3.001.0M$19.50
Nano Banana 2 (Gemini 3.1 Flash Image Preview)Google$0.500$3.0066K$19.50
Nano Banana 2 (Gemini 3.1 Flash Image)Google$0.500$3.00131K$19.50
DeepSeek V4 Pro 0813DeepSeek$0.131$4.401.0M$19.56
Qwen3.5 397B A17BQwen$0.500$3.60262K$21.90
GPT-3.5 Turbo (older v0613)OpenAI$1.00$2.004K$23.00
GLM 5.2Z.ai$0.007$5.801.0M$23.31
Kimi K2.7 CodeMoonshot$0.630$3.50262K$23.45
Nova Pro 1.0Amazon$0.800$3.20300K$24.80
Gemini 3.6 FlashGoogle$0.750$3.751.0M$26.25
Gemini 3.7 FlashGoogle$0.750$3.751.0M$26.25
Amazon ErgoAmazon$1.00$3.001.0M$27.00
GLM 5Z.ai$1.00$3.20205K$27.80
Grok 4.20xAI$1.25$2.502M$28.75
Grok 4.20 Multi-AgentxAI$1.25$2.502M$28.75
Grok 4.3xAI$1.25$2.501M$28.75
Gemini 3.8 FlashGoogle$0.825$4.131.0M$28.88
GPT-5.4 MiniOpenAI$0.750$4.50400K$29.25
Kimi K2.6Moonshot$0.950$4.00262K$30.25
GLM 5 TurboZ.ai$1.20$4.00203K$34.00
GLM 5V TurboZ.ai$1.20$4.00203K$34.00
Claude Haiku 4.5Anthropic$1.00$5.00200K$35.00
GPT-6.1 TerraOpenAI$1.00$5.001.1M$35.00
GPT-6.1 Terra ProOpenAI$1.00$5.001.1M$35.00
Qwen4 MaxQwen$1.42$4.271M$38.47
GLM 5.1Z.ai$1.40$4.40205K$38.60
GLM 5.4Z.ai$1.40$4.401.0M$38.60
Kimi K3.1 ProMoonshot$0.253$8.801.0M$39.00
Qwen3.7 MaxQwen$1.48$4.421M$39.83
GLM 5.3 PrimeZ.ai$1.68$5.281M$46.32
Gemini 4 HydrogenGoogle$1.50$7.501.0M$52.50
Nano Banana 2.1Google$1.50$7.5066K$52.50
Mistral Medium 3.5Mistral$1.50$7.50262K$52.50
Mistral LargeMistral$2.00$6.00128K$54.00
Mistral Large 2407Mistral$2.00$6.00131K$54.00
Mixtral 8x22B InstructMistral$2.00$6.0066K$54.00
Pixtral Large 2502Mistral$2.00$6.00128K$54.00
Qwen3.8 2.4T A95BQwen$2.00$6.001M$54.00
Qwen3.8 Max (0902)Qwen$2.00$6.001M$54.00
Grok 4.5xAI$2.00$6.00500K$54.00
Grok 4.6xAI$2.00$6.00500K$54.00
Grok 4.7xAI$2.00$6.00500K$54.00
Gemini 3.5 FlashGoogle$1.50$9.001.0M$58.50
Gemini Omni 1.1 FlashGoogle$1.50$9.00131K$58.50
Gemini Omni 1.2 FlashGoogle$1.50$9.00131K$58.50
Gemini 2.5 Pro Preview 06-05Google$1.25$10.001.0M$58.75
GPT-5OpenAI$1.25$10.00400K$58.75
GPT-5.1OpenAI$1.25$10.00400K$58.75
GPT-5.1-CodexOpenAI$1.25$10.00400K$58.75
GPT-5.1-Codex-MaxOpenAI$1.25$10.00400K$58.75
GPT-3.5 Turbo 16kOpenAI$3.00$4.0016K$61.00
GPT-4.1OpenAI$2.00$8.001.0M$62.00
o3OpenAI$2.00$8.00200K$62.00
Sonar Deep ResearchPerplexity$2.00$8.00128K$62.00
Sonar Reasoning ProPerplexity$2.00$8.00128K$62.00
Kimi K3Moonshot$0.192$15.901.0M$66.48
Claude Sonnet 5Anthropic$2.00$10.001M$70.00
Claude Sonnet 5.5Anthropic$2.00$10.001M$70.00
GPT-6 SolOpenAI$2.00$10.001.1M$70.00
GPT-6 Sol ProOpenAI$2.00$10.001.1M$70.00
GPT-6.1 SolOpenAI$2.00$10.001.1M$70.00
GPT-6.1 Sol ProOpenAI$2.00$10.001.1M$70.00
GPT-6.2 SolOpenAI$2.00$10.001.1M$70.00
GPT-6.2 Sol ProOpenAI$2.00$10.001.1M$70.00
Command ACohere$2.50$10.00256K$77.50
Command R+ (08-2024)Cohere$2.50$10.00128K$77.50
GPT AudioOpenAI$2.50$10.00128K$77.50
GPT-4oOpenAI$2.50$10.00128K$77.50
GPT-4o (2024-08-06)OpenAI$2.50$10.00128K$77.50
GPT-4o (2024-11-20)OpenAI$2.50$10.00128K$77.50
Gemini 3.1 Pro PreviewGoogle$2.00$12.001.0M$78.00
Gemini 3.1 Pro Preview Custom ToolsGoogle$2.00$12.001.0M$78.00
Nano Banana Pro (Gemini 3 Pro Image Preview)Google$2.00$12.0066K$78.00
Nano Banana Pro (Gemini 3 Pro Image)Google$2.00$12.00131K$78.00
GPT-5.6 TerraOpenAI$2.00$12.001.1M$78.00
GPT-5.6 Terra ProOpenAI$2.00$12.001.1M$78.00
GPT-5.2OpenAI$1.75$14.00400K$82.25
GPT-5.2 ChatOpenAI$1.75$14.00128K$82.25
GPT-5.2-CodexOpenAI$1.75$14.00400K$82.25
GPT-5.3-CodexOpenAI$1.75$14.00400K$82.25
Nova Premier 1.0Amazon$2.50$12.501M$87.50
GPT-5.4OpenAI$2.50$15.001.1M$97.50
Claude Sonnet 4.5Anthropic$3.00$15.001M$105
Claude Sonnet 4.6Anthropic$3.00$15.001M$105
Gemini 4 NeonGoogle$3.00$15.001.0M$105
Sonar ProPerplexity$3.00$15.00200K$105
Sonar Pro SearchPerplexity$3.00$15.00200K$105
Qwen3.8 Max PrimeQwen$4.00$12.001M$108
GPT-4o (2024-05-13)OpenAI$5.00$15.00128K$135
Claude Opus 5.5Anthropic$4.00$20.001M$140
Gemini 4 ArgonGoogle$4.00$20.001.0M$140
Gemini 4 CarbonGoogle$4.00$20.001.0M$140
Claude Opus 4.5Anthropic$5.00$25.00200K$175
Claude Opus 4.6Anthropic$5.00$25.001M$175
Claude Opus 4.7Anthropic$5.00$25.001M$175
Claude Opus 4.8Anthropic$5.00$25.001M$175
Claude Opus 5Anthropic$5.00$25.001M$175
GPT-5.4 Image 2OpenAI$8.00$15.00272K$180
GPT-5 ImageOpenAI$10.00$10.00400K$190
GPT Chat LatestOpenAI$5.00$30.00400K$195
GPT-5.5OpenAI$5.00$30.001.1M$195
GPT-5.6 SolOpenAI$5.00$30.001.1M$195
GPT-5.6 Sol ProOpenAI$5.00$30.001.1M$195
Claude Fable 5.2Anthropic$8.00$40.001M$280
Claude Mythos 5.2Anthropic$8.00$40.001M$280
GPT-6.2 AstraOpenAI$8.00$40.001.1M$280
GPT-6.2 Astra ProOpenAI$8.00$40.001.1M$280
Claude Fable 5Anthropic$10.00$50.001M$350
Claude Fable 5.1Anthropic$10.00$50.001M$350
Claude Mythos 5Anthropic$10.00$50.001M$350
Claude Mythos 5.1Anthropic$10.00$50.001M$350
GPT-6 AstraOpenAI$10.00$50.001.1M$350
GPT-6 Astra ProOpenAI$10.00$50.001.1M$350
GPT-5.6 CyberOpenAI$12.50$75.00400K$488
Claude Opus 4.1Anthropic$15.00$75.00200K$525
o3 ProOpenAI$20.00$80.00200K$620
GPT-4OpenAI$30.00$60.008K$690
GPT-5 ProOpenAI$15.00$120.00400K$705
GPT-5.2 ProOpenAI$21.00$168.00400K$987
GPT-5.4 ProOpenAI$30.00$180.001.1M$1,170
GPT-5.5 ProOpenAI$30.00$180.001.1M$1,170

Frequently asked questions

How is API cost calculated?

Each request is billed for input tokens (your prompt and any context) and output tokens (the model's reply), at separate prices per million tokens. Monthly cost = requests × (input tokens × input price + output tokens × output price) ÷ 1,000,000.

How many tokens is a word?

In English, one token is about four characters, or roughly three quarters of a word. 1,000 tokens is around 750 words. Other languages and code often use more tokens per word.

Why might my real bill be different?

This estimate leaves out prompt caching discounts, batch discounts, reasoning tokens that some models bill as output, tool or web search charges, and image or audio inputs. Providers also change prices, so treat the result as a planning estimate.

Comparing AI coding tools instead? See the best AI tools to write and debug code.