How to Reduce Gemini API Costs

A Gemini API bill is cached input, uncached input and output with thinking included, and two Gemini model prices go up before the new year. Argon goes from $2/$10 to $4/$20 on December 1, and 3.8 Flash doubles on January 1. Find out which token type is spending the money first. Then work through eight levers in order: budget at the standard price, keep the prefix stable so implicit caching hits, move work that can wait to Batch or Flex, pick the model per request, set the thinking level per request, cap the output, trim the input, and add a router last. No savings percentage, because the result depends on your traffic.

Published 2026-11-20 by Dor Amir on the Nadir blog.

Filed under Pricing & Models.

To reduce Gemini API costs, first find out which token type is spending the money. Then work through eight levers in order: budget at the standard price rather than the introductory one, keep the prompt prefix stable so implicit caching hits, move anything that can wait to Batch or Flex, pick the model per request, set the thinking level per request, cap and shrink the output, trim the input, and add a router last. The first lever is specific to Gemini right now. Two of Google's price changes land in the next six weeks, and a cost plan built on today's rates will be wrong by January.

This is a checklist, not a benchmark. It contains no savings percentage, because the result depends on your traffic. Prices and multipliers come from Google's model announcements and the Gemini API pricing page as reported in November 2026. Check them on [Google's pricing page](https://ai.google.dev/gemini-api/docs/pricing) before you plan around them.

Where a Gemini API bill comes from.

Each request bills three token types:

Token typeWhat it isRate on current Gemini models
Cached inputA prompt prefix Google has seen recentlyAbout 90% off base input on Flash and Hydrogen, 95% off on Carbon
Uncached inputEverything else in the promptBase input rate
OutputThe answer, tool calls and thinking tokens5x input on Flash, Hydrogen, Argon and Carbon

Google's pricing page labels every output price "including thinking tokens", so reasoning bills at the output rate.

The model sets the base rate, and on Gemini the base rate is a moving target:

ModelInput / output per 1M tokensWhat changes
Gemini 3.5 Flash-Lite$0.30 / $2.50
Gemini 3.8 Flash$0.75 / $3.75Doubles to $1.50 / $7.50 on January 1, 2027
Gemini 4 Hydrogen$1.50 / $7.50No promotion; this is the standard price
Gemini 4 Argon$2 / $10 (introductory)$4 / $20 from December 1, 2026
Gemini 4 Carbon$2 / $10 (introductory, limited access)$4 / $20 at a date Google has not given

The service tier multiplies the rate again: Batch and Flex bill half of Standard, and Priority bills about 1.8x.

Step 0: measure before you change anything.

If uncached input is the largest share, start with levers 2 and 7. If thinking tokens are most of the output, start with lever 5. If one model is most of the bill, start with levers 1 and 4.

The eight levers.

1. Budget at the standard price, not the introductory one

This is the lever with a deadline. Gemini 4 Argon's introductory $2/$10 ends on December 1, when it becomes $4/$20. Gemini 3.8 Flash doubles on January 1, and every Flash tier moves with it, Batch, Flex and Priority included. Carbon's $2/$10 is introductory with no end date. A budget sized on any of those numbers doubles on a day you do not control. Plan at the later price, and the change becomes a non-event. Gemini 4 Hydrogen is the exception: $1.50/$7.50 is its standard price, so it is the first Gemini 4 model you can budget a year on. The full calendar is in Seven Dates, One Bill, and the Flash arithmetic in Flash Frozen.

2. Keep the prefix stable so implicit caching hits

Gemini caches prompt prefixes implicitly, with nothing to turn on. On Hydrogen and Argon the cache starts at 4,096 tokens, and a hit bills at about a tenth of base input on Flash and Hydrogen. You still decide whether it hits. Put everything that does not change between requests first: system prompt, tool definitions, reference documents, few-shot examples. Put the user's input last. A timestamp or a reordered tool list near the top breaks the match for everything after it. If cachedContentTokenCount stays at zero on requests that share a long prefix, the prefix is not stable, or it is shorter than the threshold. Google also offers explicit cached content with a TTL you manage; check that your model supports it before you build on it. Why caching comes first is in The Closest Thing to Free Money, and where it stops paying in The Overcaching Tax.

3. Move anything that can wait to Batch or Flex

Batch and Flex both bill half of Standard on current Gemini models. Evaluations, backfills, enrichment, classification and nightly reports belong on one of them. Priority, at about 1.8x, buys capacity that is not queued behind Standard traffic. It pays off only where a person is waiting and a slow answer costs more than the premium. Google also lists an invite-only Contributor tier at half price, which lets Google use the data from participating requests to improve products and train models. Treat that as a data-processing decision, not a pricing one. The tier ladder across providers is in Four Prices, One Model, and batch discounts in Half Price, One Day Late.

4. Pick the model per request

Choose the model in code for each request type, instead of one model for the whole service. Compare cost per task, not per token, because Gemini models differ more in how many tokens they spend than in what they charge. On Artificial Analysis's Intelligence Index, one task cost $1.87 on Hydrogen at its default setting and $7.77 on 3.8 Flash, which charges half Hydrogen's per-token rate. But on Box's enterprise eval, Hydrogen used only about 12% fewer tokens than Flash, so it cost more per task there until January. The per-task number depends on your tasks. In a multi-turn conversation, choose at the start. The cache is per model, so switching mid-conversation re-sends the whole prefix at full price, as worked through in Your Router Is Fighting Your Prompt Cache. The Hydrogen-versus-Flash break-even is in Gemini 4 Hydrogen pricing vs Gemini 3.8 Flash. Neon versus Carbon, and a Neon planner with Hydrogen workers, are in Gemini 4 Neon: The December Flip.

5. Set the thinking level per request

Thinking tokens bill as output, the most expensive token type, and nobody reads them. On Hydrogen, the thinking level moves the cost of one index task from $0.29 at low to $3.16 at xhigh, an 11x spread, and the last step from high to xhigh bought nothing on Terminal-Bench 4.0. Hydrogen defaults to high, where 3.8 Flash defaulted to medium, so swapping the model string can raise the bill on its own. Hydrogen also rejects thinking_budget and the MINIMAL level, so code written for older Gemini models needs to set thinking_level instead. Set it per request type: low for lookups and formatting, higher only where the task needs it. Cross-provider settings are in The Overthinking Tax.

6. Cap and shrink the output

Output costs 5x input on current Gemini models, and thinking counts as output. Set maxOutputTokens to what the feature needs, and remember that on models with a shared window, thinking and the answer draw on the same budget. Ask for the format you will parse: a label, or a JSON object with only the fields you read. Use a response schema when you parse the result, so a malformed answer does not cost a retry, since every retry pays the full input again. More patterns are in The Expensive Half, and why a tight output cap can cost more per finished task in The Cap Is Not a Budget.

7. Trim the input

Send the relevant chunk, not the whole document. A 1M-token window is a limit, not a target, and every token in it is billed. Drop tool definitions the request cannot use. In long conversations, clear old tool results instead of carrying them forward, because every turn re-sends the history. Downscale images and sample video frames to the lowest resolution the task tolerates, as covered in A 4K Image Costs 10,764 Tokens. Hydrogen prices flat across its window, but check your model's rate card for a long-context tier before you send very long prompts. Trimming inside the cached prefix changes the prefix, so trim when you deploy, not on each request.

8. Add a router last

Choosing the model and thinking level in code (levers 4 and 5) works until the request types blur and nobody can say which ones need the big model. Google's own developer blog described the pattern in November: a cheap classifier that routes across Gemini models and thinking levels by cost per task. A router helps when your traffic is a real mix of easy and hard requests. It does not help when the cheap model already passes nearly everything, when the candidate models are close in price, or when a switch would throw away a warm cache. We published our own negative results in When LLM Routing Does Not Help, and compared the products in How to Choose an LLM Router.

Gemini app plans are a different bill.

Subscriptions to the Gemini app are flat plans with usage limits, and nothing on this list changes them. Hydrogen is also rolling out in Search, the Gemini app, Sheets and Antigravity, so people on your team may be using it before engineering decides anything. This checklist applies to the Gemini API, which bills per token: your own apps and agents, on AI Studio or Vertex AI. Measure the two separately.

A team is a different problem.

For one service, the levers above are code changes. For a team, they become policy: a model allowlist, a budget per project, and spend broken out by owner. Google Cloud projects and a gateway such as LiteLLM, Bifrost or Portkey enforce the budget and the allowlist. A router decides the model inside those limits. These are separate layers, compared in AI gateway vs model router.

Where Nadir fits.

Nadir covers lever 8 and part of lever 5.

Nadir does not do levers 1, 2, 3, 6 or 7 for you. Price planning, cache structure, service tier, output size and input size are yours to change, and on many workloads they are the larger share of the bill. Nadir publishes no universal savings rate. Measure first, then decide whether a router is worth adding.

The same checklist for the other two providers is How to Reduce OpenAI API Costs and How to Reduce Claude API Costs. If you call these models through AWS, the Bedrock version is How to Reduce Amazon Bedrock Costs.

Conclusion.

First find out which token type is spending the money, and add thinking tokens to output before you compare models. Budget at the standard price, because Argon changes on December 1 and Flash on January 1. Keep the prefix stable, and move work that can wait onto Batch or Flex. Choose the model and thinking level per request, cap the output, trim the input, and add a router once the choice needs to happen without anyone maintaining it by hand.

More on pricing & models

Pages on this site

Machine-readable summaries of this site: llms.txt and llms-full.txt.