AI model API prices and limits for coding
31 current API models from Anthropic, OpenAI, Google, xAI, DeepSeek, with the prices and limits each provider lists on its own pricing page. Read November 5, 2026.
Try CodeGPT free
Prices per million tokens
Sorted by the cost of a typical coding-agent request: 100K input tokens (your code and the conversation) and 8K output tokens, at standard prices without caching or batch discounts. Agents that cache context pay less for repeated input.
| Model | Provider | Input | Output | Context | Max output | Typical request |
|---|---|---|---|---|---|---|
| Gemini 2.5 Flash-Lite | $0.1 | $0.4 | — | — | $0.013 | |
| gpt-6-luna | OpenAI | $0.1 | $0.5 | — | — | $0.014 |
| Claude Haiku 5.5 | Anthropic | $0.1 | $0.5 | — | — | $0.014 |
| Gemini 3.1 Flash-Lite | $0.25 | $1.5 | — | — | $0.037 | |
| deepseek-flash | DeepSeek | $0.3 | $1.2 | 1M | 384K | $0.040 |
| Gemini 3.5 Flash-Lite | $0.3 | $2.5 | — | — | $0.050 | |
| Gemini 3.6 Flash | $0.75 | $3.75 | — | — | $0.105 | |
| Gemini 3.8 Flash | $0.75 | $3.75 | — | — | $0.105 | |
| Claude Haiku 4.5 | Anthropic | $1 | $5 | — | — | $0.140 |
| gpt-6.1-terra | OpenAI | $1 | $5 | — | — | $0.140 |
| deepseek-v4-pro | DeepSeek | $1.32 | $3.96 | 1M | 384K | $0.164 |
| grok-4.7 | xAI | $2 | $6 | 500K | — | $0.248 |
| Claude Sonnet 5.5 | Anthropic | $2 | $10 | 1M | — | $0.280 |
| Gemini 4 Argon | $2 | $10 | — | — | $0.280 | |
| Claude Sonnet 5 | Anthropic | $2 | $10 | 1M | — | $0.280 |
| gpt-6.1-sol | OpenAI | $2 | $10 | — | — | $0.280 |
| gpt-5.3-codex | OpenAI | $1.75 | $14 | — | — | $0.287 |
| Gemini 3.1 Pro Preview | $2 | $12 | — | — | $0.296 | |
| Claude Sonnet 4.5 | Anthropic | $3 | $15 | — | — | $0.420 |
| Claude Sonnet 4.6 | Anthropic | $3 | $15 | 1M | — | $0.420 |
| Claude Opus 5.5 | Anthropic | $4 | $20 | 1M | — | $0.560 |
| Claude Opus 4.5 | Anthropic | $5 | $25 | — | — | $0.700 |
| Claude Opus 4.6 | Anthropic | $5 | $25 | 1M | — | $0.700 |
| Claude Opus 4.7 | Anthropic | $5 | $25 | 1M | — | $0.700 |
| Claude Opus 4.8 | Anthropic | $5 | $25 | 1M | — | $0.700 |
| Claude Opus 5 | Anthropic | $5 | $25 | 1M | — | $0.700 |
| gpt-6-astra | OpenAI | $10 | $50 | — | — | $1.40 |
| Claude Fable 5.1 | Anthropic | $10 | $50 | — | — | $1.40 |
| Claude Mythos 5 | Anthropic | $10 | $50 | — | — | $1.40 |
| Claude Fable 5 | Anthropic | $10 | $50 | — | — | $1.40 |
| Claude Mythos 5.1 | Anthropic | $10 | $50 | — | — | $1.40 |
“—”: the pricing page doesn't state it. 9 models the providers mark as legacy or deprecated are left out, and 10 specialized ones (life sciences, security, legal, robotics, chat aliases, prices given only as examples).
Notes from the pricing pages
- Gemini 2.5 Flash-Lite: Audio input is $0.30.
- Claude Haiku 5.5: Lowest tier shown (prompts up to 100,000 tokens); prompts over 100,000 tokens cost $0.50 input / $2.50 output per MTok.
- Gemini 3.1 Flash-Lite: Audio input is $0.50.
- deepseek-flash: Prices shown are peak (cache miss input); off-peak is half ($0.15 input, $0.6 output), cache-hit input is $0.006 peak / $0.003 off-peak.
- Gemini 3.6 Flash: Described as the previous generation Flash model; price rises to $1.50 / $7.50 on January 1, 2027.
- Gemini 3.8 Flash: Price rises to $1.50 input / $7.50 output on January 1, 2027.
- deepseek-v4-pro: Prices shown are peak (cache miss input); off-peak is half ($0.66 input, $1.98 output), cache-hit input is $0.044 peak / $0.022 off-peak.
- grok-4.7: Reasoning effort is configurable.
- Gemini 4 Argon: Price rises to $4.00 input / $20.00 output on December 1, 2026; not available on Free tier.
- gpt-6.1-sol: page mentions promotional pricing for GPT-5.6 Sol until November 30, 2026.
- gpt-5.3-codex: Fast tier is $3.50 input / $28.00 output.
- Gemini 3.1 Pro Preview: Lowest tier shown (prompts <= 200k tokens); above 200k it is $4.00 input / $18.00 output. Preview model; also covers gemini-3.1-pro-preview-customtools.
- Claude Opus 5.5: Fast mode is $8 input / $40 output per MTok.
- Claude Opus 4.7: Uses a newer tokenizer producing about 30% more tokens for the same text.
- Claude Opus 4.8: Fast mode (research preview) is $10 input / $50 output per MTok.
- Claude Opus 5: Fast mode (research preview) is $10 input / $50 output per MTok.
- gpt-6-astra: page also lists Batch, Fast and Ultrafast variants, and short/long context selector.
How this was made
We read each provider's official pricing page on November 5, 2026. An AI model listed the models and numbers on each page; we kept a number only when the page shows it in the words quoted for it, and a model only when both prices passed that check. Prices change often — check the provider's page before you rely on a number. Sources: Anthropic, OpenAI, Google, xAI, DeepSeek, Mistral.