Hello @Akshit ,
Getting a 403 API error response indicates a flag has been placed on your account. To proceed:
If you’re on the free tier with no billing attached, you should consider setting up billing. In most cases this is enough to clear any flag on your account. Please note this will mean you lose your free tier quota. You should also see a banner in AI studio prompting you to set up billing.
If you are on a paid tier, check for banners / error callouts in the AI Studio Projects page & the Billing page. Mostly these flags cause visible banners or other errors on these pages with concrete next steps / appeal links. You can also check the email address associated with your project for information on next steps.
I am experiencing the same 403 issue described in this thread, and I believe my account has the same type of flag.
My project is:
Project ID: gemini-free-api-5058..
Gemini API (generativelanguage.googleapis.com): Enabled
Billing: No billing account attached
API key: Created through Google AI Studio and restricted to Gemini API
AI Studio Billing Tier: Unavailable
My API request returns:
403 PERMISSION_DENIED
Your project has been denied access. Please contact support.
I also checked the AI Studio Gemini API Spend/Billing page, which explicitly shows:
This Project’s API access is restricted. Please set up billing to continue.
I understand from your response that a 403 indicates a flag has been placed on the account.
However, I specifically want to remain on the Gemini API Free Tier and do not want to enable billing or move to a paid tier.
I have already tried creating a new Google Cloud project, importing it into AI Studio, enabling the Gemini API, and creating a new restricted API key. The same Unavailable status and 403 error persist.
There is no appeal or review link shown on my Billing page; the only action offered is to set up billing.
Could you please manually review the account flag and let me know whether my Gemini API Free Tier generation access can be restored without enabling billing?