Every models/genie-4 integration follows one strict four-step pattern: (1) create the interaction server-side (and mint an auth_tokens/... ephemeral token for browsers), (2) connect via WebRTC (browsers) or WebSocket (Python, Node.js, or headless RL loops), (3) emit one world_setup event followed by user_action key/camera controls and mid-session text inputs, and (4) terminate billing cleanly with await session.complete().
64 KB. Keep compressed 16:9 JPEG seed images under 48 KB so base64 encoding does not exceed the WebRTC frame limit.E, Q, R) are not hardcoded by the model; clients send mid-session text impulses repeated 10x at 150 ms intervals with a 2-second cooldown so the next world step reliably picks up the event.~5–9 seconds before frame 1 arrives after world_setup. Camera and keyboard steering respond in ~0.2–0.5s, while mid-session text shifts settle in ~1–2s. Visual coherence is strongest during the first 45–90 seconds up to the hard 120-second session ceiling.Google’s engineering guide warns that cinematic phrasing like "upbeat synth soundtrack" or "quick cuts to an aerial drone shot" breaks a live 24 fps camera stream: soundtrack words turn into physical in-world Foley noises, and camera cuts fracture spatial continuity.
Rule: Pulling the red lever... bound to a physical object or character rather than an abstract room boundary, place the trigger "far away from me" so it does not misfire at frame 1, and instruct NPCs with "who waits until a rule is triggered".E / Q / R action bindings whenever deterministic button triggers matter more than probabilistic world triggers."\"What wine would you recommend?\"") to trigger direct NPC voice replies inside the 48 kHz audio stream.| Tier / Metric | Concurrent Sessions | Requests / Day (RPD) | Estimated Cost & Token Rate |
|---|---|---|---|
| Free Tier | Not supported | Not supported | Paid-tier Gemini API key required |
| Tier 1 | 2 concurrent | 50 RPD | 240 tok/frame × 24 fps = 5,760 tok/s ($0.1008/s) |
| Tier 2 | 5 concurrent | 250 RPD | 30s interactive session ≈ 172,800 video tokens (~$3.02) |
| Tier 3 | 10 concurrent | 1,000 RPD | 60s session ≈ $6.05; 120s max session ≈ $12.10 |
Importantly, real-time in-session user_action keystrokes and mid-session input prompts do not consume separate RPM or RPD quota—only opening the session counts toward your daily RPD and concurrent session slots.