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.