Explore Gemini Multimodal Live API via WebSockets
mainThe Gemini Multimodal Live API is served over secure WebSockets. While Python developers are encouraged to use the official Google GenAI SDK to access these capabilities, the cookbook provides low-level WebSocket examples to help you understand the underlying protocol.
Available resources include:
- Local Python Script: A script that uses
websocketsto support streaming audio in and audio + video out from your local machine. - Bash Example: A shell script using
websocatto interact with the Live API. - Google Colab Notebooks: Interactive notebooks for exploring the Live API and implementing tool use via WebSockets.