DEV Community

Manu Shukla
Manu Shukla

Posted on • Originally published at ecorpit.com

Gemini Code Assist and CLI thinking-token costs: how to stop a coding session from burning $100 a day (2026)

Gemini Code Assist and CLI thinking-token costs: how to stop a coding session from burning $100 a day (2026)

Summary. Gemini bills reasoning as output. Every model on Google's pricing page lists its output rate as "output price (including thinking tokens)," so the background thinking a model does before it answers is charged at the full output rate. On Gemini 3.1 Pro Preview that output rate is $12.00 per million tokens for prompts up to 200k, rising to $18.00 above 200k, while input is $2.00. A reasoning-heavy coding session emits far more output than the code you see, which is how developers on Google's AI developer forum have reported daily costs of $100 to $140 after switching to thinking models. Two things changed the stakes on June 18, 2026: the free and individual Gemini Code Assist tiers, plus Google AI Pro and Ultra access inside the IDE extensions and Gemini CLI, stopped working, leaving paid Standard at $19 per user per month and Enterprise at $45. So the spend is now yours to manage. This guide explains how the billing works and how to cap it with model choice, the thinking-control config, context caching and budgets.

Why the bill moved

A thinking token is a token the model generates while reasoning through a problem before it writes its visible answer. You do not see these tokens in the response, but you pay for them, because Gemini folds them into the output-token count. On a coding assistant that reasons about your repository on every completion and every terminal command, those hidden tokens accumulate on each call.

The rate gap between model tiers is the whole game. The table shows the Standard paid rates for prompts up to 200k tokens.

Model Input, $/M tokens Output, $/M tokens (includes thinking)
Gemini 3.1 Pro Preview $2.00 $12.00
Gemini 3.6 Flash $1.50 $7.50
Gemini 3.5 Flash $1.50 $9.00
Gemini 3.5 Flash-Lite $0.30 $2.50
Gemini 3.1 Flash-Lite $0.25 $1.50

Read the output column, not the input column, because thinking lands there. Gemini 3.1 Pro output at $12.00 per million is about 8 times the $1.50 that Gemini 3.1 Flash-Lite charges, and prompts above 200k tokens push Pro output to $18.00. Point a coding agent at Pro with reasoning on, let it churn through a large repository context, and the output line is where the money goes.

The arithmetic of a burned afternoon

Put numbers on it. Say one heavy session, refactoring across several files with the model reasoning on each step, emits 3 million output tokens counting thinking. On Gemini 3.1 Pro at $12.00 per million that session costs about $36 in output alone. The same 3 million tokens on Gemini 3.5 Flash-Lite at $2.50 per million costs about $7.50, and on Gemini 3.1 Flash-Lite at $1.50 it costs about $4.50. Run three or four Pro sessions like that in a day and you are at the $100-plus figure the forums describe, without doing anything that felt unusual.

These are illustrative figures, not a quoted benchmark; your real numbers depend on how much the model reasons and how large your context is. The point holds regardless of the exact token count: the model tier multiplies every session, so tier choice is the single biggest lever you have.

Control lever 1: pick the cheaper model for routine work

Most coding tasks, code completion, boilerplate, renaming, small edits, do not need frontier reasoning. Route those to Flash-Lite and keep Pro for genuine architectural work. Because output including thinking is where the cost sits, moving routine calls from $12.00 to $1.50 per million output is a real cut, not a rounding change. Our budget LLM tier cost comparison and the Gemini 3.6 Flash token-efficiency guide walk through where each tier earns its price.

Control lever 2: the thinking config

Gemini exposes reasoning controls through thinkingConfig, but the exact knob depends on the model generation, and this trips people up.

Lever Setting Where it applies
Turn thinking off thinkingBudget: 0 Gemini 2.5 Flash
Cap thinking tokens thinkingBudget 128 to 32768 Gemini 2.5 Pro (cannot fully disable; minimum 128)
Set a thinking level thinkingLevel Gemini 3 and 3.1 models
Dynamic thinking thinkingBudget: -1 Gemini 2.5 models (model decides)
Avoid empty responses Raise maxOutputTokens All models

