Gemini API project shows Unavailable and returns 403 PERMISSION_DENIED

Hello,

I am trying to use the Gemini API through Google Apps Script for an educational quiz platform.

When I send a request to the Gemini API, I receive this error:

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

In Google AI Studio, my project’s Billing Tier shows Unavailable. I have not received any account verification warnings.

I would like to use the free tier for my educational project and do not want to enable paid billing at this time.

Could you please explain why my project is unavailable and whether access to the Gemini API free tier can be restored?

Thank you.

Hi @aidana6,
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:

  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. Once age verification is configured, retry your request or create a new API key in Google AI Studio.

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

  6. 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)