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!