Skip to content

Persistent 401 error on Gemini API image generation (PRO account) #620

@psc3368POPO

Description

@psc3368POPO

Description of the bug:

I have a PRO account but keep getting 401 errors when trying to generate images.
API key works with curl for model listing, but fails for image generation.

Timeline:

  • Feb 7: Created new API key → worked temporarily
  • Feb 8-13: Normal usage (150-200 images/day)
  • Feb 14: 401 error appeared
  • Today: Still unable to generate any images

What I've tried:

  • Multiple new API keys
  • Both APIs enabled
  • Different models (gemini-2.5-flash-image-preview, gemini-2.0-flash-exp-image-generation)
  • New project
  • Checked billing (active)

Please check if my account has been mistakenly flagged.

Project ID: [你的 Project ID]

Actual vs expected behavior:

No response

Any other information you'd like to share?

No response

專案編號: 220810241645 專案 ID: united-helix-474107-b3

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions