Skip to content
Neural Minute
Reviews80 tools reviewed, prices dated
CompareBest AI for… guides, head-to-heads, alternatives
By industryIndustries, jobs and app integrations
Free toolsNo account needed
Learn AI61 tutorials, beginner to advanced
DealsPrices and codes, dated
News Subscribe to the newsletter

News

Gemini API keeps the prompt cache when agents change rules

By Maxime Aulne, Founder and Editor

Google put mid-conversation instructions into preview in the Gemini API, and an agent changes rules or tools mid-session without losing the prompt cache. Google also prices the new step at the plain input rate, keeps earlier turns on the cached rate, and publishes no measurement of the saving. A cache reset on a long agent run costs about 600 times the instruction that caused it.

Gemini API keeps the prompt cache when agents change rules (Google)
The visual Google published with this story, read on December 3, 2026.

Google published mid-conversation system instructions in the Gemini API on December 3, 2026. The headline is a feature, but the number that decides whether a team switches it on sits elsewhere: an agent can now change its rules or its tools in the middle of a session, and every earlier turn stays in the prompt cache while it does.

What was actually released

The feature is in public preview, on the Interactions API, through the v1beta endpoint, and Google lists it for all Gemini 4 models. It does not add a model. It adds a step type: the request carries a system_input step placed directly before the user_input step of the turn where the change happens, and the call passes the previous turn’s identifier in previous_interaction_id.

Two conditions keep the cache alive. The top-level system_instruction stays identical from turn to turn, so the prompt prefix remains the one the cache holds. And the new step appends at the current turn boundary, so earlier tokens are extended rather than rewritten. The same step carries tool changes: Google’s example removes a refund tool with removed_tools and adds an escalation tool with added_tools, in the same call that tells the model a billing review is under way.

Three fields that keep the prefix valid

Keep system_instruction byte for byte the same on every turn. Pass previous_interaction_id from the previous response. Put a single system_input step before user_input. Break any of the three and the prefix changes, which is the event the cache does not survive.

The top of the page Mid-conversation system instructions in the Gemini API published by Google
The page published by Google, read on December 3, 2026.

The feature sits on the same Interactions API that received Tool Retrieval in preview on November 19, which held tool schemas back until the model asked for one.

What the claim rests on

Google’s case is mechanical and it stays mechanical. Earlier turns stay cached, and the new instruction carries the same authority as the top-level system instruction, taking precedence over user messages. Both sentences describe the shape of a request. The post publishes no benchmark, no latency figure, no measured token saving, and no stated limit on how much text a single system_input step can carry before it stops behaving like a small append.

The two workarounds it replaces explain the problem. Sending new rules as a user message kept the cache but gave them less weight, and Google notes that users could imitate them. Rewriting the system instruction or the tool list kept full authority and forced the model to reprocess the whole conversation; Google calls that added cost and latency, and quantifies neither.

Earlier turns remain eligible for cached-token rates when rules or tools change.

One sentence in the post belongs in a code review rather than a launch note. Google writes that system_input, added_tools and removed_tools are orchestration controls, that the application should still authorize every function call on the backend, and that untrusted content should stay out of system_input. A step that outranks the user message is a privilege boundary, and the model is not where that boundary gets enforced.

On this page

What it changes for agent builders

For a team running long agents, the trade is now control against cost, and the cost is no longer the instruction. Model choice still sets the ceiling, which is what how Gemini and ChatGPT compare is for. A 120-token rule change at Gemini 4’s listed $4.00 per million input tokens costs $0.00048, and the expensive event was always the prefix going cold.

Before the preview, a permission change mid-session meant choosing between weak authority in a user message and a cache reset. Teams took the reset, because a refund tool a user can talk the model into ignoring is not a control.

The limit is the preview label itself. The feature is v1beta, on one API surface, and Google says support for the Gemini Enterprise Agent Platform is coming later. A cost saving that a model launch can switch off is a tuning, not a dependency.

What we checked

Our own price record gives the arithmetic something to sit on. On October 16 we recorded Gemini 4 Argon at an introductory $2.00 per million input tokens with cached input at 95 percent off, which put a cache read at $0.10. The Gemini 4 Carbon launch on October 28 named the rate that follows the introductory period: $4.00 input and $20.00 output, with the same 95 percent discount on cached input. Google’s Gemini API price page, read today, lists Gemini 4 Argon and Gemini 4 Carbon at $4.00 per million input tokens and $0.20 for cached input, with implicit caching only.

So the post-introductory rate is the listed rate now, and the cache read moved from $0.10 to $0.20 without the discount percentage moving at all. The table is ours, on those rates, and assumes the whole history is re-read at the cached rate every turn, Google’s best case.

The How pricing and supported models work part of the page Mid-conversation system instructions in the Gemini API published by Google
The How pricing and supported models work part of the page published by Google, read on December 3, 2026.
Session shape History re-read per turn Cache intact Cache reset Difference
20 turns 40,000 tokens $0.16 $3.20 $3.04
50 turns 50,000 tokens $0.50 $10.00 $9.50
200 turns 100,000 tokens $4.00 $80.00 $76.00

A cached input token on Gemini 4 costs $0.20 per million against $4.00 for a fresh one, a factor of 20.

One reset on an 80,000-token history costs $0.30 a turn, more than 600 times the $0.00048 instruction that triggered it.

Output tokens and tool round trips are excluded. The table measures one thing: what the history costs when the prefix stays put and when it does not. The AI tool pricing index carries the dated list rates for the rest of the stack.

The Neural Minute take

The useful part of this launch is not the instruction, it is the receipt. Google priced a control change at zero and left the cache, the real cost center of an agent, as the thing that decides the bill. Anyone budgeting a support agent at $4.00 per million input tokens should model turns rather than prompts: at 200 turns and 100,000 tokens of history, the same session costs $80 with a cold prefix and $4 with a warm one.

That gap is also the reason to read the rate page before the pilot rather than after. The discount is unchanged at 95 percent, but the dollars behind it doubled when the introductory period ended: the same 20-turn, 40,000-token shape saved $1.52 per session in October and saves $3.04 today, while the uncached version went from $1.60 to $3.20.

None of that makes the feature a reason to move. It makes the prefix a budget line. The teams that win on Gemini pricing will be the ones that stop rewriting the top-level instruction between turns, whatever Gemini plan they buy, and the developer tooling around the API already exposes the step. When an account needs a hard control before the preview reaches general availability, cutting AI tool costs starts with the same lever: shorter prefixes and fewer resets.

Sources

  • Introducing mid-conversation instructions in the Gemini API, Google, published December 3, 2026, read on December 3, 2026. Source for the release date, the request fields, the authority statement, the pricing sentence quoted above and the security note.
  • Introducing Gemini 4 Carbon, Google DeepMind, published October 28, 2026. Source for the post-introductory $4.00 and $20.00 rate and the 95 percent cached-input discount.
  • Gemini API price page, ai.google.dev, read on December 3, 2026. Source for the $4.00 input, $20.00 output and $0.20 cached rates on Gemini 4 Argon and Gemini 4 Carbon, and for implicit caching only on those models.
  • The cost table is our own arithmetic on those published rates. Google published no measurement with the preview.

Newsletter

One email when a review lands.

That is when the promo codes are still fresh, before the prices move.

Nothing else. Unsubscribe in one click.