> ## AI Agent Context
> - Full documentation index: https://aistudio.google.com/llms.txt
> - Gemini Docs MCP server (consistent live info): https://gemini-api-docs-mcp.dev
> - Coding agent skills & setup guide: https://aistudio.google.com/docs/coding-agents.md

# Troubleshoot Google AI Studio

Use this guide to diagnose access blocks, account and age verification errors,
quota or plan mismatches, blocked responses, Build sharing errors, and Google
Cloud IAM permission issues in Google AI Studio. For Gemini API SDK or HTTP
error codes, see the [API troubleshooting guide](/docs/troubleshooting) and
[API errors](/docs/api-errors).

## Quick symptom lookup  {% id="symptom-lookup" %}

Match the error message or symptom you see in Google AI Studio to its cause and
fix.

| Symptom or error | Likely cause | Resolution |
| :--- | :--- | :--- |
| Redirected to age requirements when opening AI Studio | Google Account is under 18 or unverified | [Verify age requirements](/docs/troubleshoot-ai-studio#age-requirements) |
| `403 Access Restricted` on AI Studio | Unsupported region, VPN/proxy routing, Terms of Service issue, or browser account conflict | [Understand 403 Access Restricted errors](/docs/troubleshoot-ai-studio#understand-403-errors) |
| `403 Access Restricted` on a shared Build app URL | Privacy browser extension or broken app build | [Fix 403 errors on shared Build apps](/docs/troubleshoot-ai-studio#build-sharing-403) |
| `We are sorry, but you do not have access to Google AI Studio` | Google Workspace admin disabled AI Studio for your account | [Resolve Workspace access blocks](/docs/troubleshoot-ai-studio#workspace-and-verification) |
| `403` (`FREE_TIER_VERIFICATION_REQUIRED`) or account verification prompt | Free-tier project or account requires mobile device verification | [Complete verification or upgrade to paid tier](/docs/troubleshoot-ai-studio#workspace-and-verification) |
| `429` rate limit, missing model, or daily quota reached | Free tier or Google AI plan limit reached, or model requires a paid API key | [Resolve quota, plan, and billing issues](/docs/troubleshoot-ai-studio#quota-and-billing) |
| `No Content` response in Playground | Safety settings blocked the response, or content violated Terms of Service | [Resolve No Content responses](/docs/troubleshoot-ai-studio#resolve-no-content) |
| `PERMISSION_DENIED` or disabled buttons on Projects, Keys, Usage, or Billing | Missing Google Cloud IAM role or project permission | [Check Google Cloud IAM permissions](/docs/troubleshoot-ai-studio#iam-permissions) |

## Understand 403 Access Restricted errors  {% id="understand-403-errors" %}

If you see a `403 Access Restricted` error when opening Google AI Studio, your
session does not meet one of the access requirements:

* **Unsupported region or VPN:** Confirm you are in a
  [supported region](/docs/available-regions) and turn off any VPN or proxy
  routing traffic through an unsupported region.
* **Terms of Service:** Confirm your account has accepted and follows the
  [Terms of Service](/docs/terms).
* **Multiple signed-in Google Accounts:** Open
  [Google AI Studio](https://aistudio.google.com/) in a private or incognito
  window signed in to only the single Google Account you intend to use.

### Fix 403 errors on shared Build apps  {% id="build-sharing-403" %}

If an end user gets a `403 Access Restricted` error when opening a shared
[Build mode](/docs/aistudio-build-mode) app URL, check two causes:

* **Browser extensions:** Privacy extensions such as Privacy Badger can block
  shared app frames. Disable the extension for `aistudio.google.com` and reload.
* **Build errors in app code:** In Build mode, prompt the agent to fix any
  build issues with the current code, then reshare the app URL.

## Verify age requirements for your Google Account  {% id="age-requirements" %}

You must be 18 or older to use Google AI Studio. If AI Studio redirected you to
this section when you tried to sign in, confirm your Google Account meets the
age requirement:

* **Check your birthday:** Confirm your date of birth is set to 18 or older in
  your [birthday settings](https://myaccount.google.com/birthday).
* **Verify your age:** Complete
  [age verification](https://myaccount.google.com/age-verification) on your
  Google Account. For verification options, see
  [Verify your age on your Google Account](https://support.google.com/accounts/answer/10071085).
* **Match your ID date of birth:** If you verify your age with an ID, confirm
  your [birthday](https://myaccount.google.com/birthday) matches the date on
  your ID.
* **Google Workspace accounts:** For Google Workspace for Education accounts,
  contact your administrator to confirm your account is designated as 18 or
  older. See
  [Access Google AI Studio with your Workspace account](/docs/workspace) for
  details.

## Resolve Workspace and verification blocks  {% id="workspace-and-verification" %}

* **Google Workspace disabled:** If you see `We are sorry, but you do not have
  access to Google AI Studio. Please contact your Organization Administrator
  for access.`, your Workspace administrator turned off the AI Studio service.
  Share the [Google Workspace access guide](/docs/workspace) with your admin so
  they can enable AI Studio for your organizational unit or billing group.
* **Project or account verification (`FREE_TIER_VERIFICATION_REQUIRED`):** Some
  free-tier projects and accounts with unusual activity require QR-code mobile
  device verification. Follow
  [Project and account verification](/docs/verification) to verify with an
  Android phone or iPhone, or
  [set up billing](/docs/billing#setup-billing) to use the paid tier without
  verification.

## Resolve quota, plan, and billing issues  {% id="quota-and-billing" %}

If requests fail with `429` quota errors, a model is unavailable, or you hit a
daily limit in AI Studio:

* **Subscription quota vs. paid API key:** [Google AI Pro and Ultra
  plans](/docs/google-ai-plans) provide daily web quota inside AI Studio on
  personal Google Accounts only. They do not change
  [Gemini API usage tiers](/docs/billing) and do not cover managed agents or
  Workspace accounts. Link a paid [Gemini API key](/docs/api-key) when you hit
  your daily subscription limit or need paid-only models and agents.
* **Prepay balance required for credits:** On [Prepay](/docs/billing#prepay)
  billing accounts, your paid credit balance must stay above $0 for promotional
  Google Cloud credits to apply.
* **Starter Tier publishing unavailable:** The Google Cloud Starter Tier is not
  available for Google Workspace accounts, accounts with active or prior paid
  Cloud Billing accounts, or accounts without enough activity history. Attach a
  billing account and
  [publish with a paid Google Cloud project](/docs/aistudio-deploying#standard-deployment).
* **Check service status and limits:** Check the
  [AI Studio Status page](https://aistudio.google.com/status) for active
  outages, and review [Rate limits](/docs/rate-limits) for per-model ceilings.

## Resolve No Content responses on Google AI Studio  {% id="resolve-no-content" %}

{% callout type="warning" %}
  A **No Content** message appears in Google AI Studio if the response is blocked
  for any reason. Hold the pointer over **No Content** and click **Safety** to
  see details.

{% /callout %}

If the response was blocked by [safety settings](/docs/safety-settings) and you
have reviewed the [safety risks](/docs/safety-guidance) for your use case,
adjust your
[safety settings](/docs/safety-settings#safety-settings-ai-studio) and retry.

If the response was blocked for a reason other than safety settings, the prompt
or response may violate the [Terms of Service](/docs/terms) or be unsupported.

## Check token usage and limits  {% id="check-token-usage" %}

When you have a prompt open in Playground, check the token count shown in the
prompt bar or **Text Preview** button to compare your current prompt length
against the model's maximum context window. See [Token counting](/docs/tokens)
for details.

## Google Cloud IAM permissions for AI Studio  {% id="iam-permissions" %}

Members of a Google Cloud project need specific Identity and Access Management
(IAM) permissions to perform actions in Google AI Studio. For background on IAM
identities, see the
[IAM principals overview](https://docs.cloud.google.com/iam/docs/principals-overview).

Users with the **Editor** (`roles/editor`) or **Owner** (`roles/owner`) roles
in the associated Google Cloud project have full permissions to view dashboards
and manage Gemini API keys. Users with the **Viewer** (`roles/viewer`) role can
view dashboards and API keys, but cannot create, update, or delete them.

For granular access control, grant the exact permissions listed below. For
instructions on granting roles, see
[Granting, changing, and revoking access to resources](https://cloud.google.com/iam/docs/granting-changing-revoking-access).

{% table %}
  * AI Studio feature
  * Required IAM permissions
  * Additional requirements

  ---

  * **Search project** (import projects)
  * `resourcemanager.projects.get`
  * 

  ---

  * **Rename project**
  * `resourcemanager.projects.update`
  * 

  ---

  * **Verify project**
  *     `resourcemanager.projects.get`

    `resourcemanager.projects.update`

  * Applies to free tier projects. See [Project and account verification](/docs/verification#verify-project).

  ---

  * **Display quota tier**
  * N/A
  * 

  ---

  * **Create API key**
  *     Have **Search project** permissions, and:

    `apikeys.keys.create`

    `serviceusage.services.enable`

    `iam.serviceAccountApiKeyBindings.create`

    `iam.serviceAccounts.create`

  * 

  ---

  * **List API keys**
  *     Have **Search project** permissions, and:

    `apikeys.keys.list`

    `serviceusage.services.get`

  * The Google Cloud project must have the [Generative Language API](https://console.cloud.google.com/apis/library/generativelanguage.googleapis.com) enabled.

  ---

  * **Rename API keys**
  * `apikeys.keys.update`
  * 

  ---

  * **Delete API keys**
  * `apikeys.keys.delete`
  * 

  ---

  * **Usage dashboard**
  *     Have **Search project** permissions, and:

    `monitoring.timeSeries.list`

  * 

  ---

  * **Rate limit dashboard**
  *     Have **Usage dashboard** permissions, and:

    `cloudquotas.quotas.get`

  * 

  ---

  * **Spend (Billing cap)**
  *     `billing.resourceCosts.get` (to view spend)

    `billing.resourcebudgets.read` (to view cap)

    `billing.resourcebudgets.write` (to set cap)

  * 

  ---

  * **Billing dashboard**
  * `billing.accounts.get`
  * 

  ---

  * **Custom domains**
  *     `roles/owner` or `roles/editor`, or all of:

    `roles/domains.admin`

    `roles/dns.admin`

    `roles/run.admin`

    `serviceusage.services.get` and `serviceusage.services.enable` (if the Cloud Domains, Cloud DNS, and Cloud Run APIs are not already enabled)

  * Requires an active Cloud Billing account. See [Custom domains in Google AI Studio](/docs/aistudio-custom-domains).

  ---

  * **Custom domain quota increases**
  * `serviceusage.quotas.update` or `cloudquotas.quotas.update`
  * Requires an active Cloud Billing account. See [Request additional domains](/docs/aistudio-custom-domains#request-additional-domains).
{% /table %}

### Other access checks  {% id="other-access-checks" %}

In addition to Google Cloud IAM permissions, AI Studio performs security and
compliance checks. You may encounter a `PERMISSION_DENIED` or access
restriction error in the AI Studio interface or in API responses if you do not
meet these requirements:

* **Security checks:** Your request must pass automated security checks.
* **Mobile device verification:** Some free-tier projects, and accounts with
  unusual activity, must complete
  [project or account verification](/docs/verification).
* **Terms of Service:** You must accept the Google Terms of Service and
  [Gemini API Additional Terms of Service](/docs/terms).
* **Supported region:** You must be located in a
  [supported region](/docs/available-regions).
* **Age requirements:** You must meet the
  [age requirements](/docs/troubleshoot-ai-studio#age-requirements) (18+) on
  your Google Account.
* **Trust & Safety:** The Google Cloud project must not be flagged for abuse.

