AI Pricing Comparison 2026 — API Costs & Subscriptions

Complete pricing comparison for all major AI models. API costs per 1M tokens, monthly subscriptions, and free tiers — sorted cheapest first.

API Pricing (per 1M tokens)

Sorted by cheapest input price. Green highlight indicates best value models.

ModelProviderInput/1M tokensOutput/1M tokensFree Tier?Overall Score
Gemini 3.5 Flash Best ValueGoogle$0.15$0.60Yes88Details →
DeepSeek V4 Best ValueDeepSeek$0.27$0.55Yes83Details →
Qwen 3Alibaba$0.30$0.60Yes84Details →
DeepSeek V4 Pro Best ValueDeepSeek$0.44$0.87Yes87Details →
Claude Haiku 3.5Anthropic$0.80$4.00Yes79Details →
Mistral Large 3Mistral$2.00$6.0086Details →
GPT-4oOpenAI$2.50$10.00Yes87Details →
Command R+Cohere$2.50$10.0078Details →
Claude Sonnet 4Anthropic$3.00$15.00Yes89Details →
Grok 3xAI$3.00$15.0086Details →
Gemini 3.1 ProGoogle$3.50$14.00Yes92Details →
GPT-5.5OpenAI$5.00$30.00Yes93Details →
Claude Opus 4.7Anthropic$5.00$25.00Yes92Details →

Subscription Pricing

Monthly subscription costs for chat/consumer access.

ModelProviderPlan NameMonthly PriceFree Tier?
GPT-5.5OpenAIChatGPT Plus$20/moYesDetails →
GPT-4oOpenAIChatGPT Plus$20/moYesDetails →
Claude Opus 4.7AnthropicClaude Pro$20/moYesDetails →
Claude Sonnet 4AnthropicClaude Pro$20/moYesDetails →
Claude Haiku 3.5AnthropicClaude Pro$20/moYesDetails →
Gemini 3.1 ProGoogleGoogle AI Pro$20/moYesDetails →
Gemini 3.5 FlashGoogleGoogle AI Pro$20/moYesDetails →
Grok 3xAIX Premium+$30/moDetails →

Key Takeaways

Cheapest API

Gemini 3.5 Flash at $0.15/1M input tokens — the cheapest from a major provider with an 88 overall score.

Best Free Option

Llama 4 Maverick is fully open-source. Self-host for zero API cost with competitive performance.

Best Value for Coding

DeepSeek V4 Pro at $0.44/1M input — scores 93 on coding benchmarks at a fraction of frontier model prices.