Hello,
I’m experiencing a persistent 403 PERMISSION_DENIED error when calling the Gemini API.
Error message:
403 PERMISSION_DENIED
Your project has been denied access. Please contact support.
I have already completed the following troubleshooting steps:
- Created a brand new Google Cloud project.
- Enabled the Gemini API.
- Generated a brand new API key in Google AI Studio.
- Verified that the API key belongs to the correct project.
- Tested using the official Python SDK (google-genai).
- Tested using direct REST API requests (without any SDK).
- Both methods return the exact same 403 PERMISSION_DENIED error.
- Google AI Studio chat works normally under the same Google account.
Based on these tests, this appears to be a backend permission issue rather than a client-side configuration problem.
For privacy reasons, I have omitted my Project ID and Project Number from this public post.
I can provide my Project ID and Project Number privately if needed.
Could you please review my project and account to determine why access has been denied and, if possible, remove the restriction?
If you need any additional information, logs, or screenshots, I’d be happy to provide them.
Thank you for your time and assistance.