Google Gemini Enables Interactions API: Rebuilding Intelligent Agents and Ending “Phantom Billing”

robot
Abstract generation in progress
ME AI Message, according to Beating Monitoring, Google has officially set the Interactions API as the default interface in Gemini API and Google AI Studio, with the original generateContent interface entering maintenance mode. The new interface will package multi-turn conversations, model reasoning, tool calls, and execution results together, and store them as Interaction resources on the server side. The most direct benefit is saving money and effort. Since the conversation state is automatically saved on the server, during multi-turn chats, the client only needs to send the previous interaction ID, allowing Google to automatically reuse and improve cache hit rates, significantly reducing Token costs. For time-consuming tasks like code sandbox execution or deep searches, developers can enable background mode to let the work run asynchronously in the background. Additionally, intermediate steps such as model reasoning and tool calls are fully visible, making it easier to troubleshoot bugs in real-time during agent operation. The underlying restructuring directly addressed the billing crisis that emerged in early June. At that time, after manually deleting caches, due to cloud synchronization delays, deactivated resources still ran in the background, causing some accounts to be unexpectedly charged nearly 27k RMB within 12 hours. Moreover, when models perform web retrieval, they can fall into reasoning dead loops, and in a "zero output" state with no responses, they still incur charges based on 64k tokens. The Interactions API replaces manual cache deletion with server-hosted "implicit caching" and allows developers to monitor and abort thought steps, providing a safer billing safeguard. Since Google's future cutting-edge models and agent features (such as Deep Research) will only support the Interactions API, the official recommends that developers complete adaptation as soon as possible. (Source: BlockBeats)
View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • Comment
  • Repost
  • Share
Comment
Add a comment
Add a comment
No comments