Gemini Live API - Policy Violation 1008
Describe the bug gemini-live-2.5-flash-preview-native-audio-09-2025 which is in Public Preview available through vertexai is erroring out on usage.
09-2025 tag is erroring out, however I am able to use gemini-live-2.5-flash-preview-native-audio without issues, wanted to switch to the latest one since Discontinuation date: October 18, 2025 is mentioned in the documentation.
This is the error I encountered.
websockets.exceptions.ConnectionClosedError: received 1008 (policy violation) Publisher Model `projects/<PROJECT_NMAE>/locations/global/publishers/google/models/gemini-live-2.5-flash-preview-na; then sent 1008 (policy violation) Publisher Model `projects/<PROJECT_NAME>/locations/global/publishers/google/models/gemini-live-2.5-flash-preview-na
To Reproduce
from google.adk.agents import Agent
root_agent = Agent(
name="live_agent",
model="gemini-live-2.5-flash-preview-native-audio-09-2025",
description="A friendly conversational agent",
instruction=get_instruction()
)
Expected behavior I should be able to access the LLM request without the policy violation, since I am using GOOGLE_GENAI_USE_VERTEXAI=True, and it's publicly available.
Desktop
- OS: [Linux]
- Python version(python -V): 3.12
- ADK version(pip show google-adk): 1.16.0
Model Information:
- Are you using LiteLLM: No
- Which model is being used: gemini-live-2.5-flash-preview-native-audio-09-2025
Additional context I understand that this might not be relevant to google-adk and an issue on the vertexai usage. Adding it here, as the community might experience it too.
I just tested with my project and it works:
root_agent = Agent( # model='gemini-2.0-flash-live-preview-04-09', # for Vertex project model='gemini-live-2.5-flash-preview-native-audio-09-2025', # vertex # model='gemini-2.5-flash-native-audio-preview-09-2025', # for AI studio key name='hello_world_agent', description=( 'hello world agent that can roll a dice of 8 sides and check prime' ' numbers.' ),
I suggest you also test with vanillar gen ai sdk's live api to see if you experience the same. Or raise an issue with the API team.
https://github.com/kazunori279/adk-streaming-test and latest report: https://github.com/kazunori279/adk-streaming-test/blob/main/test_report.md.
I will close this now as it's not issue with ADK. If you confirmed it's not GenAI SDK issue or API issue, please raise a new ticket or re-open.
I encountered the same problem, how can I fix it?
I encountered the same problem, how can I fix it?
Could you share minimal code to reproduce it and the api variant(Vertex or GenAI) you used?
I encountered the same problem, how can I fix it?
Could you share minimal code to reproduce it and the api variant(Vertex or GenAI) you used?
I use this code, add gemini-live-2.5-flash and gemini-live-2.5-flash-preview-native-audio-09-2025 to Vertex, this is my test result https://github.com/kazunori279/adk-streaming-test and latest report: https://github.com/kazunori279/adk-streaming-test/blob/main/test_report.md.
### Vertex AI
**gemini-2.0-flash-exp**:
- Text: ❌ FAIL (retries: 2) - Reason: Exception: received 1007 (invalid frame payload data) gemini-2.0-flash-exp is not supported in the live api.; then sent 1007 (invalid frame payload data) gemini-2.0-flash-exp is not supported in the live api.
- Voice: ❌ FAIL (retries: 2) - Reason: Exception: received 1007 (invalid frame payload data) gemini-2.0-flash-exp is not supported in the live api.; then sent 1007 (invalid frame payload data) gemini-2.0-flash-exp is not supported in the live api.
**gemini-live-2.5-flash**:
- Text: ✅ PASS
- Voice: ✅ PASS
**gemini-live-2.5-flash-preview-native-audio**:
- Text (audio transcript): ✅ PASS
- Voice: ✅ PASS
**gemini-live-2.5-flash-preview-native-audio-09-17**:
- Text (audio transcript): ❌ FAIL (retries: 2) - Reason: Exception: received 1008 (policy violation) Publisher Model `projects/xxx; then sent 1008 (policy violation) Publisher Model `projects/xxx
- Voice: ❌ FAIL (retries: 2) - Reason: Exception: received 1008 (policy violation) Publisher Model `xxx; then sent 1008 (policy violation) Publisher Model `projects/xxx
**gemini-live-2.5-flash-preview-native-audio-09-2025**:
- Text (audio transcript): ❌ FAIL (retries: 2) - Reason: Exception: received 1008 (policy violation) Publisher Model `projects/xxx; then sent 1008 (policy violation) Publisher Model `projects/xx
- Voice: ❌ FAIL (retries: 2) - Reason: Exception: received 1008 (policy violation) Publisher Model `xxx; then sent 1008 (policy violation) Publisher Model `projects/xxx
In this page: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/live-api#supported-models gemini-live-2.5-flash and gemini-live-2.5-flash-preview-native-audio-09-2025 now is avaliable.
@wen1q84 as mentioned on this report, it contains the results for the deprecated models as well (such as gemini-2.0-flash-exp, for keep checking status). Please use the supported models on the official docs.
Closing this as it's not an ADK issue. Please use the latest supported model.
Why are you closing this issue!? According to the document gemini-live-2.5-flash-preview-native-audio-09-2025 is active and available. And according to the test seems : gemini-live-2.5-flash-preview-native-audio-09-2025:
- Text (audio transcript): ❌ FAIL (retries: 2) - Reason: Exception: received 1008 (policy violation) Publisher Model
projects/xxx; then sent 1008 (policy violation) Publisher Modelprojects/xx - Voice: ❌ FAIL (retries: 2) - Reason: Exception: received 1008 (policy violation) Publisher Model
xxx; then sent 1008 (policy violation) Publisher Modelprojects/xxx
Actually it truncates the name of the agent as following: models/gemini-live-2.5-flash-preview-na;
Where "gemini-live-2.5-flash-preview-na" does not exist.
@me-her have you found a solution?
@kazunori279 to help explain the report.
Why are you closing this issue!? According to the document gemini-live-2.5-flash-preview-native-audio-09-2025 is active and available. And according to the test seems : gemini-live-2.5-flash-preview-native-audio-09-2025:
- Text (audio transcript): ❌ FAIL (retries: 2) - Reason: Exception: received 1008 (policy violation) Publisher Model
projects/xxx; then sent 1008 (policy violation) Publisher Modelprojects/xx- Voice: ❌ FAIL (retries: 2) - Reason: Exception: received 1008 (policy violation) Publisher Model
xxx; then sent 1008 (policy violation) Publisher Modelprojects/xxxActually it truncates the name of the agent as following: models/gemini-live-2.5-flash-preview-na;
Where "gemini-live-2.5-flash-preview-na" does not exist.
@me-her have you found a solution?
the error message of Gemini Live API is not accurate. For this, you have to check with the Gemini Live API team.
@ihabbishara pls check the latest report. https://github.com/kazunori279/adk-streaming-test/blob/main/test_report.md
Google AI Studio
gemini-2.0-flash-live-001: Text: ✅ PASS Voice: ✅ PASS
gemini-live-2.5-flash-preview: Text: ✅ PASS Voice: ✅ PASS
gemini-2.5-flash-native-audio-preview-09-2025: Text (audio transcript): ✅ PASS Voice: ✅ PASS
Vertex AI
gemini-live-2.5-flash-preview-native-audio: Text (audio transcript): ✅ PASS Voice: ✅ PASS
gemini-live-2.5-flash-preview-native-audio-09-17: Text (audio transcript): ✅ PASS Voice: ✅ PASS