Model price comparison
Maintained per-million token rates for major providers. Use this table for quick comparisons; verify against provider pages before budgeting.
For engineers choosing a model for a workload or a team. Cost math is the same everywhere: (tokens / 1,000,000) × the listed rate, with input and output billed separately — so your workload's output ratio matters as much as the sticker price.
Model prices verified 2026-07-02 against provider pricing pages.
| Provider | Model | In $/Mtok | Out $/Mtok | Ctx |
|---|---|---|---|---|
| Alibaba | qwen-flash | 0.05 | 0.4 | 1000000 |
| Alibaba | qwen3-7-max | 2.5 | 7.5 | 1000000 |
| Alibaba | qwen3-7-plus | 0.4 | 1.6 | 1000000 |
| Alibaba | qwen3-coder-plus | 1 | 5 | 1000000 |
| Amazon (Bedrock) | nova-lite | 0.06 | 0.24 | 300000 |
| Amazon (Bedrock) | nova-premier | 2.5 | 12.5 | 1000000 |
| Amazon (Bedrock) | nova-pro | 0.8 | 3.2 | 300000 |
| Anthropic | claude-fable-5 | 10 | 50 | 1000000 |
| Anthropic | claude-haiku-4-5 | 1 | 5 | 200000 |
| Anthropic | claude-opus-4-5 | 5 | 25 | 200000 |
| Anthropic | claude-opus-4-7 | 5 | 25 | 1000000 |
| Anthropic | claude-opus-4-8 | 5 | 25 | 1000000 |
| Anthropic | claude-sonnet-4-5 | 3 | 15 | 200000 |
| Anthropic | claude-sonnet-4-6 | 3 | 15 | 1000000 |
| Anthropic | claude-sonnet-5 | 2 | 10 | 1000000 |
| Cohere | command-a | 2.5 | 10 | 256000 |
| Cohere | command-r-08-2024 | 0.15 | 0.6 | 128000 |
| DeepSeek | deepseek-v4-flash | 0.14 | 0.28 | 1000000 |
| DeepSeek | deepseek-v4-pro | 0.435 | 0.87 | 1000000 |
| gemini-2-5-flash | 0.3 | 2.5 | — | |
| gemini-2-5-flash-lite | 0.1 | 0.4 | — | |
| gemini-2-5-pro | 1.25 | 10 | — | |
| gemini-3-1-flash-lite | 0.25 | 1.5 | — | |
| gemini-3-1-pro-preview | 2 | 12 | — | |
| gemini-3-5-flash | 1.5 | 9 | — | |
| Meta (via OpenRouter) | llama-4-maverick | 0.15 | 0.6 | 1048576 |
| Meta (via OpenRouter) | llama-4-scout | 0.1 | 0.3 | 10000000 |
| Meta (via Together AI) | llama-3-3-70b | 1.04 | 1.04 | — |
| Mistral | codestral | 0.3 | 0.9 | — |
| Mistral | devstral-2 | 0.4 | 2 | — |
| Mistral | mistral-large-3 | 0.5 | 1.5 | 262144 |
| Mistral | mistral-medium-3-5 | 1.5 | 7.5 | 262144 |
| Mistral | mistral-small-4 | 0.15 | 0.6 | — |
| Moonshot AI | kimi-k2-5 | 0.6 | 3 | 262144 |
| Moonshot AI | kimi-k2-7-code | 0.95 | 4 | 262144 |
| OpenAI | gpt-5-3-codex | 1.75 | 14 | — |
| OpenAI | gpt-5-4 | 2.5 | 15 | — |
| OpenAI | gpt-5-4-mini | 0.75 | 4.5 | — |
| OpenAI | gpt-5-4-nano | 0.2 | 1.25 | — |
| OpenAI | gpt-5-5 | 5 | 30 | — |
| OpenAI | gpt-5-5-pro | 30 | 180 | — |
| Zhipu (Z.ai) | glm-4-7 | 0.6 | 2.2 | — |
| Zhipu (Z.ai) | glm-5-2 | 1.4 | 4.4 | 1048576 |
| xAI | grok-4-3 | 1.25 | 2.5 | 1000000 |
| xAI | grok-build-0-1 | 1 | 2 | 256000 |
How to read this table
In/Out are dollars per million tokens; Ctx is the context window. Worked example: at $3/M input, 1M input tokens = $3.00. Output rates are typically several times input rates, so a chatty model on a verbose workload can cost more than a pricier model that answers tersely. Rates in this table are maintained and revalidated, but providers change pricing — verify before committing a budget.
FAQ
- Why are input and output priced separately?
- Providers bill the two lanes at different rates, and workloads skew differently: agentic coding reads far more than it writes, while generation workloads are output-heavy. Comparing on input price alone routinely picks the wrong model.
- What about cache pricing?
- Not shown here. Providers that discount cache reads (Anthropic prices them at roughly 10% of the input rate per their pricing page) can change the effective cost dramatically for stable-prefix workloads — use the token calculator, which includes cache lanes where we have rates.
- Which model is cheapest for me?
- Depends on your token mix. Take your real input and output counts (from a usage dashboard or local logs) and run them through the token calculator against each candidate — the ranking often flips between read-heavy and write-heavy workloads.
- What are the limitations?
- The table shows list rates only: no batch-API discounts, volume tiers, long-context surcharges, or subscription plans. Treat it as a comparison aid, and verify against your provider invoice.
- When should I use this vs the full audit?
- Use this to pick a model. The full stack audit addresses the other half of the bill — how many tokens your setup sends per request — which usually moves cost more than switching models does.
For your full setup, run the free stack audit — or see the 100-configs report.
Pricing sources
Every rate is verified against the provider's own pricing page (or a pass-through aggregator where noted in the catalog). Verified 2026-07-02.
- https://platform.claude.com/docs/en/about-claude/pricing.md
- https://developers.openai.com/api/docs/pricing
- https://ai.google.dev/gemini-api/docs/pricing
- https://docs.x.ai/docs/models
- https://api-docs.deepseek.com/quick_start/pricing
- https://mistral.ai/pricing/api
- https://www.together.ai/pricing
- https://platform.kimi.ai/docs/pricing/chat-k27-code.md
- https://docs.z.ai/guides/overview/pricing
- https://www.alibabacloud.com/help/en/model-studio/model-pricing
- https://cohere.com/pricing
- https://openrouter.ai/api/v1/models