原文指出 Genie 4 关闭页面后服务器仍计费,提供了通过 API 调用结束会话以避免额外成本的具体方法。
Closing the tab on a Genie 4 demo can leave you paying for a world nobody is watching.
Google opened its interactive world model to developers today on the paid tier of the Gemini API.
Google's session guide says closing the tab disconnects the player while the server can keep generating frames. Leaving Python's async with block also disconnects the client.
At the standard rate, a minute of generated video at 24 frames per second costs about $6.05, audio included.
I'd wire the Exit button to call await session.complete() before closing the connection. In the browser test, I'd click Exit and wait for the server to send interaction.completed. A test that passes when the video disappears can miss the bug.
来源:Marcel Jiron (MarMarLabs) · x.com