Pricing

AI Model Pricing Calculator

Set your monthly token volume and see real costs across 27 models with published pricing. All prices are from provider documentation, not estimates. Batch discounts and prompt caching can reduce costs by 50 to 90 percent; see the notes below the calculator.

Usage settings

M tokens
M tokens

Cheapest option

$1.26/mo

DeepSeek V4 Flash

Cost per request

$0.0013

at 1,000 req/mo (DeepSeek V4 Flash)

Price spread

158.7x

DeepSeek V4 Flash vs Claude Fable 5

Monthly cost by model (cheapest first)

Showing top 15 of 27 models with published pricing. Hover for input/output breakdown.

ModelProviderInput costOutput costMonthly totalPer request
DeepSeek V4 FlashCached input $0.0028/MTokDeepSeek$0.90$0.36$1.26$0.0013
Llama 4 ScoutVia third-party inference providers; Meta does not operate a paid APIMeta$0.80$0.60$1.40$0.0014
Mistral Small 3Mistral$1.00$0.60$1.60$0.0016
Llama 4 MaverickVia third-party inference providers; Meta does not operate a paid APIMeta$1.50$1.20$2.70$0.0027
Tencent Hy3Free via OpenRouter for ~2 weeks from 2026-07-07 (model ID tencent/hy3:free); paid tier $0.20/$0.80 per MTok via OpenRouterTencent$2.00$1.60$3.60$0.0036
DeepSeek V4 Pro75% launch promo made permanent 2026-05-22 (original list was $1.74/$3.48 per MTok); $0.435 is now the standard rate.DeepSeek$4.35$1.74$6.09$0.0061
Gemini 2.5 FlashGoogle$3.00$5.00$8.00$0.0080
DeepSeek R1deepseek-reasoner API alias now routes to V4 Flash thinking modeDeepSeek$5.50$4.38$9.88$0.0099
GLM-5.2Via OpenRouter (model ID z-ai/glm-5.2); SiliconFlow lists $1.40/$4.40 per MTokZ.ai$9.00$5.72$15$0.015
Qwen3 MaxAlibaba$7.80$7.80$16$0.016
GPT-5Succeeded by GPT-5.5 (official OpenAI replacement); no longer on pricing page. API shutdown Dec 11 2026.OpenAI$6.25$10$16$0.016
o4-miniOpenAI$11$8.80$20$0.020
Claude Haiku 4.5Anthropic$10$10$20$0.020
Qwen3.7 MaxAlibaba$13$7.50$20$0.020
Mistral Large 2Mistral$20$12$32$0.032
Grok 4.20xAI$20$12$32$0.032
Gemini 2.5 Pro$2.50/$15 per MTok for prompts over 200K tokensGoogle$13$20$33$0.033
Gemini 3.5 FlashGoogle$15$18$33$0.033
o3OpenAI$20$16$36$0.036
Claude Sonnet 5Introductory pricing through Aug 31 2026; standard rate $3/$15 per MTokAnthropic$20$20$40$0.040
GPT-5.4OpenAI$25$30$55$0.055
Claude Sonnet 4.6Anthropic$30$30$60$0.060
Grok 3xAI$30$30$60$0.060
Claude Opus 4.8Anthropic$50$50$100$0.100
GPT-5.5OpenAI$50$60$110$0.110
Sakana Fugu Ultra$10/$45 per MTok for contexts over 272K tokens; cached input $0.50/MTok (standard), $1.00/MTok (over 272K)Sakana AI$50$60$110$0.110
Claude Fable 5Anthropic$100$100$200$0.200

Published pricing

Per-million-token rates from provider documentation. "Not published" means no standard public rate is listed. Sorted by input price, cheapest first.

