AI NewsModels & agentsAnnouncement
Google Gemini API lets developers change system instructions mid-chat
Google added a system_input step to the Gemini API. A team can change the system prompt or swap tools mid-chat. The prompt cache stays warm.

Why it mattersA team no longer rewrites the system prompt to turn on a new tool. The cache stays warm. The fee is the normal input token price.
A team that builds a Gemini chat had two poor choices for a mid-session rule change. They could put the new rule in a user message. A user message has no authority. Or they could rewrite the system prompt. That throws away the prompt cache. Google's Gemini API now takes a third option.
Trey Nguyen and Daniel Kyme, product managers at Google, posted the change
on the Google blog on 3 December 2026. The new step is called system_input.
It goes in the input array before the next user_input. Google says
"earlier turns stay cached" after the new step runs. The model reads the
system update at the current turn boundary only. The prompt history is left
alone. The feature is in public preview on every Gemini 4 model, in the
v1beta Interactions API. The Gemini Enterprise Agent Platform will add the
same step later.
What a developer can now change in one turn
Two fields sit on the new step. added_tools registers a new function tool.
removed_tools takes one off the list. Google is clear on the limit. Its
post says only function tools can change through the two new fields. The
same path does not work for MCP server tools. A team that calls an MCP
server from its Gemini agent still has to rebuild the context. That is
the only way to change what the server exposes. Function tools, the other
kind, flip in one API call.
The same step also carries a new system instruction. Google lists three cases on its post. A session may need a new rule after the user signs in and their permissions change. A compliance agent may lock down what it answers once a sensitive topic appears. A tool set may have to shrink when a downstream service goes down. It can come back when the service recovers.
The price and the cache
Google's post says these calls carry no separate fee. The extra lines in
the system_input step are billed at the same rate as any other input
token. The rate is the normal input price for the model called. The prompt cache stays warm.
Every token before the new step is unchanged from the last turn. Google does not give a measured
number for cache savings or latency. A team that moves to the new step
should measure it on its own workload.
The announcement follows a pattern Google has used before. It lands in v1beta behind the Interactions API, on every Gemini 4 model, with no price flag. A team already calling that endpoint reaches the new step by sending a different input array. The post names no breaking change to the rest of the API.
An engineer builds a chat with rules that change over a long session. Before this step they rebuilt the full context every time a rule moved. The work was invisible on a cold start. It was expensive on a long chat. The new step keeps the cache until the session ends. It keeps the rule change on the server side. The model treats it the way it treats any other system instruction.
Source
Mid-conversation system instructions and tool changes in the Gemini API, Google blog
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.


