Google added mid-conversation instructions to the Gemini API on December 3, 2026, letting developers change an agent’s system instructions or tools partway through a session without invalidating the prompt cache. The feature is in public preview through the Interactions API on the v1beta endpoint, and it works with all Gemini 4 models. For teams paying per token on long agent sessions, a rule change no longer forces the model to reprocess the whole history at the full input price.
How Gemini API mid-conversation instructions work
Until now, developers had two workarounds. They could send new rules as a user message, which keeps the cache but carries less weight than the top-level system instruction and lets users imitate it. Or they could rewrite the system instruction or tools, which invalidates the cache and sends the full history through the model again.
The new route is a system_input step. A developer passes the previous turn’s ID in previous_interaction_id and places a system_input step directly before user_input in the input array, while leaving the top-level system_instruction unchanged. Google says the step carries the same authority as the top-level instruction and takes precedence over user messages.
Each system_input stays active for the rest of the session. Rules on different topics apply together, and when a newer one conflicts with an earlier one, the model favors the most recent. Only one system_input step is allowed per turn.
Retrieving an interaction lists each system_input in order next to user_input and model_output, so a multi-turn trace can be audited step by step. The Interactions API itself became generally available in June 2026, according to Google’s developer documentation, where it is the recommended interface for new projects.
What the cache is worth on Gemini 4 Neon
Google lists no separate fee for mid-conversation instructions. Tokens inside system_input steps bill at the standard input rate for the model being called, and earlier turns stay eligible for cached-token rates when rules or tools change.
On Gemini 4 Neon, Google’s pricing page lists $3.00 per million input tokens and $0.15 per million for context caching. For a 100,000-token history, a full reprocess costs $0.30 at the input rate, against $0.015 at the cached rate, before output tokens. The $0.285 difference per turn is small in one chat and adds up across thousands of long agent sessions.
Neon is not available on the free tier, so the savings apply only to paid usage. This is the second Gemini API change in under two weeks aimed at token spend, after the file slicing controls Google announced on November 23.
Tool updates cover function tools only
Tool changes use added_tools and removed_tools inside the same system_input step, with the top-level tools list kept identical on every turn. Changing that top-level list between turns breaks the cache, which is why Google recommends leaving it alone.
Only function tools are supported for now. MCP server tools are not. When one step carries both fields, the API processes removed_tools first, so a developer can replace a tool definition in place. Google’s example removes issue_refund, adds create_escalation_ticket and tells the model that refunds are paused during a billing review.
Google lists five uses for the feature:
- Applying rules found midway, such as workspace settings, account entitlements or spending limits
- Repeating formatting, tone or policy rules deep into a long session
- Enabling write tools after authentication or plan approval, then removing them for read-only review
- Disabling a tool when a downstream service goes offline, then restoring it
- Starting with a small tool set and adding more as the task needs them
Backend authorization still applies
Google describes system_input, added_tools and removed_tools as steering for the model and orchestration controls. Applications should still authorize every function call on the backend before executing it, and keep untrusted external or end-user content out of system_input.
Support for Gemini Enterprise Agent Platform is listed as coming soon, so teams on that platform cannot use the feature yet. Before moving a production agent over, confirm that its tools are function tools and that it calls a Gemini 4 model through the v1beta Interactions API.
Keep reading
- Gemini 4 Live cuts first audio to 0.39 seconds, and Live Translate starts in under two seconds
- Google’s AI Mode can now read your Wallet spending, with Drive and Gemini to follow
- Watch Duty’s Gemini radio tool flags fire dispatches in under 30 seconds
- Google’s AI-first Android will be judged on trust, not on how well Gemini taps
- Samsung’s Camera app code shows a Vision mode that hands questions to Gemini





