Traditional AI assistants require the human to recognize a problem, articulate a question, and wait for an answer. With Google Gen AI SDK v3.1.0's proactiveVideo capability, the assistant observes the world continuously and speaks up autonomously only when something relevant, dangerous, or noteworthy occurs.
Before SDK v3.1.0, developers building real-time vision agents (such as smart glasses, robotic heads, or surgical assistants) had to implement fragile client-side heuristics: running local lightweight object detectors to guess when to send a prompt, or polling Gemini every few seconds with canned phrases like "Look at the camera and tell me what you see."
This approach suffered from two fatal flaws: excessive latency (compounding detection + prompt + audio synthesis) and constant, annoying chatter when nothing changed.
| Dimension | Legacy Polling / Reactive Pattern | SDK v3.1.0 Proactive Video Pattern |
|---|---|---|
| Trigger Mechanism | User speech or synthetic periodic timer ("What do you see now?") | DeepMind neural salience classifier evaluating frame delta embeddings natively |
| Spoken Latency | 1,200ms โ 2,500ms (client detection → audio prompt → inference → response) | 280ms โ 420ms (direct server-side interruption via WebSocket duplex) |
| Silence Preservation | Poor; timers force either constant narration or complex custom thresholding | Native; model remains completely silent until a conversational threshold is crossed |
| Client Overhead | Requires local ONNX/TensorFlow Lite models running on mobile/edge CPU | Zero local ML required; raw JPEG/WebP frames piped straight to Gemini Live |
While proactiveVideo: true is revolutionary, it introduces serious operational cost considerations. In the Live API, each video frame is compressed into visual tokens (typically 258 tokens per tile at 768px resolution). If a developer naively streams raw 30fps webcam video with proactive generation enabled, the session will consume:
30 frames/sec ร 258 tokens/frame = 7,740 tokens/second (~464,400 input tokens/minute)
At standard Gemini API pricing, a 10-minute continuous 30fps session could burn through millions of tokens in moments. SDK v3.1.0 builders must implement intelligent cadence tiering:
The promotion of gemini-omni-1.2-flash to the default model for gemini-api video is not merely a version bump. Omni 1.2 Flash represents Google's native audio-visual architecture optimized for high-throughput video processing:
[02:14.45 - 02:18.10]) and pixel coordinates for visual events.By adding gemini-4-carbon to the Model enum in both TypeScript and Python, SDK v3.1.0 allows architects to build multi-tier orchestration pipelines:
gemini-omni-1.2-flash or gemini-3.8-flash runs on the Live API with proactiveVideo: true to monitor real-time video streams.gemini-4-carbon with thinking_level: "high".