Google Adds Mid-Conversation Instructions to Gemini API, Preserving Cache
Reported by explainx.ai, Google AI, Unite.AI and 3 more outlets7 sources ↓
Google opened a preview on December 3, 2026, for changing Gemini API instructions and function tools mid-session while keeping earlier prompt tokens cached.
Key points
- New system_input steps have the same authority as the top-level system instruction and take precedence over user messages
- The preview uses the v1beta Interactions API and supports gemini-4-carbon, gemini-4-neon and gemini-4-hydrogen
- The feature supports custom function tools, but not MCP servers or built-in tools
- Google says applications must authorize function calls on their backends; tool updates do not enforce permissions
Sources
- explainx.aiRead ↗Gemini API Mid-Chat Rules: system_input Keeps Cache
- Google AIRead ↗Introducing mid-conversation instructions in the Gemini API
- Google AIRead ↗Introducing mid-conversation instructions in the Gemini API
- Unite.AIRead ↗Google Adds Mid-Conversation Instructions to Gemini API, Preserving Cache
- ecosistemastartupRead ↗Gemini API: instrucciones en pleno chat sin romper caché
Details
Each system_input step is added to the conversation history and remains active alongside the original system instruction. Earlier steps are not removed; when rules conflict, the model favors the newest one. Google recommends explicitly explaining a reversal and telling the model to ignore the earlier rule.
Developers pass the previous interaction ID and place system_input immediately before user_input, while keeping the top-level system instruction and tools list unchanged. Tool availability can be changed with added_tools and removed_tools; when both are supplied, removals are processed first. The changes persist until another update.
The preview is limited to model interactions, not generateContent requests or agent interactions. System_input tokens are billed at standard input-token rates, while earlier turns remain eligible for cached-token rates; Google says there is no separate fee for the feature.
Written from coverage as of
Images
- Google AI
- Unite.AI
- ecosistemastartup
- The Next Web
Stocks in this story
Change since open: 3 Dec 2026, 9:00 AM to 9:28 PM
Last refresh