AI model API cost calculator

Enter your workload: the calculator applies the list prices published by each vendor and ranks every model from cheapest to most expensive.

Prices verified

Prefilled values = an example. 200 tasks of 50,000 input and 5,000 output tokens: an arbitrary order of magnitude, not a measurement. Replace them with your own numbers (your provider's console shows the tokens used).

Estimated monthly cost

Claude Sonnet 5.5: $30.00 per month · cheapest rank 21 of 29

Monthly cost = tasks × (input tokens × input price + output tokens × output price) ÷ 1,000,000.

Every model, cheapest first

Every model, cheapest first
RankModelVendorInput price ($/M tokens)Output price ($/M tokens)Monthly costPricing conditionsSources
1Claude Haiku 5.5 Anthropic$0.1$0.5$1.50Tiered or temporary price: base price used.
prompts ≤ 100K tokens; $0.50/$2.50 above
price — Claude Haiku 5.5
2GPT-6 Luna OpenAI$0.1$0.5$1.50—price — GPT-6 Luna
3Qwen3.8-Flash Alibaba (Qwen)$0.15$0.47$1.97international (Singapore) priceprice — Qwen3.8-Flash
4GLM-5.3-Flash Z.ai$0.15$0.5$2.00—price — GLM-5.3-Flash
5MiniMax M3.1 Flash MiniMax$0.15$0.6$2.10flat rate; $0.015 cached inputprice — MiniMax M3.1 Flash
6Mistral Small 4 Mistral AI$0.15$0.6$2.10—price — Mistral Small 4
7Codestral 25.08 Mistral AI$0.3$0.9$3.90code completion (FIM)price — Codestral 25.08
8DeepSeek V4.1-Flash-1017 DeepSeek$0.3$1.2$4.20Tiered or temporary price: base price used.
peak hours, cache miss; half price off-peak
price — DeepSeek V4.1-Flash-1017
9MiniMax M3 MiniMax$0.3$1.2$4.20Tiered or temporary price: base price used.
input ≤ 512K tokens; $0.60/$2.40 above
price — MiniMax M3
10Amazon Nova 2 Lite Amazon$0.3$2.5$5.50Bedrock on-demand, global cross-Region inference (us-east-1 rate); $0.33/$2.75 with in-Region inference in us-east-1price — Amazon Nova 2 Lite
11Gemini 3.5 Flash-Lite Google$0.3$2.5$5.50—price — Gemini 3.5 Flash-Lite
12Qwen3.8-27B Alibaba (Qwen)$0.5$3$8.00international (Singapore) priceprice — Qwen3.8-27B
13Gemini 3.8 Flash Google$0.75$3.75$11.25Tiered or temporary price: base price used.
through Dec 31, 2026, then $1.50/$7.50
price — Gemini 3.8 Flash
14GPT-6.1 Terra OpenAI$1$5$15.00Tiered or temporary price: base price used.
above 272K input tokens: 2x input, 1.5x output
price — GPT-6.1 Terra
15DeepSeek V4-Pro-0813 DeepSeek$1.32$3.96$17.16Tiered or temporary price: base price used.
peak hours, cache miss; half price off-peak
price — DeepSeek V4-Pro-0813
16Mistral Large 4 Mistral AI$1.36$4.18$17.78public previewprice — Mistral Large 4
17GLM-5.3 Z.ai$1.4$4.4$18.40—price — GLM-5.3
18Mistral Medium 3.5 Mistral AI$1.5$7.5$22.50—price — Mistral Medium 3.5
19Grok 4.7 xAI$2$6$26.00—price — Grok 4.7
20Qwen3.8-Max Alibaba (Qwen)$2$6$26.00international (Singapore) priceprice — Qwen3.8-Max
21Claude Sonnet 5.5 selectedAnthropic$2$10$30.00—price — Claude Sonnet 5.5
22Gemini 4 Argon Google$2$10$30.00Tiered or temporary price: base price used.
launch price until Nov 30, 2026, then $4/$20
price — Gemini 4 Argon
23Gemini 4 Carbon Google$2$10$30.00Tiered or temporary price: base price used.
Not yet available: access limited to the Fairwind Program, no public release date. Announced price: $2/$10 at launch, then $4/$20 (date not published)
price — Gemini 4 Carbon
24GPT-6.1 Sol OpenAI$2$10$30.00Tiered or temporary price: base price used.
above 272K input tokens: 2x input, 1.5x output
price — GPT-6.1 Sol
25GPT-5.3-Codex OpenAI$1.75$14$31.50specialized Codex modelprice — GPT-5.3-Codex
26Kimi K3 Moonshot AI$3$15$45.00cache-miss input; $0.30 cache hitprice — Kimi K3
27Claude Opus 5.5 Anthropic$4$20$60.00—price — Claude Opus 5.5
28Claude Fable 5.1 Anthropic$10$50$150.00—price — Claude Fable 5.1
29GPT-6 Astra OpenAI$10$50$150.00Tiered or temporary price: base price used.
above 272K input tokens: 2x input, 1.5x output
price — GPT-6 Astra

Indicative estimate in US dollars, excluding tax, caching, batch processing, off-peak rates and subscriptions. Cache discounts are not computed: our data only lists them as notes for a few models. An agent task often chains several requests: tiered-pricing thresholds apply per request, not per task. · Verified

Price sources