Service eligibility and regional restrictions
PuppyIP serves only compliant overseas businesses and their authorized personnel. Proxy services are not available in mainland China. The service may only be used for lawful business activities outside mainland China. Use of this service within mainland China is prohibited.
Hosting a proxy IP or server overseas does not change these restrictions. The service must not be provided to end users in mainland China through relaying, forwarding, sharing or resale. Before use, read the Terms of Service.
Key Takeaways
- Standard Genie 4 video output is billed at 240 tokens per emitted frame, with 48 kHz stereo audio included.
- For a normal exit, call complete() and read the terminal interaction.completed event.
- Browser and server clients can use different transports. Keep the interaction ID, stop action, terminal state and observed usage together.
How is Genie 4 video priced?
Google marked genie-4 generally available on November 19, 2026, through the paid Interactions API v1beta. It produces a live 720p, 16:9 stream at a nominal 24 fps with synchronized stereo audio.
Google's standard price is $17.50 per million video output tokens. At 240 tokens per frame and 24 fps, video alone comes to about $0.1008 per second, or $3.02 for 30 seconds of continuous output. Actual billing depends on emitted frames and separately priced text input and output.
What should a normal exit wait for?
When the user selects End, call complete() while the session is available. Google says it sends interaction.complete, ends server-side generation and token billing, and emits interaction.completed on the receive() stream. Use the terminal event to update the session state.
If the UI closes first, the network drops or the client misses the terminal event, record the interaction as awaiting confirmation. Keep the interaction ID, request time, stop action and last observed event so you can reconcile errors and usage against the same session.
When do you use cancel(), and what happens if you detach?
Use cancel() to abort generation immediately through interaction.cancel. For a normal exit use complete() and handle the resulting events as documented. Once the user stops a session, you can disable input and update the UI when the completion or cancellation result arrives.
detach() or leaving Python's async with closes the client connection. Google says not to rely on detaching to pause, resume or stop billing for Genie 4. Build the explicit server-side stop call into your exit flow and record the terminal state.
What should you check in WebRTC and WebSocket clients?
Google recommends WebRTC for browsers. The backend can create the interaction and mint a single-session token, keeping the long-lived API key on the backend. Python, Node.js and browsers can also use WebSocket. Test the termination flow and interaction ID logging on either transport.
Run a short session and record creation, first frame, the End action and the terminal event. Keep UI duration separate from actual video output. Before shipping, check the documented maximum session length of 120 seconds and test network latency from the target region.
Sources
Frequently Asked Questions
How can I tell whether a session ended if I only closed the tab?
Check whether the interaction sent complete() or cancel() and review the last observed event. Use server results and actual usage to confirm generation and billing state.
Will 30 seconds always cost $3.02?
That is an estimate for video emitted continuously at 24 fps under standard pricing. The exact video cost varies with emitted frames, and text input and output are priced separately.
Is audio billed as a separate output?
Google includes synchronized 48 kHz stereo audio in the Genie 4 video output rate.