Persistent Error: Gemini API Keys from Google AI Studio Returns 403 Error and Instruct to "Contact Support", Which It Does Not Let Me Do

Hi there,

As the title says, I am attempting to use a Gemini API key from Google AI Studio. Creating the key and all that works, but it still provides errors. I have created multiple keys, deleted the old ones, tried to do it through Google Cloud, and implemented it in multiple ways. However, I always get a 403 error saying that something is “forbidden” or that my account has an issue, and it asks me to contact support. I tried to contact support through Google Cloud because I couldn’t find a support button for AI Studio. Yet Google Cloud basically told me I will not be able to garner support, so I am here to solicit help. Truly, anything anyone has to offer is very appreciated. I have spent a lot of time trying to troubleshoot this myself, but I guess I am not cut out for it.

Here are two of the errors I have gotten:

One Error Second Identical Error
[GEMINI] {“error”:{“message”:“{\n "error": {\n "code": 403,\n "message": "Your project has been denied access. Please contact support.",\n "status": "PERMISSION_DENIED"\n }\n}\n”,“code”:403,“status”:“Forbidden”}}\n{“message”:“{"error":{"message":"{\n \"error\": {\n \"code\": 403,\n \"message\": \"Your project has been denied access. Please contact support.\",\n \"status\": \"PERMISSION_DENIED\"\n }\n}\n","code":403,"status":"Forbidden"}}”,“status”:403,“modelId”:“gemini-3.5-flash”,“providerId”:“gemini”} ERROR:root:Google Gemini API error: 403 - Your project has been denied access. Please contact support.
An unknown error occurred. Please check the details below.
Error details: 403 PERMISSION_DENIED. {‘error’: {‘code’: 403, ‘message’: ‘Your project has been denied access. Please contact support.’, ‘status’: ‘PERMISSION_DENIED’}}
ERROR:crewai.flow.flow:Error executing listener call_llm_and_parse: 403 PERMISSION_DENIED. {‘error’: {‘code’: 403, ‘message’: ‘Your project has been denied access. Please contact support.’, ‘status’: ‘PERMISSION_DENIED’}}
An unknown error occurred. Please check the details below.
Error details: 403 PERMISSION_DENIED. {‘error’: {‘code’: 403, ‘message’: ‘Your project has been denied access. Please contact support.’, ‘status’: ‘PERMISSION_DENIED’}}

Thank you!

Hello @Vexa ,
This is very likely caused by an issue which is currently only visible in Google Cloud console. We’re working to move visibility of this into AI Studio. To resolve this:

  • Open the Cloud console & select your project
  • You should see a banner which explains the issue / may allow you to appeal

Hi there @Pooja_Kapse,

Unfortunately, no relevant banner appeared in the Cloud Console dashboard or the API dashboard for the project. Additionally, I checked the Cloud Hub and did not see anything there. The only thing that appeared was a prompt to set up OAuth, which I did, but it still did not work. I then made another project to test whether it worked, but it did not.

Something else I researched suggested that manually creating the Google Cloud Project instead of automatically generating a new one in AI Studio when creating the key (which it did not allow me to do) might have interfered with the billing process. Since I do not have a billing account set up, this could be the cause of the issue. I do not know whether there is any merit to that idea, but I thought it was worth mentioning in case.

Anyway, I appreciate your response, but the banner didn’t appear. Thank you nonetheless; any help is incredibly welcome. I hope a solution arises soon.

Best,

@Vexa

We’ve actually added banners for issue which cause 403 issues into AI Studio now. Please:

  1. Check for banners / error callouts in the AI Studio Projects page & the Billing page.

  2. If the issue isn’t clear from the above, contact Cloud Billing Support.