Gemini API mid-conversation instructions arrived in public preview on 3 December 2026, letting developers change system instructions or tools partway through a session while keeping earlier turns cached, with no separate fee.
How Gemini API mid-conversation instructions work
- The Interactions API accepts a
system_inputstep placed directly before the user’s input. - You pass the previous turn’s ID and keep the top-level system instruction unchanged.
- The new step carries the same authority as the top-level instruction and takes precedence over user messages.
- If a newer step conflicts with an older one, the model favours the most recent.
- Only one
system_inputstep is allowed per turn.
What changes for tools
added_toolsandremoved_toolschange which functions the model can call.- Google recommends keeping the top-level tool list the same on every turn.
- When both fields are sent together, removals are processed first.
- Only function tools are supported this way, not MCP server tools.
Cost, models and limits
- Tokens in
system_inputsteps are billed at the model’s standard input rate. - The preview covers all Gemini 4 models through the v1beta endpoint.
- Support for Gemini Enterprise Agent Platform is listed as coming soon.
Checklist before you use it
- Authorise every function call on your backend. Removing a tool steers the model; it is not an access control.
- Never put end-user or other untrusted content into
system_input. - Add a short note when you remove a tool, so the model can explain why an action is unavailable.
- Treat it as preview software and test before using it in production.
What this means for you: Indian teams building long-running agents, such as support bots, can switch permissions after login or approval without paying to reprocess the whole history. Previously, rewriting the instruction or tool list broke the cache.
Gemini API mid-conversation instructions FAQ
Do Gemini API mid-conversation instructions cost extra?
There is no separate fee. Their tokens are billed at standard input rates for the model you call.
Which models support the feature?
All Gemini 4 models, in public preview through the Interactions API.
Can it add or remove MCP tools?
No. Only function tools can be updated with added_tools and removed_tools.
Sources
Google – Introducing mid-conversation instructions in the Gemini API – 3 December 2026
Related: Gemini API File Slicing: Pay Only for Pages You Inspect
Last updated: 4 December 2026



