Optional
apiGoogle Gemini API key. If not provided, will attempt to read from GOOGLE_API_KEY environment variable
Optional
apiAPI version to use
Optional
candidateThe number of candidate responses to generate
Optional
connThe configuration for the API connection
Optional
contextThe configuration for context window compression
Optional
enableWhether to enable affective dialog
Optional
frequencyThe frequency penalty for response generation
Optional
geminiGemini-specific tools to use for the session
Optional
httpHTTP options for API requests
Optional
imageThe configuration for image encoding
Optional
inputThe configuration for input audio transcription
Optional
instructions?: stringInitial system instructions for the model
Optional
language?: stringThe language (BCP-47 Code) to use for the API See https://ai.google.dev/gemini-api/docs/live#supported-languages
Optional
location?: stringThe location to use for the API (for VertexAI)
Optional
maxMaximum number of tokens in the response
Optional
modalities?: Modality[]Modalities to use, such as [Modality.TEXT, Modality.AUDIO]
Optional
model?: stringThe name of the model to use
Optional
outputThe configuration for output audio transcription
Optional
presenceThe presence penalty for response generation
Optional
proactivity?: booleanWhether to enable proactive audio
Optional
project?: stringThe project ID to use for the API (for VertexAI)
Optional
realtimeThe configuration for realtime input
Optional
temperature?: numberSampling temperature for response generation
Optional
topK?: numberThe top-k value for response generation
Optional
topP?: numberThe top-p value for response generation
Optional
vertexai?: booleanWhether to use VertexAI for the API
Optional
voice?: stringVoice setting for audio outputs
Google Realtime Model for real-time voice conversations with Gemini models