Fix Gemini API 403 "Your project has been denied access"
Gemini API 403 Your project has been denied access blocks the Cloud project, not the key. Read its AI Studio status, then fix billing or a suspension.
403 PERMISSION_DENIED: Your project has been denied access. Please contact support.Gemini API access is blocked for the Google Cloud project the key belongs to, not for the key itself, and the project's status label in Google AI Studio tells you what to do. The official docs say that creating a new key in the same project won't resolve this error, so don't start by regenerating keys.
[1] Open the projects page in AI Studio and read the status label next to the project. Per the official docs, it splits like this.
| Status label | Meaning | Next |
|---|---|---|
| Restricted · Free tier unavailable | The project cannot use the free tier | [2] |
| Payment needed | A billing account is linked but has a past-due balance | [3] |
| Unavailable | A restriction on the account or project | Checks in [2] → [4] |
[2] Check whether the project is shut out of the free tier. Free-tier eligibility is decided per Cloud project, and not every project or account qualifies. A staff reply on the official forum said that on the free tier with no billing attached, check two things first.
- Confirm the model you call is available on the free tier, using the Rate Limit page in AI Studio. Not every model is open to the free tier.
- Confirm you completed age verification (date of birth) in your Google Account settings, then retry the same request. The staff reply also suggests creating a new key in AI Studio if that fails, but the official docs say a new key in the same project won't resolve this error, so don't count on a new key.
If that does not restore access, the only path is moving the project to the paid tier by linking an active Cloud Billing account.
[3] For Payment needed, settle the balance. Clear the past-due amount or update the payment method on the AI Studio Billing page or in the Google Cloud Billing console. The docs say the project regains API access automatically once the billing account is back in good standing.
[4] If the project or billing account was suspended for a policy violation, read the notice sent to the email address tied to the project, review the suspension notice in the Google Cloud Console, and appeal following the Project Suspension Guidelines. If you are already on the paid tier, the forum staff reply says to check the AI Studio projects and billing pages for banners or error callouts first; most carry concrete next steps or an appeal link.
A different 403 message means a different cause. Your API key was reported as leaked blocks that key rather than the project, and a new key is the fix; see Fix Gemini API 403 "Your API key was reported as leaked". For a 404 when calling an older model, see Fix Gemini 2.5 404 "no longer available to new users".
Check it with the HTTP status codes tool ↗ — calculated in your browser.