IABIGFR · Français
40 models · official prices checked 2026-10-26

AI API cost calculator

What will GPT, Claude, Gemini, Mistral, DeepSeek or Grok really cost for your workload? Enter your volumes and compare every model, with prompt caching, batch discounts and long-context tiers applied.

Your workload

Estimate tokens from a sample prompt

Official prices per million tokens

In US dollars, standard (non-batch) rates, as published by each provider and checked on 2026-10-26. Each “official” link opens the provider's pricing page.

ModelInputCached inputOutputContextSource
OpenAI
GPT-6 Astra
gpt-6-astra
> 272K tokens: $20.00 / $75.00
$10.00$1.00$50.001 050Kofficial
GPT-6.1 Sol
gpt-6.1-sol
> 272K tokens: $4.00 / $15.00
$2.00$0.1$10.001 050Kofficial
GPT-6 Luna
gpt-6-luna
> 272K tokens: $0.2 / $0.75
$0.1$0.01$0.51 050Kofficial
GPT-5.6 Sol
gpt-5.6-sol
> 272K tokens: $8.00 / $30.00
$4.00$0.4$20.001 050Kofficial
GPT-5.6 Terra
gpt-5.6-terra
> 272K tokens: $4.00 / $18.00
$2.00$0.2$12.001 050Kofficial
GPT-5.6 Luna
gpt-5.6-luna
> 272K tokens: $0.4 / $1.80
$0.2$0.02$1.201 050Kofficial
GPT-5.5
gpt-5.5
> 272K tokens: $10.00 / $45.00
$5.00$0.5$30.001 050Kofficial
GPT-5.4
gpt-5.4
> 272K tokens: $5.00 / $22.50
$2.50$0.25$15.001 050Kofficial
GPT-5.4 mini
gpt-5.4-mini
$0.75$0.075$4.50400Kofficial
Anthropic
Claude Fable 5.1
claude-fable-5-1
$10.00$0.25$50.001 000Kofficial
Claude Opus 5.5
claude-opus-5-5
$4.00$0.2$20.001 000Kofficial
Claude Sonnet 5.5
claude-sonnet-5-5
$2.00$0.1$10.001 000Kofficial
Claude Haiku 5.5
claude-haiku-5-5
> 100K tokens: $0.5 / $2.50
$0.1$0.01$0.51 000Kofficial
Claude Opus 5
claude-opus-5
legacy
$5.00$0.5$25.001 000Kofficial
Claude Sonnet 5
claude-sonnet-5
legacy
$2.00$0.2$10.001 000Kofficial
Claude Haiku 4.5
claude-haiku-4-5
legacy
$1.00$0.1$5.00200Kofficial
Google
Gemini 4 Argon
gemini-4-argon
from 2026-12-01: $4.00 / $20.00
$2.00$0.1$10.001 048Kofficial
Gemini 3.8 Flash
gemini-3.8-flash
from 2027-01-01: $1.50 / $7.50
$0.75$0.075$3.751 048Kofficial
Gemini 3.1 Pro (preview)
gemini-3.1-pro-preview
> 200K tokens: $4.00 / $18.00
$2.00$0.2$12.001 048Kofficial
Gemini 3.5 Flash-Lite
gemini-3.5-flash-lite
$0.3$0.03$2.501 048Kofficial
Gemini 3.1 Flash-Lite
gemini-3.1-flash-lite
$0.25$0.025$1.501 048Kofficial
Gemini 2.5 Pro
gemini-2.5-pro
> 200K tokens: $2.50 / $15.00
$1.25$0.125$10.001 048Kofficial
Gemini 2.5 Flash
gemini-2.5-flash
$0.3$0.03$2.501 048Kofficial
Gemini 2.5 Flash-Lite
gemini-2.5-flash-lite
$0.1$0.01$0.41 048Kofficial
Mistral AI
Mistral Large 4
mistral-large-4
$1.36$0.14$4.181 000Kofficial
Mistral Medium 3.5
mistral-medium-3-5
$1.50$0.15$7.50256Kofficial
Mistral Large 3
mistral-large-2512
$0.5$0.05$1.50256Kofficial
Mistral Small 4
mistral-small-2603
$0.15$0.015$0.6256Kofficial
Ministral 3 14B
ministral-14b-2512
$0.2$0.02$0.2256Kofficial
Ministral 3 8B
ministral-8b-2512
$0.15$0.015$0.15256Kofficial
Codestral
codestral-2508
$0.3$0.03$0.9128Kofficial
DeepSeek
DeepSeek V4.1 Flash
deepseek-flash
off-peak −50%
$0.3$0.006$1.201 000Kofficial
DeepSeek V4 Pro
deepseek-v4-pro
off-peak −50%
$1.32$0.044$3.961 000Kofficial
xAI
Grok 4.7
grok-4.7
> 200K tokens: $4.00 / $12.00
$2.00$0.5$6.00500Kofficial
Grok 4.3
grok-4.3
> 200K tokens: $2.50 / $5.00
$1.25$0.2$2.501 000Kofficial
Grok 4.20 Reasoning (0309)
grok-4.20-0309-reasoning
> 200K tokens: $2.50 / $5.00
$1.25$0.2$2.501 000Kofficial
Grok 4.20 Non-Reasoning (0309)
grok-4.20-0309-non-reasoning
> 200K tokens: $2.50 / $5.00
$1.25$0.2$2.501 000Kofficial
Grok Build 0.1
grok-build-0.1
> 200K tokens: $2.00 / $4.00
$1.00$0.2$2.00256Kofficial
Cohere
Command R
command-r-08-2024
$0.15—$0.6128Kofficial
Command R7B
command-r7b-12-2024
$0.0375—$0.15128Kofficial

How the calculator works

  • Cost per request = uncached input × input price + cached input × cache price + output × output price, divided by one million. A model without a published cache price is charged the full input price.
  • Long context: some models charge more for large prompts. OpenAI's flagship models switch to higher prices above 272K input tokens, Gemini Pro above 200K, Claude Haiku 5.5 above 100K, and xAI bills every token of a request at 2× once the prompt reaches 200K. The calculator applies the higher tier automatically.
  • Batch: OpenAI, Anthropic, Google and Mistral take 50% off for asynchronous batch jobs; xAI takes 20% off on listed models. DeepSeek and Cohere publish no batch discount.
  • DeepSeek off-peak: half price outside 01:00–04:00 and 06:00–10:00 UTC on weekdays.
  • Scheduled price changes (for example Gemini 4 Argon on 1 December 2026) are applied automatically from their effective date. GPT-5.6 Sol is on promotional pricing guaranteed only until 21 November 2026.

Tokens are not words

A token is roughly four characters of English text, fewer for French or code, and each provider counts differently: since Claude Opus 4.7, Claude models produce up to about a third more tokens for the same text than earlier ones. Use the estimate above as a starting point, then check real usage in your provider's dashboard. Prices exclude taxes, regional endpoints (+10% at OpenAI, +10% for US-only inference at Anthropic) and premium speed tiers.

More free tools