Account created June 2026. AIza keys are no longer generated for my account — only AQ. keys. Can you check if the generativelanguage.googleapis.com endpoint is enabled for auth keys on my account/project?
Did you link the API key with your GCP project? You can check the key that was created from the GCP console; by right, it should be granted with the Gemini API only. I cannot reproduce your issue; maybe it is related to your account?
Key type: Auth key (AQ. prefix) — this is the only type AI Studio will issue for new keys on this account; regenerating the key multiple times has not produced a Standard/AIza key.
What I’ve tried, all failing identically with the same error:
client.models.generate_content(model="gemini-2.5-flash", contents="Hello") via the google-genai Python SDK
client.interactions.create(model="gemini-3.5-flash", input="Hello") via the same SDK (the newer Interactions API)
Confirmed pip install --upgrade google-genai to the latest SDK version before retesting
Regenerated the API key 3 times — always issued as AQ. prefix, never AIza
Confirmed via AI Studio that the Generative Language API is enabled on the project
Exact error (same reason code across all attempts):