Gemini Live API - Vanilla JS Example

Vanilla JavaScript implementation with audio, video, and text streaming

API Configuration

Connection Settings

Connection will be established directly to the Gemini API using an ephemeral token from the backend.



Gemini Behavior




Controls randomness (0.0-2.0]. Higher = more creative/diverse, Lower = more predictable/focused

Custom Tools
(Display browser alerts)
(Inject CSS styles into the page)

Transcription Settings

Activity Detection Settings







Not connected

Media Streaming




80%

Chat

Connect to Gemini to start chatting

Debug Info

Ready to connect...