Gemini API returns 403 – “Your project has been denied access”

Hello,

My Gemini API project is enabled and the API key is active, but every
Gemini API generation request returns:

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

Project name:
Default Gemini Project

Project ID:
gen-lang-client-01523024..

Project number:
506436828..

Billing tier:
Free tier

The Gemini API is enabled in Google Cloud Console.
The API key is active and restricted to the Gemini API.

Google AI Studio does not show a project restriction or denial message.
Google Cloud Console also does not show an appeal or request-review option.

However, an actual Gemini API inference request is rejected with the
project-denied 403.

Could you please check the access status of this project and explain why
Gemini API inference is being denied?

Thank you.

Hello @E_Artsprojects ,

Getting a 403 API error response and / or seeing “Unavailable” next to your project in AI studio indicates a flag has been placed on your account. To proceed:

  1. If you’re on the free tier with no billing attached, please try the below steps:

  2. Check Model Availability & Rate Limits:

    • Ensure that the model you are requesting is available on your current plan. For example, not all models are available on the free tier. You can verify model availability, quotas, and limits on the AI Studio Rate Limit dashboard.
  3. Ensure you have completed age verification by navigating to Google Account Age Verification and verifying date of birth in Google Account Personal Info.

  4. Complete Phone Verification and turn on 2-Step Verification (2SV) on the Google Account associated with your project.

  5. Once age, phone and 2sv are configured, retry your request or create a new API key in Google AI Studio.

  6. If completing these steps still does not restore access (or if using a model requiring a paid tier), you might want to consider adding prepayment credits directly in Google AI Studio and/ or attaching a Google Cloud Billing account in the Google Cloud Console. Please note this will mean you lose your free tier quota.

  7. If you are on a paid tier:

    1. 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.

    2. If your GCP project/ billing account is suspended, you must submit an appeal directly through the Google Cloud Console following the Project Suspension Guidelines (Help Center)