Hello Google AI team,
I’m reporting a repeatable authentication failure with newly issued AI Studio authorization (AQ.) keys. Every request, across all endpoints and the official SDK, returns 401 ACCESS_TOKEN_TYPE_UNSUPPORTED.
**Environment**
- Account: free tier, personal Gmail, Google AI Studio
- Region: US (unsupported-region check passed; onboarding completed)
- Project: gemini-myproject (project number 4788606676..), created fresh in AI Studio UI on 2026-11-04
- Key: created in AI Studio UI, AQ. format (`AQ.Ab8RN6…`), restricted to Gemini API by default
- Key length verified: 53 chars, no whitespace, copied via the dashboard copy button
**Exact error (verbatim)**
```json
{
“error”: {
"code": 401,
"message": "API key not valid. Please pass a valid API key.",
"status": "UNAUTHENTICATED",
"details": \[{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED",
"metadata": {
"method": "google.ai.generativelanguage.v1beta.GenerativeService.GenerateContent",
"service": "generativelanguage.googleapis.com"
}
}\]
}
}
```
**Repro (key redacted)**
```bash
curl -s -X POST “https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent” \
-H “x-goog-api-key: AQ.A…” \
-H “Content-Type: application/json” \
-d ‘{“contents”:[{“parts”:[{“text”:“Reply only: OK”}]}]}’
```
**Everything tried — identical 401 every time**
1. `x-goog-api-key` header (v1beta)
2. `?key=` query parameter
3. `Authorization: Bearer` header
4. `v1` and `v1alpha` endpoints
5. OpenAI-compatible endpoint `/v1beta/openai/chat/completions` → 400 “Invalid Auth key.”
6. Official Python SDK `google-genai==2.34.0` (`client.models.generate_content`)
7. Deleted the auto-created key and created a new key in a **new** project via the AI Studio UI — same result
8. Models tried: gemini-2.5-flash (model listing also 401)
**Notes**
- Network path is fine: the requests reach Google and return well-formed Google error payloads.
- The same key is rejected on other Google APIs, which is expected for keys restricted to the Generative Language API.
- This looks like the AQ. key rollout issue reported by several users since late September 2026.
**Ask**: could you check whether project 478860667686 is flagged, or confirm the correct authentication flow for AQ. auth keys? I can provide any additional diagnostics.