Rate this page:

LiveAPIClientParameters

Gemini.LiveAPIClient parameters. Can be passed as arguments to the Gemini.createLiveAPIClient method.

Props

apiKey

Copy URL
apiKey: 

string

The API key for the Gemini Live API.

backend

Copy URL
backend: 

Backend

Optional. Backend is the GenAI backend to use for the client. The default value is Gemini.Backend.GEMINI_API.

connectConfig

Copy URL
connectConfig: 

Object

Optional. Session config for the API connection. https://pkg.go.dev/google.golang.org/genai@v1.2.0#LiveConnectConfig

model

Copy URL
model: 

string

|

undefined

Optional. The model to use for Gemini Live API processing. The default value is gemini-2.0-flash-exp.

onWebSocketClose

Copy URL
onWebSocketClose: 

(event: WebSocketEvents.CLOSE) => void

|

undefined

Optional. A callback function that is called when the WebSocket connection is closed.