Skip to content
UtilPouch

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.

Your workload

Processed on this device
Start from
tokens
tokens
/ day
days
0%

Share of input tokens that repeat, like a fixed system prompt.

Custom rate

Add your own or a negotiated price, in USD per 1M tokens. It appears as Custom model in the table.

ModelPer month

Prices checked December 6, 2026. Sources: OpenAI, Anthropic, Google, DeepSeek. Confirm current rates before you budget.

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.

Gemini models compared (USD per 1M tokens)
ModelInputCached inputOutputNote
Gemini 3.8 Flash$0.75$0.075$3.75Intro rate to Dec 31, 2026
Gemini 3.8 Flash (2027)$1.50not yet listed$7.50From Jan 1, 2027
Gemini 3.1 Pro$2.00$0.20$12.00Above 200K input: $4.00 / $0.40 / $18.00

Batch mode halves input and output, but cached input stays at the standard cached rate. Check ai.google.dev for the full table.

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.