Hello,
I’m trying to use the Gemini Developer API with a brand new API key created in Google AI Studio.
Environment
- Windows 11
- Python 3.13
- google-genai 2.20.0
- requests latest
The API key is an AQ.* authorization key created today in AI Studio.
I tested:
- Official google-genai SDK
from google import genai
client = genai.Client(api_key=API_KEY)
list(client.models.list())
Result:
401 UNAUTHENTICATED
ACCESS_TOKEN_TYPE_UNSUPPORTED
- Plain REST request
GET https://generativelanguage.googleapis.com/v1beta/models?key=API_KEY
Result:
401 UNAUTHENTICATED
ACCESS_TOKEN_TYPE_UNSUPPORTED
I also tested:
- Brand new Google account
- Brand new AI Studio project
- Brand new API key
- Different Python virtual environment
Exactly the same result.
Is there any known issue with AQ authorization keys or project provisioning?
Thank you.