News · Google (Gemini API) · 2 min read
Event date: · Published:
Gemini API lets developers swap system instructions mid-conversation
Google's Interactions API added a system_input step in Public Preview, letting developers update instructions or tools mid-conversation while keeping the prompt cache valid.
Google announced on December 3, 2026, that the Gemini API's Interactions API (v1beta) added a new system_input step type in Public Preview, according to the Gemini API changelog. The step lets developers update system instructions or function tools partway through a conversation.
What changed
- The feature works with Gemini 4 model variants, Carbon, Neon and Hydrogen, on the Interactions API.
- Developers can send new system instructions or update function tools mid-conversation.
- The update does not invalidate the existing prompt cache.
- Only one
system_inputstep is allowed per turn, and it takes priority over user messages. - No separate fee applies for using the feature during Public Preview.
How developers implement it
To use the step, developers pass the prior turn's ID through previous_interaction_id and place system_input directly before user_input in the same turn. That sequencing is what allows the update to take effect while keeping the prior prompt cache valid.
What it means for builders
Previously, changing system instructions mid-session forced developers to break the prompt cache, adding cost and latency. Removing that tradeoff benefits long-running Gemini-based agents and chat apps that need to update instructions or tools without paying the added cost and latency of rebuilding the cache.
Sources
- Gemini API changelog (Google AI Studio, December 3, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.