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 CSV
86 ratesHow to read these prices

Scroll across to see all columns.

VendorModelRequest or billing periodInputCache readOutputCache writesSourceChecked
AnthropicClaude Sonnet 4.6EstimateStandard30.3155m 3.75, 1h 6Official source
AnthropicClaude Haiku 4.5EstimateStandard10.155m 1.25, 1h 2Official source
AnthropicClaude Fable 5.2EstimateStandard80.2405m 10, 1h 16Official source
AnthropicClaude Opus 5.5EstimateStandard40.2205m 5, 1h 8Official source
AnthropicClaude Opus 5EstimateStandard50.5255m 6.25, 1h 10Official source
AnthropicClaude Sonnet 5.5EstimateStandard20.1105m 2.5, 1h 4Official source
AnthropicClaude Sonnet 5EstimateStandard20.2105m 2.5, 1h 4Official source
AnthropicClaude Haiku 5.5EstimateStandard0.10.010.55m 0.125, 1h 0.2Official source
AnthropicClaude Haiku 5.5EstimateWhole request, over 100,000 prompt tokens0.50.052.55m 0.625, 1h 1Official source
OpenAIGPT-5.4 miniEstimateStandard0.750.0754.5n/aOfficial source
OpenAIGPT-5.4 nanoEstimateStandard0.20.021.25n/aOfficial source
OpenAIgpt-6.2-astraEstimateStandard80.44030m 10, 12h 20Official source
OpenAIgpt-6.2-astraEstimateWhole request, over 272,000 prompt tokens160.86030m 20, 12h 40Official source
OpenAIgpt-6.2-solEstimateStandard20.11030m 2.5, 12h 5Official source
OpenAIgpt-6.2-solEstimateWhole request, over 272,000 prompt tokens40.21530m 5, 12h 10Official source
OpenAIgpt-6-astraEstimateStandard1015030m 12.5, 12h 25Official source
OpenAIgpt-6-astraEstimateWhole request, over 272,000 prompt tokens2027530m 25, 12h 50Official source
OpenAIgpt-6.1-solEstimateStandard20.11030m 2.5, 12h 5Official source
OpenAIgpt-6.1-solEstimateWhole request, over 272,000 prompt tokens40.21530m 5, 12h 10Official source
OpenAIgpt-6.1-terraEstimateStandard10.05530m 1.25, 12h 2.5Official source
OpenAIgpt-6.1-terraEstimateWhole request, over 272,000 prompt tokens20.17.530m 2.5, 12h 5Official source
OpenAIgpt-6-lunaEstimateStandard0.10.010.530m 0.125, 12h 0.25Official source
OpenAIgpt-6-lunaEstimateWhole request, over 272,000 prompt tokens0.20.020.7530m 0.25, 12h 0.5Official source
OpenAIgpt-6-solEstimateStandard20.21030m 2.5, 12h 5Official source
OpenAIgpt-6-solEstimateWhole request, over 272,000 prompt tokens40.41530m 5, 12h 10Official source
OpenAIgpt-5.6-solEstimate2026-11-19 through 2026-11-3040.42030m 5, 12h 10Official source
OpenAIgpt-5.6-solEstimateWhole request, over 272,000 prompt tokens, 2026-11-19 through 2026-11-3080.83030m 10, 12h 20Official source
OpenAIgpt-5.6-solEstimate2026-12-01 onward50.53030m 6.25, 12h 12.5Official source
OpenAIgpt-5.6-solEstimateWhole request, over 272,000 prompt tokens, 2026-12-01 onward1014530m 12.5, 12h 25Official source
OpenAIgpt-5.6-terraEstimateStandard20.21230m 2.5, 12h 5Official source
OpenAIgpt-5.6-terraEstimateWhole request, over 272,000 prompt tokens40.41830m 5, 12h 10Official source
OpenAIgpt-5.6-lunaEstimateStandard0.20.021.230m 0.25, 12h 0.5Official source
OpenAIgpt-5.6-lunaEstimateWhole request, over 272,000 prompt tokens0.40.041.830m 0.5, 12h 1Official source
OpenAIgpt-5.5EstimateStandard50.530n/aOfficial source
OpenAIgpt-5.5EstimateWhole request, over 272,000 prompt tokens10145n/aOfficial source
OpenAIgpt-5.4EstimateStandard2.50.2515n/aOfficial source
OpenAIgpt-5.4EstimateWhole request, over 272,000 prompt tokens50.522.5n/aOfficial source
xAIgrok-4.7EstimateStandard20.56not publishedOfficial source
xAIgrok-4.7EstimateWhole request, at least 200,000 prompt tokens4112not publishedOfficial source
xAIgrok-4.6EstimateStandard20.56not publishedOfficial source
xAIgrok-4.6EstimateWhole request, at least 200,000 prompt tokens4112not publishedOfficial source
xAIgrok-4.5EstimateStandard20.36not publishedOfficial source
xAIgrok-4.5EstimateWhole request, at least 200,000 prompt tokens40.612not publishedOfficial source
xAIgrok-4.3EstimateStandard1.250.22.5not publishedOfficial source
xAIgrok-4.3EstimateWhole request, at least 200,000 prompt tokens2.50.45not publishedOfficial source
xAIgrok-4.20-0309-reasoningEstimateStandard1.250.22.5not publishedOfficial source
xAIgrok-4.20-0309-reasoningEstimateWhole request, at least 200,000 prompt tokens2.50.45not publishedOfficial source
xAIgrok-4.20-0309-non-reasoningEstimateStandard1.250.22.5not publishedOfficial source
xAIgrok-4.20-0309-non-reasoningEstimateWhole request, at least 200,000 prompt tokens2.50.45not publishedOfficial source
xAIgrok-4.20-multi-agent-0309EstimateStandard1.250.22.5not publishedOfficial source
xAIgrok-4.20-multi-agent-0309EstimateWhole request, at least 200,000 prompt tokens2.50.45not publishedOfficial source
xAIgrok-build-0.1 (retired)EstimateStandard10.22not publishedOfficial source
xAIgrok-build-0.1 (retired)EstimateWhole request, at least 200,000 prompt tokens20.44not publishedOfficial source
Googlegemini-4-carbonEstimate2026-11-19 through 2026-11-3020.110n/aOfficial source
Googlegemini-4-carbonEstimate2026-12-01 onward40.220n/aOfficial source
Googlegemini-4-argonEstimate2026-11-19 through 2026-11-3020.110n/aOfficial source
Googlegemini-4-argonEstimate2026-12-01 onward40.220n/aOfficial source
Googlegemini-4-neonEstimateStandard30.1515n/aOfficial source
Googlegemini-4-hydrogenEstimateStandard1.50.0757.5n/aOfficial source
Googlegemini-3.8-flashEstimate2026-11-19 through 2026-12-310.750.0753.75n/aOfficial source
Googlegemini-3.8-flashEstimate2027-01-01 onward1.50.157.5n/aOfficial source
Googlegemini-3.6-flashEstimate2026-11-19 through 2026-12-310.750.0753.75n/aOfficial source
Googlegemini-3.6-flashEstimate2027-01-01 onward1.50.157.5n/aOfficial source
Googlegemini-3.5-flash-liteEstimateStandard0.30.032.5n/aOfficial source
Googlegemini-3.1-pro-previewEstimateStandard20.212n/aOfficial source
Googlegemini-3.1-pro-previewEstimateWhole request, over 200,000 prompt tokens40.418n/aOfficial source
DeepSeekdeepseek-flashEstimatePeak0.30.0061.2n/aOfficial source
DeepSeekdeepseek-flashEstimateOff-peak0.150.0030.6n/aOfficial source
DeepSeekdeepseek-v4-proEstimatePeak1.320.0443.96n/aOfficial source
DeepSeekdeepseek-v4-proEstimateOff-peak0.660.0221.98n/aOfficial source
MistralMistral Large 4EstimateStandard0.70.072.1n/aOfficial source
MistralMistral Small 4EstimateStandard0.150.0150.6n/aOfficial source
Perplexityperplexity/sonarEstimateStandard0.250.06252.5n/aOfficial source
Perplexityperplexity/nemotron-3.5-super-120b-a12bEstimateStandard0.20.040.5n/aOfficial source
Perplexityperplexity/glm-5.3EstimateStandard1.40.264.4n/aOfficial source
Perplexityperplexity/glm-5.3-flashEstimateStandard0.150.030.5n/aOfficial source
Perplexityperplexity/deepseek-v4-pro-0813EstimateStandard1.320.0443.96n/aOfficial source
Perplexityperplexity/kimi-k3EstimateStandard30.315n/aOfficial source
MetaMuse Spark 1.3 / 1.2 (Standard) · muse-spark-1.3EstimateStandard1.250.154.25n/aChecked Nov 28, 2026
MetaMuse Spark 1.3 / 1.2 (Contributor) · muse-spark-1.3-contributorEstimateStandard0.10.0020.2n/aChecked Nov 28, 2026
MetaMuse Wonder (Standard) · muse-wonder-1.0EstimateStandard40.220n/aChecked Nov 28, 2026
Vercelv0 MiniEstimateStandard0.10.010.5cache write 0.125Official source
Vercelv0 MiniEstimateWhole request, over 272,000 prompt tokens0.20.020.75cache write 0.25Official source
Vercelv0 ProEstimateStandard20.110cache write 2.5Official source
Vercelv0 MaxEstimateStandard40.220cache write 5Official source
Vercelv0 Max FastEstimateStandard80.440cache write 10Official 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.