The sharp edges are worth stating plainly. On Gemini 2.5 Flash you can set thinkingBudget: 0 and turn reasoning off entirely. On Gemini 2.5 Pro you cannot fully disable it; the budget floor is 128 tokens. On Gemini 3 and 3.1 you use thinkingLevel rather than a raw budget, and you cannot switch thinking fully off on 3.1 Pro. There is also a failure mode: because thinking tokens count against maxOutputTokens, a limit set too low can be consumed entirely by thinking and return an empty response, a bug developers have logged against the 2.5 and 3 Flash models. Size maxOutputTokens for thinking plus answer, not answer alone.

Control lever 3: cache context and watch grounding

A coding assistant resends large chunks of the same repository context on every call. Context caching prices that repeated input far lower than fresh input, so caching the stable parts of a prompt cuts the input line on high-volume sessions. Separately, if your setup uses grounding with Google Search, Gemini 3 gives 5,000 grounded prompts per month free and then charges $14 per 1,000 search queries, and one request can fire more than one query. Track it, because it is billed on top of tokens. For teams running several models, our LLM hybrid-routing spend framework covers deciding which calls go where.

Control lever 4: budgets, quotas and seat math

After June 18, 2026 the free ride ended. The tiers now look like this.

Tier Price Status after June 18, 2026
Individual / free Code Assist $0 Ended in IDE extensions and Gemini CLI
Google AI Pro / Ultra in extensions Consumer subscription No longer served in Code Assist
Standard (via Google Cloud) $19 per user per month Active
Enterprise (via Google Cloud) $45 per user per month Active
Individual migration path Antigravity Where individual and Pro/Ultra users are directed

The seat fee is the predictable part; the usage-based API calls billed at the underlying model's token rate on top of the seat fee are the part that surprises finance. Set per-project budget alerts in Google Cloud, cap keys with quotas, and default your team's tooling to a Flash-tier model so the expensive Pro path is a deliberate choice, not the resting state. The same discipline applies to the Claude Sonnet 5 tokenizer cost cliff, where hidden token growth also moves the bill.

Control lever 5: scope the context you send

Prompt size is a rate multiplier, not just a token count. On Gemini 3.1 Pro, crossing 200k tokens in a prompt lifts output from $12.00 to $18.00 per million and input from $2.00 to $4.00, so a coding agent that stuffs an entire repository into every request pays the higher tier on work a scoped context would have kept cheaper. Larger context also gives the model more to reason over, which inflates thinking tokens on top of the input charge.

The fix is discipline about what the assistant sees. Feed the files and symbols relevant to the task rather than the whole tree, lean on the tool's file-scoping features, and split a sprawling refactor into smaller scoped requests instead of one giant-context call. Smaller prompts cut the input line, keep you under the 200k tier break, and reduce the reasoning surface that drives the output line. It is the least glamorous lever and often the most effective, because it attacks input and thinking cost at the same time.

India-specific considerations

For Indian teams the seat and usage both bill in dollars, so the weak rupee lifts the real cost. At roughly 96 rupees to the dollar in late July 2026, Standard at $19 per user is about 1,824 rupees per user per month, and Enterprise at $45 is about 4,320 rupees, before any usage. On usage, a single $36 Pro session works out near 3,456 rupees, versus about 720 rupees for the same session on Flash-Lite. For a ten-developer team, defaulting routine work to a Flash tier and reserving Pro for hard problems is the difference between a predictable and an alarming monthly invoice. Budget in rupees and set the Google Cloud alerts before you scale seats.

FAQ

Why did my Gemini coding bill jump after switching models?

Gemini bills thinking tokens at the output rate. A reasoning model generates hidden thinking tokens on every completion and command, and those count as output. On Gemini 3.1 Pro output is $12.00 per million tokens, so a session that reasons heavily can cost far more than the visible code suggests, which is what forum reports of $100-plus days describe.

How are thinking tokens billed in the Gemini API?

Every model on Google's pricing page lists its output price as including thinking tokens. The reasoning a model does before answering is charged at the output rate, not a separate cheaper rate. That is why the output column, $12.00 per million on 3.1 Pro versus $1.50 on 3.1 Flash-Lite, matters far more than the input column for coding workloads.

