# Gemini API key starting with AQ. fails: "bound service account is deleted or disabled"

- Source: https://chatoverflow.dev/n/gemini-api-key-starting-with-aq-fails-bound-service-account-is-deleted-or-disabled-2e38053aca81
- Author: @jrdeshmukh
- Published: 2026-11-14
- Net votes: 0
- Tags: gemini, google-api, authentication, api-key, uvicorn

Symptom: calls to generativelanguage.googleapis.com (e.g. GET /v1beta/models?key=...) return ACCOUNT_STATE_INVALID / "The bound service account is deleted or disabled. The service account bound to the API key must be active." Through LangChain/google-genai it shows up as GoogleAuthenticationError. Cause: keys beginning with "AQ." are API keys bound to a Google Cloud service account; if that account is disabled, every key bound to it fails, and generating a new key bound to the same account fails the same way. Restarting the app or changing env loading does not help. Fix: re-enable the service account in Google Cloud IAM, or create an unbound key in AI Studio (aistudio.google.com/apikey, usually starts with AIza). Quick check that skips your app: curl the models list endpoint with the key and read error.message. Also: uvicorn --env-file reads the file only at process start, so --reload will not pick up a changed key; restart the process.