ModelProviderIn / MTokOut / MTokNoteFree tier
Llama 4 ScoutMeta$0.08$0.30Via third-party inference providers; Meta does not operate a paid API
DeepSeek V4 FlashDeepSeek$0.09$0.18Cached input $0.0028/MTok
Mistral Small 3Mistral$0.10$0.30
Llama 4 MaverickMeta$0.15$0.60Via third-party inference providers; Meta does not operate a paid API
Tencent Hy3Tencent$0.20$0.80Free via OpenRouter for ~2 weeks from 2026-07-07 (model ID tencent/hy3:free); paid tier $0.20/$0.80 per MTok via OpenRouterFree tier
Gemini 2.5 FlashGoogle$0.30$2.50
DeepSeek V4 ProDeepSeek$0.43$0.8775% launch promo made permanent 2026-05-22 (original list was $1.74/$3.48 per MTok); $0.435 is now the standard rate.
DeepSeek R1DeepSeek$0.55$2.19deepseek-reasoner API alias now routes to V4 Flash thinking mode
GPT-5OpenAI$0.63$5.00Succeeded by GPT-5.5 (official OpenAI replacement); no longer on pricing page. API shutdown Dec 11 2026.
Qwen3 MaxAlibaba$0.78$3.90
GLM-5.2Z.ai$0.90$2.86Via OpenRouter (model ID z-ai/glm-5.2); SiliconFlow lists $1.40/$4.40 per MTok
Claude Haiku 4.5Anthropic$1.00$5.00
o4-miniOpenAI$1.10$4.40
Gemini 2.5 ProGoogle$1.25$10.00$2.50/$15 per MTok for prompts over 200K tokens
Qwen3.7 MaxAlibaba$1.25$3.75
Gemini 3.5 FlashGoogle$1.50$9.00
Claude Sonnet 5Anthropic$2.00$10.00Introductory pricing through Aug 31 2026; standard rate $3/$15 per MTok
o3OpenAI$2.00$8.00
Mistral Large 2Mistral$2.00$6.00
Grok 4.20xAI$2.00$6.00
GPT-5.4OpenAI$2.50$15.00
Claude Sonnet 4.6Anthropic$3.00$15.00
Grok 3xAI$3.00$15.00
Claude Opus 4.8Anthropic$5.00$25.00
GPT-5.5OpenAI$5.00$30.00
Sakana Fugu UltraSakana AI$5.00$30.00$10/$45 per MTok for contexts over 272K tokens; cached input $0.50/MTok (standard), $1.00/MTok (over 272K)
Claude Fable 5Anthropic$10.00$50.00
Gemini 3.5 ProGoogleNot publishedNot publishedGA expected Jul 17 2026; pricing not confirmed as of 2026-07-06

Cost to fill the context window

For long-document and RAG workloads, the input price per million tokens does not tell the full story. A cheaper model with a smaller context window can cost more per useful context than a pricier model with a large window. Sorted cheapest first.

ModelProviderContext windowIn / MTokCost to fill context
Mistral Small 3Mistral128K$0.10$0.013
Tencent Hy3Tencent262K$0.20$0.052
DeepSeek R1DeepSeek128K$0.55$0.070
DeepSeek V4 FlashDeepSeek1.0M$0.09$0.090
Llama 4 MaverickMeta1.0M$0.15$0.150
Claude Haiku 4.5Anthropic200K$1.00$0.200
Qwen3 MaxAlibaba262K$0.78$0.204
o4-miniOpenAI200K$1.10$0.220
GPT-5OpenAI400K$0.63$0.250
Mistral Large 2Mistral128K$2.00$0.256
Gemini 2.5 FlashGoogle1.0M$0.30$0.315
Grok 3xAI131K$3.00$0.393
o3OpenAI200K$2.00$0.400
DeepSeek V4 ProDeepSeek1.0M$0.43$0.435
Llama 4 ScoutMeta10.0M$0.08$0.800
GLM-5.2Z.ai1.0M$0.90$0.944
Qwen3.7 MaxAlibaba1.0M$1.25$1.25
Gemini 2.5 ProGoogle1.0M$1.25$1.31
Gemini 3.5 FlashGoogle1.0M$1.50$1.57
Claude Sonnet 5Anthropic1.0M$2.00$2.10
GPT-5.4OpenAI1.0M$2.50$2.62
Claude Sonnet 4.6Anthropic1.0M$3.00$3.15
Grok 4.20xAI2.0M$2.00$4.00
Sakana Fugu UltraSakana AI1.0M$5.00$5.00
Claude Opus 4.8Anthropic1.0M$5.00$5.24
GPT-5.5OpenAI1.0M$5.00$5.24
Claude Fable 5Anthropic1.0M$10.00$10.49

What the calculator does not include

  • Batch processing (50% off). Anthropic, OpenAI, and Google all offer asynchronous batch APIs at half the standard rate. Good for offline jobs: embeddings, classification, bulk summarization. See anthropic.com/pricing, openai.com/api/pricing, and ai.google.dev/pricing.
  • Prompt caching (up to 90% off cached input). Claude and Gemini charge as little as 10 percent of the standard input rate for cache hits. If your workload reuses a long system prompt or repeated document, real costs can be 80 to 90 percent lower than the calculator shows.
  • Volume and enterprise discounts. At sustained high volumes, providers negotiate rates not reflected in public pricing.
  • Free tiers. Several providers offer free rate-limited access. See the free models directory.
  • Self-hosting open-weight models. Llama, Qwen, Mistral, and DeepSeek R1 can be self-hosted. You pay infrastructure, not per-token rates. At sustained scale, self-hosting can be meaningfully cheaper than API pricing for output-heavy workloads.

Not sure which model fits your budget and quality bar?

We run cost-to-quality evaluations against your actual prompts and data, benchmark multiple providers, and build the integration. No vendor lock-in, no guesswork.

Related

Pricing accuracy. All prices reflect published public API rates at the time of last update. Prices change. Verify at the provider before committing to a budget. Models without a published rate are excluded from the calculator.

Affiliate disclosure. AY Automate has no affiliate relationship with any model provider listed here. Rankings and recommendations are editorial, not commercial.