Gemini API pricing

What every Gemini model costs per 1M tokens on Google's Gemini API, paid tier, with cached input and the 3:1 blend. Checked against Google's own price page on November 30, 2026.

How is the Gemini API priced?

Per token, in and out. Thinking tokens count as output, and output costs 5 to 8 times as much as input.

Which Gemini model is cheapest?

Gemini 2.5 Flash-Lite, then Gemini 3.1 Flash-Lite. Both are on the free tier too, with lower rate limits.

What do cache hits cost?

A tenth of the input price on most models and a twentieth on the Gemini 4 models, which cache automatically.

What does Gemini cost per customer?

Each customer's tokens times these rates. Lancelot does the math on every call and throttles or switches models when a customer loses money.

Model
Input
Output
Cached input
3:1 blend

US dollars per 1M tokens on the Gemini Developer API, paid tier, standard processing. Gemini 2.5 Pro and 2.5 Flash retire on December 1, 2026, when Google routes their calls to newer models.

Comparing providers? See Claude API pricing or every model's price.

Context caching cuts the price of repeated input

Cached input costs a tenth of the input price on most Gemini models and a twentieth on Gemini 4 Carbon, Argon, Neon and Hydrogen. The Gemini 4 models cache repeated prompt prefixes on their own; you can't create a cache for them.

On models with explicit caching you also pay to keep a cache: from $0.50 to $4.50 per 1M tokens per hour, depending on the model. A cache pays off when many calls read it within that hour.

The Batch API halves the price

Requests sent through the Gemini Batch API cost 50% less than standard processing. You trade an immediate answer for results that arrive later, usually within a day.

Google also sells Flex and Priority processing at their own rates, for work that can wait a little or can't wait at all.

Long prompts cost more on the Pro models

Gemini 3.1 Pro Preview and Gemini 2.5 Pro charge more once a prompt passes 200,000 tokens: twice the input price and 1.5 times the output price, for the whole call.

Gemini 4 and the Flash models bill their full context window at one rate, so a long prompt costs the same per token as a short one.

Price changes and other charges

Gemini 4 Carbon and Argon cost twice as much from December 1, 2026. Gemini 3.6 Flash and 3.8 Flash cost twice as much from January 1, 2027.

Gemini 2.5 Pro calls route to Gemini 3.8 Flash and Gemini 2.5 Flash calls to Gemini 3.5 Flash-Lite from December 1, 2026, billed at the new model's rates.

Grounding with Google Search on Gemini 3 and newer is free for 5,000 searches a month, then $14 per 1,000.

The free tier covers the Flash, Flash-Lite and Hydrogen models with lower rate limits, and Google may use that content to improve its products.

See what Gemini costs each of your customers

Lancelot prices every call with this table and puts each customer's AI cost next to what they pay you. When a customer goes underwater, it throttles, switches models or drafts an upgrade offer, within limits you set.

Gemini API pricing questions

How much does the Gemini API cost?

You pay per million tokens, with separate rates for input and output, and thinking tokens count as output. Gemini 2.5 Flash-Lite is the cheapest model and the Gemini 4 models are the most expensive. The table on this page lists every model.

Is the Gemini API free?

Partly. The free tier covers the Flash, Flash-Lite and Gemini 4 Hydrogen models with lower rate limits, and Google may use that content to improve its products. Gemini 4 Carbon, Argon, Neon and 3.1 Pro Preview are paid only.

How much does Gemini context caching save?

Cached input costs a tenth of the input price on most models and a twentieth on the Gemini 4 models, which cache automatically. Explicit caches also charge an hourly storage fee, which varies by model.

Does the Gemini Batch API make it cheaper?

Yes. The Batch API costs 50% less than standard processing on the paid tier. Results arrive later, usually within a day, so use it for work that doesn't need an answer right away.

Are Gemini prices going up?

Gemini 4 Carbon and Argon cost twice as much from December 1, 2026, and Gemini 3.6 Flash and 3.8 Flash from January 1, 2027. Gemini 2.5 Pro and 2.5 Flash calls move to newer models on December 1, 2026.

How do I see what Gemini costs per customer?

After each Gemini call, send its token counts and your customer ID with the Lancelot SDK's track call. Lancelot prices every call and shows each customer's AI cost next to what they pay you in Stripe or RevenueCat. When a customer loses money, it can throttle them, switch models or draft an upgrade offer.