- AI tools
- developer tools
Google lets developers change AI instructions mid-conversation without losing cached savings
Google announced a new preview feature for its Gemini API that lets developers update a chatbot's instructions or available tools in the middle of an ongoing conversation.
·1 min read·Apply

Google announced a new preview feature for its Gemini API that lets developers update a chatbot's instructions or available tools in the middle of an ongoing conversation. Previously, changing how an AI assistant behaves, such as adjusting its tone or giving it new abilities, typically meant rewriting the system instructions from scratch, which could break a performance trick called token caching that keeps earlier conversation parts cheap to process. With this update, developers can insert a step called system_input that changes instructions or adds and removes function tools, while earlier turns in the conversation remain eligible for those cheaper cached rates. Google said there is no extra fee for this feature, since tokens used in these mid-conversation updates are billed at the same standard input rate as normal text. The preview is available now across all of Google's Gemini 4 models through the API's v1beta endpoint, giving developers a more flexible and affordable way to build adaptive AI agents.
Why it matters
Cheaper, more flexible instruction updates make it easier to build AI agents that adapt their behavior without rebuilding conversations from scratch.