**Title:** Gemini AQ API key returns 401 ACCESS_TOKEN_TYPE_UNSUPPORTED Hello Google AI team, I am building a personal Python voice assistant using Gemini Live API on macOS. I created a new API key in Google AI Studio for a newly created project. The ke

Title: Gemini AQ API key returns 401 ACCESS_TOKEN_TYPE_UNSUPPORTED

Hello Google AI team,

I am building a personal Python voice assistant using Gemini Live API on macOS.

I created a new API key in Google AI Studio for a newly created project. The key begins with AQ. and is loaded into the GEMINI_API_KEY environment variable.

Both the official Google GenAI Python SDK and a direct REST request using curl return the following error:

  • HTTP status: 401 UNAUTHENTICATED

  • Reason: ACCESS_TOKEN_TYPE_UNSUPPORTED

  • Message: API key not valid. Please pass a valid API key.

Environment:

  • macOS, Apple Silicon

  • Python 3.12

  • google-genai SDK

  • Newly created Google AI Studio project and AQ-format key

Could you please help determine why my new authorization key is rejected?

Project ID/number: [insert your new project’s ID or number]

I have not included the API key for security reasons.

Thank you.

Hello @Farhod ,

  1. Could you please try creating an API key in a new project within the Google AI Studio UI to check whether the issue is specific to your current project.

  2. If the error persists, please share the full JSON error response (including all details and metadata fields) along with your Google Cloud Project ID or Project Number so we can investigate further.