403 PERMISSION_DENIED — New Gemini API project denied access despite API being enabled

Hello Google Gemini API team,

I need assistance investigating a persistent 403 PERMISSION_DENIED error when calling the Gemini API.

Error received:

HTTP 403
{
  "code": 403,
  "message": "Your project has been denied access. Please contact support.",
  "status": "PERMISSION_DENIED"
}

Environment:

  • Google Cloud project: Valeris IA - Central APIs

  • Project ID: gen-lang-client-07003889..

  • Google Workspace organization: valerisdg.com

  • API: Generative Language API (Gemini API)

  • Model tested: gemini-3.1-flash-lite

  • Integration: Google Apps Script using UrlFetchApp

  • Billing tier displayed when the project was created: Free Tier

What I have verified:

  1. The Gemini API is enabled in Google Cloud Console.

  2. A new API key was created successfully.

  3. The key is restricted exclusively to the Gemini API.

  4. No application restrictions are configured.

  5. Google Cloud API metrics confirm that the request reached the service and returned HTTP 403.

  6. The Gemini model responded successfully in Google AI Studio Playground.

  7. The same error occurred in two earlier projects, and creating a new project did not resolve it.

  8. I checked the relevant organization policy for service-account-bound API keys. Its allowed services include generativelanguage.googleapis.com.

  9. No project suspension or access restriction notification is visible in Google Cloud Console.

The two older projects have closed billing accounts with pending payment activation requirements. However, this new project was created separately and initially displayed Free Tier status.

Questions:

  • Could the project or organization have an access restriction that is not visible in the console?

  • Is there a compliance, security, or account-level restriction affecting Gemini API access?

  • Is a separate billing activation required, or should this project be eligible for Free Tier access?

  • Can the Gemini API team review the restriction and advise how to resolve it?

I would appreciate an investigation or instructions for requesting an access review.

Thank you.

Hi @Guilherme_Magalhaes,
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)