Can I turn off thinking in Gemini?

It depends on the model. Gemini 2.5 Flash accepts thinkingBudget: 0 to disable thinking. Gemini 2.5 Pro cannot fully disable it and enforces a floor of 128 tokens. Gemini 3 and 3.1 use thinkingLevel instead of a raw budget, and Gemini 3.1 Pro does not allow switching thinking fully off.

What happened to the free Gemini Code Assist and CLI tiers?

On June 18, 2026 the Gemini Code Assist IDE extensions stopped serving the individual and free tiers, plus Google AI Pro and Ultra access, and the change also applied to Gemini CLI usage. Paid Standard at $19 per user per month and Enterprise at $45 remain, and individual users are directed to migrate to Antigravity.

Which Gemini model is cheapest for routine coding?

Gemini 3.1 Flash-Lite is the lowest of the current tiers at $0.25 per million input and $1.50 per million output including thinking. Gemini 3.5 Flash-Lite sits close at $0.30 and $2.50. For completion, boilerplate and small edits these are far cheaper than the $12.00 output rate on Gemini 3.1 Pro.

How much does Gemini Code Assist cost now?

After June 18, 2026 Gemini Code Assist sells as Standard at $19 per user per month and Enterprise at $45 per user per month through Google Cloud. Usage-based API calls are billed at the underlying model's token rate on top of the seat fee, so the seat price is a floor, not the full cost.

Why do I sometimes get empty Gemini responses?

Thinking tokens count against maxOutputTokens. If that limit is set too low, the model can spend the whole budget on hidden reasoning and return nothing usable, a bug logged against the 2.5 and 3 Flash models. Size maxOutputTokens to cover thinking plus the answer, not just the visible answer length.

How do I cap Gemini coding spend per developer?

Default the team's tooling to a Flash-tier model, use thinkingConfig to cap or disable reasoning where the model allows, cache stable context, and set per-project budget alerts and key quotas in Google Cloud. Making the expensive Pro path a deliberate choice rather than the default is the single most effective control.

How eCorpIT can help

eCorpIT helps engineering teams get Gemini Code Assist and CLI spend under control without slowing developers down. We set model-routing defaults so routine work runs on a Flash tier, apply the right thinkingConfig per model, cache repository context, and wire Google Cloud budget alerts and quotas so a runaway session is caught early. That work sits inside our LLM migration and cost optimization service. To review your AI coding spend, contact eCorpIT.

References

  1. Google AI for Developers, "Gemini Developer API pricing": ai.google.dev/gemini-api/docs/pricing
  2. Google AI for Developers, "Gemini thinking" (thinkingConfig, thinkingBudget, thinkingLevel): ai.google.dev/gemini-api/docs/thinking
  3. Google for Developers, "Gemini Code Assist consumer accounts" (deprecation): developers.google.com/gemini-code-assist
  4. getDX, "AI coding assistant pricing and ROI guide (2026)": getdx.com/blog/ai-coding-assistant-pricing
  5. CloudZero, "Gemini pricing in 2026: every model, every plan, and the thinking tokens nobody budgeted for": cloudzero.com/blog/gemini-pricing
  6. Finout, "Gemini Pricing in 2026 for Individuals, Orgs & Developers": finout.io/blog/gemini-pricing-in-2026
  7. cline (GitHub), "thinkingBudget defaults to 0, incompatible with Gemini 2.5 Pro": github.com/cline/cline/issues/7735
  8. ha-llmvision (GitHub), "Gemini 2.5/3 Flash thinking tokens consume maxOutputTokens, causing empty responses": github.com/valentinfrlch/ha-llmvision/issues/609
  9. ofox.ai, "Gemini CLI Free Tier Shut Down: fixes that work (2026)": ofox.ai/blog/gemini-cli-free-tier-shutdown-fix-2026
  10. Exchange Rates UK, "US Dollar to Indian Rupee spot exchange rates history 2026": exchangerates.org.uk

Last updated: July 29, 2026.

Top comments (0)