My account can no longer generate standard AIza-format API keys. Every key I create
(across projects) is issued in the new AQ. format, and these tokens fail against the
Generative Language REST API with:
401 UNAUTHENTICATED — "Request had invalid authentication credentials.
Expected OAuth 2 access token, login cookie or other valid authentication credential."
reason: ACCESS_TOKEN_TYPE_UNSUPPORTED
method: google.ai.generativelanguage.v1beta.GenerativeService.GenerateContent
Affected project:
- Project name: cutevideo-2
- Project number: 4827898502..
I believe this restriction was applied automatically after a past key-exposure flag.
I have since:
- Deleted/revoked all old API keys in AI Studio and the Cloud Console,
- Moved all secrets to a local .env file (environment variables) that is gitignored
and was never committed to version control, - Verified no keys remain exposed in any public repository or paste.
Could you please review my account and restore the ability to generate standard
AIza-format API keys? Happy to provide any additional information needed.
Thank you.