Google has announced a public preview for changing system instructions or function tools during an ongoing Gemini API conversation through the Interactions API. Google’s release notes list Gemini 4 Carbon, Gemini 4 Neon, and Gemini 4 Hydrogen on v1beta. To add an instruction, pass the prior interaction ID as previous_interaction_id, then place system_input immediately before user_input. Keeping the top-level system_instruction unchanged follows Google’s documented pattern for keeping earlier turns eligible for cached-token rates; it does not guarantee a cache hit or savings. (Google’s announcement; release notes)
For cache eligibility, preserve the top-level instruction and tools list; keep function-call authorization in your backend.
Which models does the preview support?
Google’s release notes name Gemini 4 Carbon, Gemini 4 Neon, and Gemini 4 Hydrogen for the Interactions API on v1beta. The feature is a public preview announced on December 3, 2026. (Google AI Studio release notes; Google’s announcement)
How to add an instruction mid-conversation
At the next turn, pass the prior interaction’s ID in previous_interaction_id and put one system_input step directly before user_input. Leave the top-level system_instruction unchanged to follow the documented cache-preserving request pattern. Google says the new instruction remains active alongside the top-level instruction; if they conflict, the newer instruction takes precedence. (Google’s request guidance)
How to update function tools
For function-tool changes, keep the top-level tools list the same and put added_tools or removed_tools inside system_input. Resend the same top-level tools array on every request, including requests that use previous_interaction_id: Google’s function-calling documentation says tool declarations are not stored with the interaction. The described update mechanism supports function tools, not MCP server tools. If a single system_input both adds and removes tools, removals are processed first. (Google’s announcement; function-calling documentation)
Security and billing
The update controls steer model behavior; your application remains responsible for authorizing each function call on the backend. Google also advises keeping untrusted user or external content out of system_input. (Google’s security guidance)
Google says there is no separate fee for mid-conversation system instructions. Tokens in system_input use the model’s standard input-token rates, while earlier turns remain eligible for cached-token rates under the documented pattern. That eligibility does not promise a particular cache result, cost reduction, or latency improvement. (Google’s billing guidance)