rich-dusk-37560
10/06/2025, 8:10 PMenable_affective_dialog=True, the code automatically tried to use v1alpha, but that API endpoint returned 404, meaning:
• Your API key doesn't have access to the alpha API
• The alpha API may not be publicly available yet
• You may need to request access from Google
The default stable API works without these parameters, which is why commenting them out fixed the connection issue.tall-airline-16756
10/06/2025, 8:10 PMtall-airline-16756
10/06/2025, 8:10 PMrich-dusk-37560
10/06/2025, 8:17 PMtall-airline-16756
10/06/2025, 8:18 PMenable_affective_dialog, need the v1alpha API version endpoint, which isn’t the default setting. When you enable this feature, the LiveKit Google plugin kindly switches the api_version to v1alpha automatically—unless you’ve already specified a version.
To help you get this sorted out, here are a few steps you can follow:
1. Use a compatible model: Please make sure you're using the gemini-2.5-flash-native-audio-preview-09-2025 model, as it supports preview features like affective dialog and proactivity.
2. Verify your API key setup: Double-check that your Gemini API key is properly configured, either through the GOOGLE_API_KEY environment variable or passed directly to the RealtimeModel constructor.
3. Avoid overriding `api_version`: It’s best not to manually set the api_version parameter, since that can stop the plugin from switching to v1alpha when those special features are turned on.
Here’s an example of a working configuration that you might find helpful:
llm=google.beta.realtime.RealtimeModel(
model="gemini-2.5-flash-native-audio-preview-09-2025",
proactivity=True,
enable_affective_dialog=True
)
This setup ensures the plugin uses the right v1alpha endpoint for those preview features, while keeping your authentication and model compatibility just right.
Sources: livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/realtime... | plugins/google/src/beta/realtime/realtime_api.ts | realtime/gemini_live_vision.py | Gemini Live API plugin | LiveKit Docsrich-dusk-37560
10/06/2025, 8:21 PMtall-airline-16756
10/06/2025, 8:21 PMv1alpha API version endpoint, which is needed for features like enable_affective_dialog, might not be accessible with your current setup. Don’t worry, I’m here to help you through this! Here are some friendly steps to get this sorted out:
1. Use the correct model: Please double-check that you’re using the exact model name gemini-2.5-flash-native-audio-preview-09-2025. This model supports the preview features you’re trying to use.
2. Set the API version: Make sure to explicitly set api_version="v1alpha" in your client configuration if it’s not being picked up automatically.
3. Verify API key access: It’s important to confirm that your Google Cloud project has access to the Gemini Live API preview features and that your API key is authorized for this.
4. Set authentication: You can use the GOOGLE_API_KEY environment variable or pass the key directly to the RealtimeModel constructor. If you’re using Vertex AI, please ensure GOOGLE_APPLICATION_CREDENTIALS points to your service account key file.
5. Check network policies: Sometimes firewalls or network restrictions can block WebSocket connections to Google’s API endpoints, so it’s worth verifying that there’s nothing in your network setup causing this.
If you’ve tried all these steps and the issue is still there, it might help to double-check your access to the Gemini Live API preview program through Google’s developer console. And of course, don’t hesitate to reach out to LiveKit and Google support—they’re there to help you too!
Sources: livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/stt.py | plugins/google/src/beta/realtime/realtime_api.ts | realtime/gemini_realtime_api.py