Gemini API cost calculator
See what your prompts cost on each Gemini model — including long-context pricing above 200K tokens and upcoming price changes.
0 characters0 words0 tokens (GPT o200k)
| Model | Per month |
|---|---|
| Claude Fable 5.1 | |
| Claude Opus 5.5 | |
| Claude Opus 5 | |
| Claude Sonnet 5.5 | |
| Claude Sonnet 5 | |
| Claude Haiku 5.5 | |
| Claude Sonnet 4.6 | |
| Claude Haiku 4.5 | |
| GPT-6 Astra | |
| GPT-6.1 Sol | |
| GPT-6.1 Terra | |
| GPT-6 Sol | |
| GPT-6 Luna | |
| GPT-5.6 Sol | |
| GPT-5.6 Terra | |
| GPT-5.6 Luna | |
| GPT-5.5 | |
| GPT-5.4 | |
| GPT-5.4 mini | |
| GPT-5.4 nano | |
| GPT-5 mini | |
| GPT-4.1 | |
| GPT-4o mini | |
| o3 | |
| o4-mini | |
| Gemini 4 Argon | |
| Gemini 3.8 Flash | |
| Gemini 3.6 Flash | |
| Gemini 3.5 Flash-Lite | |
| Gemini 3.1 Pro (preview) | |
| Gemini 3.1 Flash-Lite | |
| Gemini 2.5 Pro | |
| Gemini 2.5 Flash | |
| Gemini 2.5 Flash-Lite | |
| Grok 4.7 | |
| Grok 4.6 | |
| Grok 4.5 | |
| Grok 4.3 | |
| Grok 4.20 | |
| Grok Build 0.1 | |
| DeepSeek V4 Pro | |
| DeepSeek Flash | |
| Mistral Large 3 |
≈ = estimated token count: only OpenAI publishes its tokenizer. Claude counts use Anthropic’s published ratios; use the count_tokens API for an exact number.
Price per million tokens
Prices checked on October 28, 2026. USD, standard tier.
Google (Gemini)
| Model | Input | Cached input | Output | Batch |
|---|---|---|---|---|
Gemini 4 Argon gemini-4-argonLaunch price through November 30, 2026; $4 / $20 from December 1, 2026. | $2 | $0.1 | $10 | −50% |
Gemini 3.8 Flash gemini-3.8-flashPrice doubles in January 2027 ($1.50 / $7.50). | $0.75 | $0.075 | $3.75 | −50% |
Gemini 3.6 Flash gemini-3.6-flashPrice doubles in January 2027 ($1.50 / $7.50). | $0.75 | $0.075 | $3.75 | −50% |
Gemini 3.5 Flash-Lite gemini-3.5-flash-lite | $0.3 | $0.03 | $2.5 | −50% |
Gemini 3.1 Pro (preview) gemini-3.1-pro-previewAbove 200K tokens: $4 / $18 | $2 | $0.2 | $12 | −50% |
Gemini 3.1 Flash-Lite gemini-3.1-flash-lite | $0.25 | $0.025 | $1.5 | −50% |
Gemini 2.5 Pro gemini-2.5-proAbove 200K tokens: $2.5 / $15 | $1.25 | $0.125 | $10 | −50% |
Gemini 2.5 Flash gemini-2.5-flash | $0.3 | $0.03 | $2.5 | −50% |
Gemini 2.5 Flash-Lite gemini-2.5-flash-lite | $0.1 | $0.01 | $0.4 | −50% |
Sources: ai.google.dev
Frequently asked questions
What is a token?
A token is a piece of text a language model reads or writes — often part of a word. In English, 1,000 tokens is roughly 750 words. APIs bill per million tokens, with separate prices for input (your prompt) and output (the answer).
Why do Claude and GPT count different tokens for the same text?
Each company uses its own tokenizer. Anthropic says Claude Opus 4.7 and later produce about 30% more tokens than earlier Claude models for the same text, so comparing price per token alone is misleading — compare the cost of the same prompt, as this calculator does.
Are the token counts exact?
For GPT-4o, GPT-4.1, the o-series and GPT-5, yes: we use OpenAI’s public o200k tokenizer in your browser. Other providers don’t publish their tokenizers, so their counts are estimates (marked ≈). For an exact Claude count, use Anthropic’s count_tokens API.
How do prompt caching and the Batch API lower the cost?
Cached input is billed at a fraction of the normal price (10% on most Claude models, less on some). The Batch API halves prices for requests that can wait up to 24 hours. Use the slider and checkbox to see the effect.