Hi,
I’m using the Gemini API through Google AI Studio.
Environment:
- Personal Gmail account
- Country: India
- SDK: google-genai 2.16.0
- API key created from Google AI Studio
- New Google Cloud project
- Generative Language API enabled
The following works:
- client.models.list()
- client.models.get()
But generate_content() always returns:
403 PERMISSION_DENIED
Your project has been denied access. Please contact support.
Example:
from google import genai
client = genai.Client(api_key=“…”)
response = client.models.generate_content(
model=“gemini-2.5-flash”,
contents=“Hello”
)
Could someone please check whether my project has been blocked or requires additional verification?
Hello @Shailesh_Prajapati ,
Getting a 403 API error response and / or seeing “Unavailable” next to your project in AI audio 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.