AI API cost calculator

Monthly cost at list price for 178 models, cheapest first.

// cost calculator

modelin $/1Mout $/1M= monthly
Llama 3.2 1B Instruct$0.02$0.02$1.20
Llama-3.1-8B-Instruct$0.02$0.04$1.40
Mistral Nemo$0.029$0.03$1.75
DeepSeek OCR 2$0.03$0.03$1.80
Gemma 4 E2B IT$0.04$0.08$2.80
Qwen3.7 Flash$0.03$0.13$2.80
GPT OSS 20B$0.03$0.14$2.90
AutoGLM Phone 9B Multilingual$0.035$0.138$3.13
Mistral Small 3$0.05$0.08$3.30
Command R7B$0.0375$0.15$3.38
Command R7B Arabic$0.0375$0.15$3.38
Gemma 3 12B IT$0.05$0.10$3.50
GPT OSS 120B$0.037$0.17$3.55
DeepSeek R1 0528 Qwen3 8B$0.06$0.09$3.90
DeepSeek V4 Flash 0731$0.06$0.18$4.80
Qwen-VL OCR$0.07$0.16$5.10
GPT OSS Safeguard 20B$0.07$0.20$5.50
Gemma 3 27B IT$0.08$0.16$5.60
Mistral Small 3.2 24B$0.075$0.20$5.75
GLM-4-32B-0414-128K$0.10$0.10$6.00
Ministral 3 3B$0.10$0.10$6.00
DeepSeek V4 Flash$0.09$0.18$6.30
Qwen Flash$0.05$0.40$6.50
Qwen3.5 9B$0.10$0.15$6.50
Qwen3 32B$0.08$0.28$6.80
Gemma 4 26B A4B IT$0.07$0.34$6.90
GLM-4.7-Flash$0.0605$0.40$7.03
GLM-4.7-FlashX$0.07$0.40$7.50
Gemma 4 31B IT$0.09$0.34$7.90
Llama 4 Scout 17B$0.10$0.30$8.00
Mistral Small 3.1 24B$0.10$0.30$8.00
Qwen3-30B-A3B-Instruct-2507$0.10$0.30$8.00
Llama 3.3 70B Turbo$0.10$0.32$8.20
Qwen3 14B$0.12$0.24$8.40
Gemini 2.5 Flash-Lite$0.10$0.40$9.00
Ministral 3 8B$0.15$0.15$9.00
Qwen3.5 Flash$0.10$0.40$9.00
Voxtral Small$0.10$0.40$9.00
Llama 3.2 11B Vision Instruct$0.0485$0.676$9.19
Claude Haiku 5.5$0.10$0.50$10.00
GPT-6 Luna$0.10$0.50$10.00
Muse Ember$0.10$0.50$10.00
Qwen3 235B-A22B Instruct 2507$0.09$0.55$10.00
Llama Guard 4 12B$0.18$0.18$10.80
Qwen3 30B A3B$0.12$0.50$11.00
Ministral 3 14B$0.20$0.20$12.00
Qwen3.8 Flash$0.15$0.47$12.20
Qwen3.8 Omni Flash$0.15$0.47$12.20
Mistral Small 3.2 24B Instruct (2506)$0.1682$0.3925$12.34
GLM-5.3-Flash$0.15$0.50$12.50
Command R$0.15$0.60$13.50
DeepSeek V4.1 Flash Spot$0.15$0.60$13.50
GPT OSS Safeguard 120B$0.15$0.60$13.50
MiniMax-M3.1-Flash$0.15$0.60$13.50
Mistral Small 4$0.15$0.60$13.50
Qwen3 VL 30B A3B Instruct$0.15$0.60$13.50
Qwen3-Next 80B-A3B Instruct$0.09$1.10$15.50
DeepSeek-V3.2$0.26$0.38$16.80
Qwen3 VL 235B A22B Instruct$0.20$0.88$18.80
GLM-4.5-Air$0.20$1.10$21.00
DeepSeek-V3.1$0.25$0.95$22.00
GPT-5.6 Luna$0.20$1.20$22.00
Llama 4 Maverick 17B Instruct$0.27$0.85$22.00
Qwen2.5 72B Instruct$0.36$0.40$22.00
Qwen3 Omni 30B A3B Thinking$0.25$0.97$22.20
Codestral 25.08$0.30$0.90$24.00
GLM-4.6V$0.30$0.90$24.00
Llama Guard 3 8B$0.484$0.03$24.50
DeepSeek-V3$0.32$0.89$24.90
Qwen3 Coder 480B A35B Instruct Turbo$0.30$1.00$25.00
Qwen3-VL Plus$0.20$1.60$26.00
MiniMax-M3$0.30$1.20$27.00
Muse Glimmer 30B$0.30$1.20$27.00
Qwen3.6 Flash$0.25$1.50$27.50
Qwen3 Coder Flash$0.30$1.50$30.00
GLM-5.3-FlashX-Legal$0.37$1.25$31.00
Qwen Plus$0.40$1.20$32.00
Qwen3.5 35B-A3B$0.25$2.00$32.50
Qwen3.8 27B$0.20$2.50$35.00
DeepSeek V4 Flash Vision Exp$0.44$1.32$35.20
Qwen3.7 Plus$0.40$1.60$36.00
Qwen3 Coder Next$0.50$1.20$37.00
Qwen Plus Character (Japanese)$0.50$1.40$39.00
Qwen3.5 27B$0.30$2.40$39.00
Aya Expanse 32B$0.50$1.50$40.00
Gemini 3.5 Flash Lite$0.30$2.50$40.00
Magistral Small 1.2$0.50$1.50$40.00
Mistral Medium 3$0.40$2.00$40.00
Qwen3.6 35B-A3B$0.375$2.25$41.25
Qwen2.5 Coder 32B Instruct$0.66$1.00$43.00
DeepSeek-R1-0528$0.50$2.15$46.50
GLM-4.5V$0.60$1.80$48.00
MiniMax M1 80K$0.55$2.20$49.50
Kimi K2 Instruct$0.57$2.30$51.50
GLM-4.5$0.60$2.20$52.00
GLM-4.6$0.60$2.20$52.00
GLM-4.7$0.60$2.20$52.00
Qwen3.5 122B-A10B$0.40$3.20$52.00
DeepSeek V4 Pro (0813)$0.66$1.98$52.80
Gemini 3 Flash Preview$0.50$3.00$55.00
Kimi K2 Instruct 0905$0.60$2.50$55.00
Qwen3.6 Plus$0.50$3.00$55.00
Mistral Large 4$0.70$2.10$56.00
DeepSeek R1 (Turbo)$0.70$2.50$60.00
Kimi K2.5$0.60$3.00$60.00
Qwen3.6 27B$0.60$3.60$66.00
Gemini 3.6 Flash$0.75$3.75$75.00
Gemini 3.8 Flash$0.75$3.75$75.00
GLM-5$1.00$3.20$82.00
GPT-5.4 mini$0.75$4.50$82.50
Grok 4.20 (Non-Reasoning)$1.25$2.50$87.50
Grok 4.20 (Reasoning)$1.25$2.50$87.50
Grok 4.20 Multi-Agent$1.25$2.50$87.50
Grok 4.3$1.25$2.50$87.50
DeepSeek V4 Pro$1.30$2.60$91.00
Claude Haiku 4.5$1.00$5.00$100
GLM-5-Turbo$1.20$4.00$100
GLM-5V-Turbo$1.20$4.00$100
GPT-6.1 Terra$1.00$5.00$100
Muse Spark 1.1$1.25$4.25$105
Muse Spark 1.2$1.25$4.25$105
Muse Spark 1.3$1.25$4.25$105
Muse Spark Open$1.25$4.25$105
GLM-5.1$1.40$4.40$114
GLM-5.2$1.40$4.40$114
GLM-5.3$1.40$4.40$114
Qwen4 Max$1.50$4.50$120
Qwen Max$1.60$6.40$144
Gemini 4 Hydrogen$1.50$7.50$150
Grok 4.5$2.00$6.00$160
Grok 4.6$2.00$6.00$160
Grok 4.7$2.00$6.00$160
Pixtral Large (25.02) (EU)$2.00$6.00$160
Qwen3.8 2.4T A95B$2.00$6.00$160
Qwen3.8 Max$2.00$6.00$160
GPT-5.1 Codex Max$1.25$10.00$163
Qwen-MT Plus$2.46$7.37$197
Claude Sonnet 5$2.00$10.00$200
Claude Sonnet 5.5$2.00$10.00$200
Gemini 4 Argon$2.00$10.00$200
Gemini 4 Carbon$2.00$10.00$200
GPT-6 Sol$2.00$10.00$200
GPT-6.1 Sol$2.00$10.00$200
GPT-6.1 Sol Healthcare$2.00$10.00$200
GPT-6.2 Sol$2.00$10.00$200
GPT-6.2 Sol Healthcare$2.00$10.00$200
Kimi K3.1 Pro$2.00$10.00$200
Qwen3.7 Max$2.50$7.50$200
Gemini 3.1 Pro Preview$2.00$12.00$220
Gemini 3.1 Pro Preview Custom Tools$2.00$12.00$220
GPT-5.6 Terra$2.00$12.00$220
Command A$2.50$10.00$225
Command A Reasoning$2.50$10.00$225
Command A Translate$2.50$10.00$225
Command A Vision$2.50$10.00$225
Command R+$2.50$10.00$225
GPT-5.2$1.75$14.00$228
GPT-5.4$2.50$15.00$275
Claude Sonnet 4.6$3.00$15.00$300
Gemini 4 Neon$3.00$15.00$300
Kimi K3$3.00$15.00$300
Claude Opus 5.5$4.00$20.00$400
GPT-5.6 Sol$4.00$20.00$400
Claude Opus 4.6$5.00$25.00$500
Claude Opus 4.7$5.00$25.00$500
Claude Opus 4.8$5.00$25.00$500
Claude Opus 5$5.00$25.00$500
GPT-5.5$5.00$30.00$550
Claude Fable 5.2$8.00$40.00$800
GPT-6.2 Astra$8.00$40.00$800
GPT-6.2 Astra Healthcare$8.00$40.00$800
Claude Fable 5$10.00$50.00$1,000
Claude Fable 5.1$10.00$50.00$1,000
GPT-6 Astra$10.00$50.00$1,000
GPT-6 Astra Healthcare$10.00$50.00$1,000
GPT-5.2 Pro$21.00$168.00$2,730
GPT-5.4 Pro$30.00$180.00$3,300
GPT-5.5 Pro$30.00$180.00$3,300

Base-tier list prices. Long-context tiers, caching and batch discounts are not included.

// how to estimate your token volume

LLM APIs bill input tokens (your prompt, system message, retrieved documents and chat history) and output tokens (the model's answer) separately, per million tokens. As a rule of thumb, one token is about three quarters of an English word, so 1M tokens is roughly 750,000 words.

To size a workload, multiply requests per month by the average prompt and answer length. A support chatbot with 100,000 conversations of 100 input and 20 output tokens per turn uses about 10M input and 2M output tokens a month. RAG apps are input-heavy because every query carries retrieved context; coding agents are output-heavy because they write long diffs.

// faq

How is LLM API pricing calculated?

Cost = input tokens × input price + output tokens × output price, with prices quoted per million tokens. This calculator uses each provider's base-tier list price.

Why is output more expensive than input?

Generating tokens is slower and uses more compute than reading them, so most providers charge 3 to 5 times more for output tokens.

Are cached tokens and batch discounts included?

No. Prompt caching and batch APIs can cut costs significantly; check each model page for cache prices.

How often are prices updated?

Every day. Prices come from the open models.dev dataset and every change is logged in the changelog.