Overview
GoogleLLMService
provides integration with Google’s Gemini models, supporting streaming responses, function calling, and multimodal inputs. It includes specialized context handling for Google’s message format while maintaining compatibility with OpenAI-style contexts.
Gemini LLM API Reference
Pipecat’s API methods for Google Gemini integration
Example Implementation
Complete example with function calling
Gemini Documentation
Official Google Gemini API documentation and features
Google AI Studio
Access Gemini models and manage API keys
Installation
To use Google Gemini services, install the required dependencies:Prerequisites
Google Gemini Setup
Before using Google Gemini LLM services, you need:- Google Account: Sign up at Google AI Studio
- API Key: Generate a Gemini API key from AI Studio
- Model Selection: Choose from available Gemini models (Gemini 1.5 Pro, Flash, etc.)
Required Environment Variables
GOOGLE_API_KEY
: Your Google Gemini API key for authentication