AI API pricing per million tokens
This free table helps developers compare AI API prices in USD per million text tokens. We last checked prices on .
Estimate your monthly cost with the AI cost calculator.
Rates by vendor and model
Download CSVScroll across to see all columns.
| Vendor | Model | Request or billing period | Input | Cache read | Output | Cache writes | Source | Checked |
|---|---|---|---|---|---|---|---|---|
| Anthropic | Claude Sonnet 4.6Estimate | Standard | 3 | 0.3 | 15 | 5m 3.75, 1h 6 | Official source | |
| Anthropic | Claude Haiku 4.5Estimate | Standard | 1 | 0.1 | 5 | 5m 1.25, 1h 2 | Official source | |
| Anthropic | Claude Fable 5.2Estimate | Standard | 8 | 0.2 | 40 | 5m 10, 1h 16 | Official source | |
| Anthropic | Claude Opus 5.5Estimate | Standard | 4 | 0.2 | 20 | 5m 5, 1h 8 | Official source | |
| Anthropic | Claude Opus 5Estimate | Standard | 5 | 0.5 | 25 | 5m 6.25, 1h 10 | Official source | |
| Anthropic | Claude Sonnet 5.5Estimate | Standard | 2 | 0.1 | 10 | 5m 2.5, 1h 4 | Official source | |
| Anthropic | Claude Sonnet 5Estimate | Standard | 2 | 0.2 | 10 | 5m 2.5, 1h 4 | Official source | |
| Anthropic | Claude Haiku 5.5Estimate | Standard | 0.1 | 0.01 | 0.5 | 5m 0.125, 1h 0.2 | Official source | |
| Anthropic | Claude Haiku 5.5Estimate | Whole request, over 100,000 prompt tokens | 0.5 | 0.05 | 2.5 | 5m 0.625, 1h 1 | Official source | |
| OpenAI | GPT-5.4 miniEstimate | Standard | 0.75 | 0.075 | 4.5 | n/a | Official source | |
| OpenAI | GPT-5.4 nanoEstimate | Standard | 0.2 | 0.02 | 1.25 | n/a | Official source | |
| OpenAI | gpt-6.2-astraEstimate | Standard | 8 | 0.4 | 40 | 30m 10, 12h 20 | Official source | |
| OpenAI | gpt-6.2-astraEstimate | Whole request, over 272,000 prompt tokens | 16 | 0.8 | 60 | 30m 20, 12h 40 | Official source | |
| OpenAI | gpt-6.2-solEstimate | Standard | 2 | 0.1 | 10 | 30m 2.5, 12h 5 | Official source | |
| OpenAI | gpt-6.2-solEstimate | Whole request, over 272,000 prompt tokens | 4 | 0.2 | 15 | 30m 5, 12h 10 | Official source | |
| OpenAI | gpt-6-astraEstimate | Standard | 10 | 1 | 50 | 30m 12.5, 12h 25 | Official source | |
| OpenAI | gpt-6-astraEstimate | Whole request, over 272,000 prompt tokens | 20 | 2 | 75 | 30m 25, 12h 50 | Official source | |
| OpenAI | gpt-6.1-solEstimate | Standard | 2 | 0.1 | 10 | 30m 2.5, 12h 5 | Official source | |
| OpenAI | gpt-6.1-solEstimate | Whole request, over 272,000 prompt tokens | 4 | 0.2 | 15 | 30m 5, 12h 10 | Official source | |
| OpenAI | gpt-6.1-terraEstimate | Standard | 1 | 0.05 | 5 | 30m 1.25, 12h 2.5 | Official source | |
| OpenAI | gpt-6.1-terraEstimate | Whole request, over 272,000 prompt tokens | 2 | 0.1 | 7.5 | 30m 2.5, 12h 5 | Official source | |
| OpenAI | gpt-6-lunaEstimate | Standard | 0.1 | 0.01 | 0.5 | 30m 0.125, 12h 0.25 | Official source | |
| OpenAI | gpt-6-lunaEstimate | Whole request, over 272,000 prompt tokens | 0.2 | 0.02 | 0.75 | 30m 0.25, 12h 0.5 | Official source | |
| OpenAI | gpt-6-solEstimate | Standard | 2 | 0.2 | 10 | 30m 2.5, 12h 5 | Official source | |
| OpenAI | gpt-6-solEstimate | Whole request, over 272,000 prompt tokens | 4 | 0.4 | 15 | 30m 5, 12h 10 | Official source | |
| OpenAI | gpt-5.6-solEstimate | 2026-11-19 through 2026-11-30 | 4 | 0.4 | 20 | 30m 5, 12h 10 | Official source | |
| OpenAI | gpt-5.6-solEstimate | Whole request, over 272,000 prompt tokens, 2026-11-19 through 2026-11-30 | 8 | 0.8 | 30 | 30m 10, 12h 20 | Official source | |
| OpenAI | gpt-5.6-solEstimate | 2026-12-01 onward | 5 | 0.5 | 30 | 30m 6.25, 12h 12.5 | Official source | |
| OpenAI | gpt-5.6-solEstimate | Whole request, over 272,000 prompt tokens, 2026-12-01 onward | 10 | 1 | 45 | 30m 12.5, 12h 25 | Official source | |
| OpenAI | gpt-5.6-terraEstimate | Standard | 2 | 0.2 | 12 | 30m 2.5, 12h 5 | Official source | |
| OpenAI | gpt-5.6-terraEstimate | Whole request, over 272,000 prompt tokens | 4 | 0.4 | 18 | 30m 5, 12h 10 | Official source | |
| OpenAI | gpt-5.6-lunaEstimate | Standard | 0.2 | 0.02 | 1.2 | 30m 0.25, 12h 0.5 | Official source | |
| OpenAI | gpt-5.6-lunaEstimate | Whole request, over 272,000 prompt tokens | 0.4 | 0.04 | 1.8 | 30m 0.5, 12h 1 | Official source | |
| OpenAI | gpt-5.5Estimate | Standard | 5 | 0.5 | 30 | n/a | Official source | |
| OpenAI | gpt-5.5Estimate | Whole request, over 272,000 prompt tokens | 10 | 1 | 45 | n/a | Official source | |
| OpenAI | gpt-5.4Estimate | Standard | 2.5 | 0.25 | 15 | n/a | Official source | |
| OpenAI | gpt-5.4Estimate | Whole request, over 272,000 prompt tokens | 5 | 0.5 | 22.5 | n/a | Official source | |
| xAI | grok-4.7Estimate | Standard | 2 | 0.5 | 6 | not published | Official source | |
| xAI | grok-4.7Estimate | Whole request, at least 200,000 prompt tokens | 4 | 1 | 12 | not published | Official source | |
| xAI | grok-4.6Estimate | Standard | 2 | 0.5 | 6 | not published | Official source | |
| xAI | grok-4.6Estimate | Whole request, at least 200,000 prompt tokens | 4 | 1 | 12 | not published | Official source | |
| xAI | grok-4.5Estimate | Standard | 2 | 0.3 | 6 | not published | Official source | |
| xAI | grok-4.5Estimate | Whole request, at least 200,000 prompt tokens | 4 | 0.6 | 12 | not published | Official source | |
| xAI | grok-4.3Estimate | Standard | 1.25 | 0.2 | 2.5 | not published | Official source | |
| xAI | grok-4.3Estimate | Whole request, at least 200,000 prompt tokens | 2.5 | 0.4 | 5 | not published | Official source | |
| xAI | grok-4.20-0309-reasoningEstimate | Standard | 1.25 | 0.2 | 2.5 | not published | Official source | |
| xAI | grok-4.20-0309-reasoningEstimate | Whole request, at least 200,000 prompt tokens | 2.5 | 0.4 | 5 | not published | Official source | |
| xAI | grok-4.20-0309-non-reasoningEstimate | Standard | 1.25 | 0.2 | 2.5 | not published | Official source | |
| xAI | grok-4.20-0309-non-reasoningEstimate | Whole request, at least 200,000 prompt tokens | 2.5 | 0.4 | 5 | not published | Official source | |
| xAI | grok-4.20-multi-agent-0309Estimate | Standard | 1.25 | 0.2 | 2.5 | not published | Official source | |
| xAI | grok-4.20-multi-agent-0309Estimate | Whole request, at least 200,000 prompt tokens | 2.5 | 0.4 | 5 | not published | Official source | |
| xAI | grok-build-0.1 (retired)Estimate | Standard | 1 | 0.2 | 2 | not published | Official source | |
| xAI | grok-build-0.1 (retired)Estimate | Whole request, at least 200,000 prompt tokens | 2 | 0.4 | 4 | not published | Official source | |
| gemini-4-carbonEstimate | 2026-11-19 through 2026-11-30 | 2 | 0.1 | 10 | n/a | Official source | ||
| gemini-4-carbonEstimate | 2026-12-01 onward | 4 | 0.2 | 20 | n/a | Official source | ||
| gemini-4-argonEstimate | 2026-11-19 through 2026-11-30 | 2 | 0.1 | 10 | n/a | Official source | ||
| gemini-4-argonEstimate | 2026-12-01 onward | 4 | 0.2 | 20 | n/a | Official source | ||
| gemini-4-neonEstimate | Standard | 3 | 0.15 | 15 | n/a | Official source | ||
| gemini-4-hydrogenEstimate | Standard | 1.5 | 0.075 | 7.5 | n/a | Official source | ||
| gemini-3.8-flashEstimate | 2026-11-19 through 2026-12-31 | 0.75 | 0.075 | 3.75 | n/a | Official source | ||
| gemini-3.8-flashEstimate | 2027-01-01 onward | 1.5 | 0.15 | 7.5 | n/a | Official source | ||
| gemini-3.6-flashEstimate | 2026-11-19 through 2026-12-31 | 0.75 | 0.075 | 3.75 | n/a | Official source | ||
| gemini-3.6-flashEstimate | 2027-01-01 onward | 1.5 | 0.15 | 7.5 | n/a | Official source | ||
| gemini-3.5-flash-liteEstimate | Standard | 0.3 | 0.03 | 2.5 | n/a | Official source | ||
| gemini-3.1-pro-previewEstimate | Standard | 2 | 0.2 | 12 | n/a | Official source | ||
| gemini-3.1-pro-previewEstimate | Whole request, over 200,000 prompt tokens | 4 | 0.4 | 18 | n/a | Official source | ||
| DeepSeek | deepseek-flashEstimate | Peak | 0.3 | 0.006 | 1.2 | n/a | Official source | |
| DeepSeek | deepseek-flashEstimate | Off-peak | 0.15 | 0.003 | 0.6 | n/a | Official source | |
| DeepSeek | deepseek-v4-proEstimate | Peak | 1.32 | 0.044 | 3.96 | n/a | Official source | |
| DeepSeek | deepseek-v4-proEstimate | Off-peak | 0.66 | 0.022 | 1.98 | n/a | Official source | |
| Mistral | Mistral Large 4Estimate | Standard | 0.7 | 0.07 | 2.1 | n/a | Official source | |
| Mistral | Mistral Small 4Estimate | Standard | 0.15 | 0.015 | 0.6 | n/a | Official source | |
| Perplexity | perplexity/sonarEstimate | Standard | 0.25 | 0.0625 | 2.5 | n/a | Official source | |
| Perplexity | perplexity/nemotron-3.5-super-120b-a12bEstimate | Standard | 0.2 | 0.04 | 0.5 | n/a | Official source | |
| Perplexity | perplexity/glm-5.3Estimate | Standard | 1.4 | 0.26 | 4.4 | n/a | Official source | |
| Perplexity | perplexity/glm-5.3-flashEstimate | Standard | 0.15 | 0.03 | 0.5 | n/a | Official source | |
| Perplexity | perplexity/deepseek-v4-pro-0813Estimate | Standard | 1.32 | 0.044 | 3.96 | n/a | Official source | |
| Perplexity | perplexity/kimi-k3Estimate | Standard | 3 | 0.3 | 15 | n/a | Official source | |
| Meta | Muse Spark 1.3 / 1.2 (Standard) · muse-spark-1.3Estimate | Standard | 1.25 | 0.15 | 4.25 | n/a | Checked Nov 28, 2026 | |
| Meta | Muse Spark 1.3 / 1.2 (Contributor) · muse-spark-1.3-contributorEstimate | Standard | 0.1 | 0.002 | 0.2 | n/a | Checked Nov 28, 2026 | |
| Meta | Muse Wonder (Standard) · muse-wonder-1.0Estimate | Standard | 4 | 0.2 | 20 | n/a | Checked Nov 28, 2026 | |
| Vercel | v0 MiniEstimate | Standard | 0.1 | 0.01 | 0.5 | cache write 0.125 | Official source | |
| Vercel | v0 MiniEstimate | Whole request, over 272,000 prompt tokens | 0.2 | 0.02 | 0.75 | cache write 0.25 | Official source | |
| Vercel | v0 ProEstimate | Standard | 2 | 0.1 | 10 | cache write 2.5 | Official source | |
| Vercel | v0 MaxEstimate | Standard | 4 | 0.2 | 20 | cache write 5 | Official source | |
| Vercel | v0 Max FastEstimate | Standard | 8 | 0.4 | 40 | cache write 10 | Official source |
How it works
- Choose a vendor to see its models and billing periods.
- Select an input, output or cache column heading to sort the rates.
- Use Download CSV to save the full table, including sources and check dates.
FAQ
- Where do the API prices come from, and when were they checked?
The rates come from the vendors’ official pricing pages. The latest check in the pricing data was 2026-12-01. Each row links to its source and shows when that model was checked.
- Why does one model have several price rows?
A model can have separate rows for dated billing periods, long-context requests or off-peak prices. The request or billing period column tells you when each rate applies.
- What does “not published” mean in a price cell?
The pricing data has no published figure for that cell. If a vendor lists a rate of zero, the table shows 0.
How to read these prices
A session can contain several requests. Apply a long-context rate to the whole request only when that individual prompt meets the threshold in its row.
Cache writes use the vendor’s retention period. v0 publishes a single write rate. Gemini bills explicit cache storage separately by the token-hour. Sorting cache writes uses the lowest published write rate in each row.
DeepSeek’s peak hours are 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays, excluding Chinese public holidays.
The listed rates cover text tokens. Taxes, search and other tool calls are extra. Batch, flex and priority rates appear only when a row names that tier.
Dated rows show when each price applies. Estimate opens the selected model in the calculator at the rate in effect today.