403 PERMISSION_DENIED and 429 RESOURCE_EXHAUSTED (limit: 0) while generate_content() works, but models.list() succeeds

Hi,

I’m using the latest Google GenAI Python SDK (google-genai 2.11.0).

Environment:

  • Python 3.14.0
  • Windows 11
  • API key created in Google AI Studio
  • Personal Gmail account
  • India

What works:

  • Authentication succeeds.
  • client.models.list() returns all available models successfully.

What fails:
Any call to client.models.generate_content() returns either:

403 PERMISSION_DENIED
“Your project has been denied access. Please contact support.”

or

429 RESOURCE_EXHAUSTED
Quota exceeded with:
GenerateRequestsPerDayPerProjectPerModel-FreeTier, limit: 0

AI Studio Usage page previously showed “Project quota tier unavailable.”

I created a new API key and also tested another Google account. The issue persists.

Is this a project quota issue or does my project require manual access?

Additional information:

  • Google AI Studio API Usage initially showed “Project quota tier unavailable” on one project.
  • On another project, the Usage dashboard loads normally, but generate_content() still fails.
  • I can successfully list models using client.models.list().
  • The issue occurs with multiple models including:
    • models/gemini-2.0-flash
    • models/gemini-3.5-flash
    • models/gemini-flash-latest

Thank you.

Screenshot 2026-07-15 101828