Gemini API key starting with AQ. fails: "bound service account is deleted or disabled"
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.