Skip to content

received 1008 (policy violation) <Live Model Name> is not found for API version v1alpha, or is not supported for bidiGenerateContent #3964

@ravi-incred

Description

@ravi-incred

Describe the bug

I had built an ADK Agent using Google Gemini LIVE Models for audio-to-audio conversation and suddenly my ADK Agent stoped working and later reading the server logs I found out this message:

Connection closed: received 1008 (policy violation) models/gemini-live-2.5-flash-preview is not found for API version v1alpha, or is not supported for bidiGenerateContent; then sent 1008 (policy violation) models/gemini-live-2.5-flash-native-audio is not found for API version v1alpha, or is not supported for bidiGenerateContent.
WebSocket error: received 1008 (policy violation) models/gemini-live-2.5-flash-preview is not found for API version v1alpha, or is not supported for bidiGenerateContent; then sent 1008 (policy violation) models/gemini-live-2.5-flash-native-audio is not found for API version v1alpha, or is not supported for bidiGenerateContent

Note - I am using Google ADK with Google AI Studio setup
my .env look like this

GOOGLE_GENAI_USE_VERTEXAI=FALSE
GOOGLE_API_KEY=<KEY>

Additional Context

I tried 3 models hoping that maybe its a model issue

  • models/gemini-live-2.5-flash-native-audio
  • models/gemini-live-2.5-flash-preview
  • models/gemini-live-2.5-flash
    But got the same response
Connection closed: received 1008 (policy violation) models/gemini-live-2.5-flash-native-audio is not found for API version v1alpha, or is not supported for bidiGenerateContent; then sent 1008 (policy violation) models/gemini-live-2.5-flash-native-audio is not found for API version v1alpha, or is not supported for bidiGenerateContent.
WebSocket error: received 1008 (policy violation) models/gemini-live-2.5-flash-native-audio is not found for API version v1alpha, or is not supported for bidiGenerateContent; then sent 1008 (policy violation) models/gemini-live-2.5-flash-native-audio is not found for API version v1alpha, or is not supported for bidiGenerateContent


Connection closed: received 1008 (policy violation) models/gemini-live-2.5-flash-preview is not found for API version v1alpha, or is not supported for bidiGenerateContent; then sent 1008 (policy violation) models/gemini-live-2.5-flash-native-audio is not found for API version v1alpha, or is not supported for bidiGenerateContent.
WebSocket error: received 1008 (policy violation) models/gemini-live-2.5-flash-preview is not found for API version v1alpha, or is not supported for bidiGenerateContent; then sent 1008 (policy violation) models/gemini-live-2.5-flash-native-audio is not found for API version v1alpha, or is not supported for bidiGenerateContent

onnection closed: received 1008 (policy violation) models/gemini-live-2.5-flash is not found for API version v1alpha, or is not supported for bidiGenerateContent; then sent 1008 (policy violation) models/gemini-live-2.5-flash-native-audio is not found for API version v1alpha, or is not supported for bidiGenerateContent.
WebSocket error: received 1008 (policy violation) models/gemini-live-2.5-flash is not found for API version v1alpha, or is not supported for bidiGenerateContent; then sent 1008 (policy violation) models/gemini-live-2.5-flash-native-audio is not found for API version v1alpha, or is not supported for bidiGenerateContent

Is there any issue with Google AI Studio API ?? Do I need to migrate to Google Vertex AI Studio?

Metadata

Metadata

Assignees

Labels

answered[Status] This issue has been answered by the maintainerlive[Component] This issue is related to live, voice and video chat

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions