Gemini API cost calculator
Filtered to Google’s Gemini models and set to a document summary workload, where Gemini’s million-token context shines. Note the Flash intro rate ends December 31, 2026.
| Model | Per month |
|---|
Flash or Pro
Gemini 3.8 Flash is the volume model: fast and cheap, with a million-token window. Gemini 3.1 Pro costs more per token but handles harder reasoning and long-document analysis better.
Both read up to a million tokens, so whole contracts, codebases or transcripts can go in a single request.
Plan for the January price change
Flash is on an introductory rate of $0.75 in and $3.75 out per million tokens through December 31, 2026. From January 1, 2027 both double, to $1.50 and $7.50.
If you are budgeting for next year, enter the 2027 rates in Custom rate and compare both rows side by side.
| Model | Input | Cached input | Output | Note |
|---|---|---|---|---|
| Gemini 3.8 Flash | $0.75 | $0.075 | $3.75 | Intro rate to Dec 31, 2026 |
| Gemini 3.8 Flash (2027) | $1.50 | not yet listed | $7.50 | From Jan 1, 2027 |
| Gemini 3.1 Pro | $2.00 | $0.20 | $12.00 | Above 200K input: $4.00 / $0.40 / $18.00 |
Other AI setups
- OpenAI API cost calculator5 models
- Claude API cost calculatorHaiku · Sonnet · Opus
- Gemini API cost calculator
- DeepSeek API cost calculatorOff-peak rates
- Prompt caching savings calculatorCached vs uncached
- AI agent cost calculator20 turns
- Context window calculator128K to 1M
- Private token counter
Related
Questions
How much does Gemini 3.8 Flash cost?
$0.75 per million input tokens and $3.75 per million output tokens on the introductory rate through December 31, 2026, then $1.50 and $7.50.
Does Gemini charge more for long prompts?
Yes. Once a request passes 200K input tokens, Gemini 3.1 Pro costs $4.00 input, $0.40 cached and $18.00 output per million tokens. The calculator applies the higher tier automatically.
Does the free tier count?
Google AI Studio has a free tier with rate limits, and data on it may be used to improve products. This calculator uses paid-tier prices.
What is context caching on Gemini?
You can cache a large shared context, like a document set, and reuse it across requests at the cached input price, plus a storage fee for how long it is kept.