Model prices
Every rate used by the inference cost calculator, in USD per 1 million tokens on the standard API tier. Verified November 10, 2026 against the provider pricing pages linked below.
OpenAI
pricing source ↗| Model | Tier | Input / 1M | Cached / 1M | Output / 1M | Context | Best for |
|---|---|---|---|---|---|---|
| GPT-6 Astra | flagship | $10.00 | $1.00 | $50.00 | 1.05M | OpenAI flagship for the hardest agents, coding and researchPrompts over 272K tokens are billed at $20/$75. |
| GPT-6.1 Sol | workhorse | $2.00 | $0.10 | $10.00 | 1.05M | Complex coding and agentic workflows at a mid-tier pricePrompts over 272K tokens are billed at $4/$15. |
| GPT-6.1 Terra | workhorse | $1.00 | $0.050 | $5.00 | 1.05M | Everyday chat, RAG and tool use at half the Sol pricePrompts over 272K tokens are billed at $2/$7.50. |
| GPT-5.4 mini | workhorse | $0.75 | $0.075 | $4.50 | 400K | High-volume chat, RAG, extraction, support bots |
| GPT-6 Luna | budget | $0.10 | $0.010 | $0.50 | 1.05M | Cheapest OpenAI model for focused, high-volume tasksPrompts over 272K tokens are billed at $0.20/$0.75. |
Anthropic
pricing source ↗| Model | Tier | Input / 1M | Cached / 1M | Output / 1M | Context | Best for |
|---|---|---|---|---|---|---|
| Claude Fable 5.2 | flagship | $8.00 | $0.20 | $40.00 | 1M | Demanding reasoning and long-horizon agentic workCache reads cost 2.5% of the input price. |
| Claude Opus 5.5 | flagship | $4.00 | $0.20 | $20.00 | 1M | Long-running agentic coding and knowledge workCache reads cost 5% of the input price. |
| Claude Sonnet 5.5 | workhorse | $2.00 | $0.10 | $10.00 | 1M | Best speed/intelligence balance; daily-driver agentsCache reads cost 5% of the input price. |
| Claude Haiku 5.5 | budget | $0.10 | $0.010 | $0.50 | 1M | Classification, extraction and routing at high volumePrompts over 100K tokens are billed at $0.50/$2.50. |
| Model | Tier | Input / 1M | Cached / 1M | Output / 1M | Context | Best for |
|---|---|---|---|---|---|---|
| Gemini 4 Carbon | flagship | $2.00 | $0.10 | $10.00 | 1M | Google's most capable model, for the hardest coding and researchPrice through Nov 30, 2026. From Dec 1 it costs $4/$20. |
| Gemini 4 Argon | flagship | $2.00 | $0.10 | $10.00 | 1M | Most software engineering and agent work, faster than CarbonPrice through Nov 30, 2026. From Dec 1 it costs $4/$20. |
| Gemini 4 Hydrogen | workhorse | $1.50 | $0.075 | $7.50 | 1M | Everyday coding and agents, the upgrade from 3.8 FlashReleased Nov 12, 2026. Same price across the 1M context window. |
| Gemini 3.8 Flash | workhorse | $0.75 | $0.075 | $3.75 | 1M | Agents and coding at Flash pricesPrice through Dec 31, 2026. From Jan 1, 2027 it costs $1.50/$7.50. |
| Gemini 3.5 Flash-Lite | budget | $0.30 | $0.030 | $2.50 | 1M | Bulk simple tasks with a newer model |
| Gemini 3.1 Flash-Lite | budget | $0.25 | $0.025 | $1.50 | 1M | Bulk simple tasks, translation, extraction |
| Model | Tier | Input / 1M | Cached / 1M | Output / 1M | Context | Best for |
|---|---|---|---|---|---|---|
| Grok 4.7 | workhorse | $2.00 | $0.50 | $6.00 | 500K | Latest Grok for chat and tool usePrompts of 200K tokens or more are billed at $4/$12. |
| Grok 4.3 | workhorse | $1.25 | $0.20 | $2.50 | 1M | Aggressively priced frontier-class chat and tool usePrompts of 200K tokens or more are billed at $2.50/$5. |
Mistral
pricing source ↗| Model | Tier | Input / 1M | Cached / 1M | Output / 1M | Context | Best for |
|---|---|---|---|---|---|---|
| Mistral Large 4open | workhorse | $0.70 | $0.070 | $2.10 | 1M | Open-weight European flagship, strong at coding |
| Mistral Small 4open | budget | $0.15 | $0.015 | $0.60 | 256K | Cheap general tasks; open-weight |
| Ministral 3 8Bopen | budget | $0.15 | $0.015 | $0.15 | 256K | Edge and embedded deployments |
OpenRouter
pricing source ↗Aggregator. Listed price is the default routing; actual price varies by underlying provider.
| Model | Tier | Input / 1M | Cached / 1M | Output / 1M | Context | Best for |
|---|---|---|---|---|---|---|
| Kimi K3.1 Proopen | flagship | $2.00 | $0.20 | $10.00 | 1M | Moonshot's most capable open-weight model for agents |
| Kimi K2.6open | workhorse | $0.65 | $0.15 | $3.41 | 262K | Strong open-weight agentic and writing model |
| DeepSeek V4 Proopen | workhorse | $0.955 | $0.080 | $1.911 | 1M | Frontier-class reasoning and coding at budget rates |
| DeepSeek V4 Flashopen | budget | $0.091 | $0.018 | $0.182 | 1M | The open-weight price leader for chat and agents |
| Qwen3.8 Flash | budget | $0.15 | $0.016 | $0.47 | 1M | Cheap long-context chat and extraction |
Workers AI
pricing source ↗Cloudflare edge inference. Billed in neurons ($0.011 per 1k); per-token equivalents shown. 10k neurons/day free.
| Model | Tier | Input / 1M | Cached / 1M | Output / 1M | Context | Best for |
|---|---|---|---|---|---|---|
| GPT-OSS 120Bopen | workhorse | $0.35 | — | $0.75 | 128K | OpenAI's open-weight model at the edge, no cold starts |
| Kimi K2.6open | workhorse | $0.95 | $0.16 | $4.00 | 262K | Open-weight agentic model with cache pricing on the edgeNeeds Workers Paid or AI Gateway credits; the free daily neurons don't cover it. |
| Llama 3.3 70Bopen | workhorse | $0.293 | — | $2.253 | 131K | Capable open-weight default on Cloudflare's edge |
| Llama 3.1 8B (fast)open | budget | $0.045 | — | $0.384 | 131K | Very cheap edge inference for simple tasks |
| Llama 3.2 1Bopen | budget | $0.027 | — | $0.201 | 128K | The cheapest credible model for routing/tagging |
Free books, courses, and software
Get my programming books, course editions, and complete software.
Get the download library →