Pick the right AI
AI API pricing
Price per million tokens for 47 models from Anthropic, OpenAI, Google, DeepSeek, xAI, and what your workload would cost each month. Every price is copied from the provider’s own pricing page, last checked November 29, 2026.
Monthly cost = 30 days of requests at standard prices. Cached input is billed at each model’s cache-read price; cache writes, batch discounts and long-context surcharges are not included. A token is roughly ¾ of an English word.
| Cached / 1M | Context | ||||
|---|---|---|---|---|---|
GPT-5 nanoOpenAI gpt-5-nano | $0.05 | $0.005 | $0.40 | — | $6.04 |
Gemini 2.5 Flash-LiteGeminiFree tier gemini-2.5-flash-lite | $0.10 | $0.01 | $0.40 | — | $7.28 |
Claude Haiku 5.5Claude claude-haiku-5-5Up to 100K-token prompts; $0.50 / $2.50 above | $0.10 | $0.01 | $0.50 | 1M | $8.47 |
GPT-6 LunaOpenAI gpt-6-luna | $0.10 | $0.01 | $0.50 | — | $8.47 |
GPT-4o miniOpenAI gpt-4o-mini | $0.15 | $0.075 | $0.60 | — | $12.26 |
GPT-5.6 LunaOpenAI gpt-5.6-luna | $0.20 | $0.02 | $1.20 | — | $19.35 |
GPT-5.4 nanoOpenAI gpt-5.4-nano | $0.20 | $0.02 | $1.25 | — | $19.95 |
DeepSeek V4.1 FlashDeepSeek deepseek-flashHalf price off-peak | $0.30 | $0.006 | $1.20 | 1M | $21.28 |
Gemini 3.1 Flash-LiteGeminiFree tier gemini-3.1-flash-lite | $0.25 | $0.025 | $1.50 | — | $24.19 |
GPT-5 miniOpenAI gpt-5-mini | $0.25 | $0.025 | $2.00 | — | $30.19 |
Gemini 3.5 Flash-LiteGeminiFree tier gemini-3.5-flash-lite | $0.30 | $0.03 | $2.50 | — | $37.42 |
Grok 4.3Grok grok-4.3 | $1.25 | $0.20 | $2.50 | 1M | $62.63 |
Grok 4.20 ReasoningGrok grok-4.20-0309-reasoning | $1.25 | $0.20 | $2.50 | 1M | $62.63 |
Grok 4.20Grok grok-4.20-0309-non-reasoning | $1.25 | $0.20 | $2.50 | 1M | $62.63 |
Gemini 3.8 FlashGeminiFree tier gemini-3.8-flashFrom Jan 1: $1.50 in / $7.50 out | $0.75 | $0.075 | $3.75 | — | $63.56 |
Gemini 3.6 FlashGeminiFree tier gemini-3.6-flashFrom Jan 1: $1.50 in / $7.50 out | $0.75 | $0.075 | $3.75 | — | $63.56 |
GPT-5.4 miniOpenAI gpt-5.4-mini | $0.75 | $0.075 | $4.50 | — | $72.56 |
DeepSeek V4 ProDeepSeek deepseek-v4-proHalf price off-peak | $1.32 | $0.044 | $3.96 | 1M | $78.21 |
GPT-6.1 TerraOpenAI gpt-6.1-terra | $1.00 | $0.05 | $5.00 | — | $83.63 |
Claude Haiku 4.5Claude claude-haiku-4-5 | $1.00 | $0.10 | $5.00 | 200K | $84.75 |
Grok 4.5Grok grok-4.5 | $2.00 | $0.30 | $6.00 | 500K | $124 |
Gemini 4 HydrogenGeminiFree tier gemini-4-hydrogen | $1.50 | $0.075 | $7.50 | — | $125 |
Grok 4.7Grok grok-4.7 | $2.00 | $0.50 | $6.00 | 500K | $128 |
Grok 4.6Grok grok-4.6 | $2.00 | $0.50 | $6.00 | 500K | $128 |
GPT-4.1OpenAI gpt-4.1 | $2.00 | $0.50 | $8.00 | — | $152 |
o3OpenAI o3 | $2.00 | $0.50 | $8.00 | — | $152 |
Claude Sonnet 5.5Claude claude-sonnet-5-5 | $2.00 | $0.10 | $10 | 1M | $167 |
GPT-6.2 SolOpenAI gpt-6.2-sol | $2.00 | $0.10 | $10 | — | $167 |
GPT-6.1 SolOpenAI gpt-6.1-sol | $2.00 | $0.10 | $10 | — | $167 |
Gemini 4 CarbonGemini gemini-4-carbonFrom Dec 1: $4.00 in / $20 out | $2.00 | $0.10 | $10 | — | $167 |
Gemini 4 ArgonGemini gemini-4-argonFrom Dec 1: $4.00 in / $20 out | $2.00 | $0.10 | $10 | — | $167 |
Claude Sonnet 5Claude claude-sonnet-5 | $2.00 | $0.20 | $10 | 1M | $169 |
GPT-6 SolOpenAI gpt-6-sol | $2.00 | $0.20 | $10 | — | $169 |
GPT-5.6 TerraOpenAI gpt-5.6-terra | $2.00 | $0.20 | $12 | — | $194 |
Gemini 3.1 Pro (preview)Gemini gemini-3.1-pro-previewUp to 200K-token prompts; $4 / $18 above | $2.00 | $0.20 | $12 | — | $194 |
GPT-5.4OpenAI gpt-5.4 | $2.50 | $0.25 | $15 | — | $242 |
Gemini 4 NeonGemini gemini-4-neon | $3.00 | $0.15 | $15 | — | $251 |
Claude Sonnet 4.6Claude claude-sonnet-4-6 | $3.00 | $0.30 | $15 | 1M | $254 |
Claude Opus 5.5Claude claude-opus-5-5 | $4.00 | $0.20 | $20 | 1M | $335 |
GPT-5.6 SolOpenAI gpt-5.6-solPromotional price until November 30, 2026 | $4.00 | $0.40 | $20 | — | $339 |
Claude Opus 5Claude claude-opus-5 | $5.00 | $0.50 | $25 | 1M | $424 |
Claude Opus 4.8Claude claude-opus-4-8 | $5.00 | $0.50 | $25 | 1M | $424 |
GPT-5.5OpenAI gpt-5.5 | $5.00 | $0.50 | $30 | — | $484 |
Claude Fable 5.2Claude claude-fable-5-2 | $8.00 | $0.20 | $40 | 1M | $665 |
GPT-6.2 AstraOpenAI gpt-6.2-astra | $8.00 | $0.40 | $40 | — | $669 |
Claude Fable 5.1Claude claude-fable-5-1 | $10 | $0.25 | $50 | 1M | $831 |
GPT-6 AstraOpenAI gpt-6-astra | $10 | $1.00 | $50 | — | $848 |
Pricing by provider
Every model, notes and FAQFAQ
What is the cheapest LLM API?
By a 3:1 input-to-output mix, the cheapest model we list is GPT-5 nano from OpenAI, at $0.05 per million input tokens and $0.40 per million output tokens, $0.005 for cached input.
What is the cheapest model from each provider?
Anthropic: Claude Haiku 5.5 ($0.10 in / $0.50 out); OpenAI: GPT-5 nano ($0.05 in / $0.40 out); Google: Gemini 2.5 Flash-Lite ($0.10 in / $0.40 out); DeepSeek: DeepSeek V4.1 Flash ($0.30 in / $1.20 out); xAI: Grok 4.3 ($1.25 in / $2.50 out).
How is LLM API usage priced?
Per token, with separate prices for input (your prompt) and output (the model’s reply), quoted per million tokens. Output usually costs 4–8 times more than input. A token is roughly three quarters of an English word.
How does prompt caching lower the cost?
When the start of a prompt repeats across requests (a system prompt, documents, chat history), providers bill those tokens at a cached-input price that is often 90% or more below the normal input price. The calculator lets you set the share of input served from cache.
How often are these prices updated?
Each provider’s prices are copied from its official pricing page; the date checked is shown next to each provider. Announced price changes are applied on the day they take effect.
Standard-tier prices in US dollars as of November 30, 2026. Batch discounts, regional surcharges and long-context rates are listed on each provider’s page. Sources: Anthropic, OpenAI, Google, DeepSeek, xAI.
