> ## 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

# Access Google AI Studio with your Workspace account

All [Google Workspace](https://workspace.google.com) users have access to AI
Studio by default. AI Studio is also the primary place where users can manage
billing for the Gemini API. If you're a Workspace user and you want to get
started with AI Studio, check out the
[AI Studio quickstart](/docs/ai-studio-quickstart).

## Troubleshooting  {% id="troubleshooting" %}

If access to AI Studio is disabled for your Google Workspace account, you might
see an error like the following:

`We are sorry, but you do not have access to Google AI Studio. Please contact
your Organization Administrator for access.`

If you think you should have access to AI Studio, contact your Workspace
administrator. If you can open AI Studio but project creation or API key
creation fails, see
[Admin and Workspace troubleshooting](/docs/workspace#admin-troubleshooting).

## Enable AI Studio for Workspace users  {% id="enable-ai-studio" %}

{% callout type="success" %}
  **Important:** This section is intended for Google Workspace administrators.

{% /callout %}

As a Google Workspace administrator, you can control who uses AI Studio:

* AI Studio is turned on by default for all editions.

* You can turn AI Studio off or on for sets of users across or within
  organizational units.

* Google Workspace for Education editions: Users under the age of 18 are
  restricted from using AI Studio with their Google Workspace for
  Education accounts. This is true even when the AI Studio setting is
  on. For details, go to [Control access to Google services by
  age](https://support.google.com/a/answer/10651918).


{% callout type="note" %}
  If you turn off AI Studio, users can't manage billing for the Gemini API.

{% /callout %}

To enable or disable AI Studio for users in your organization, see
[Turn Google AI Studio on or off for users](https://support.google.com/a/answer/15004095).

## Turn on AI Studio only for users who manage Gemini API billing  {% id="billing-group" %}

If you don't want to turn on AI Studio for everyone, you can turn it on for
just the group of users who manage billing for the Gemini API.

1.  [Create a group](https://support.google.com/a/answer/167160) at
    [admin.google.com/ac/groups](https://admin.google.com/ac/groups) and add
    the users who manage Gemini API billing.
2.  Turn on the **Security** label for the group. For details, go to
    [Control access to sensitive data with security groups](https://support.google.com/a/answer/9468710).
3.  In the Admin console, go to
    [Additional Google services](https://admin.google.com/ac/appslist/additional)
    and click **AI Studio** and then **Service status**.
4.  On the left, under **Groups**, search for and select the group you created.
5.  Check the **ON** box.
6.  Click **Save**.

![](https://www.gstatic.com/cloud-cms/0b387a2e93b19fe4e6bd41475b82d8de.png)

## Admin and Workspace troubleshooting  {% id="admin-troubleshooting" %}

Users with Google Workspace or Google Workspace for Education accounts can hit
blocks even after an administrator turns on Google AI Studio. Most blocks come
from Google Cloud service settings, IAM roles, or organization policies.

Use this checklist to verify that your organization allows users to open AI
Studio, create Google Cloud projects, and generate Gemini API keys.

### Administrator enablement checklist  {% id="admin-checklist" %}

1.  **Turn on Google AI Studio:** In the Admin console, go to **Apps >
    Additional Google services > AI Studio** and set **Service status** to
    **ON** for the user's organizational unit or group. See
    [Turn Google AI Studio on or off for users](https://support.google.com/a/answer/15004095).
2.  **Verify age designation (Workspace for Education):** Confirm affected
    users are designated as 18 or older in the Admin console. Users under 18
    cannot access AI Studio even when the service is turned on. See
    [Control access to Google services by age](https://support.google.com/a/answer/10651918).
3.  **Turn on Google Cloud and project creation:** In the Admin console, go to
    **Apps > Additional Google services > Google Cloud Platform** and set
    **Service status** to **ON**. Turning on AI Studio alone does not allow
    users to create Google Cloud projects or API keys. Under **Cloud Resource
    Manager API settings > Project Creation Settings**, also verify that
    **Allow users to create projects** is enabled. See
    [Control who uses Google Cloud in your organization](https://support.google.com/a/answer/9197205).
4.  **Grant project creation access or pre-create projects:** When a Workspace
    user creates a project in AI Studio, Cloud Resource Manager places it under
    the domain's Google Cloud organization. Organizations that remove the
    default domain-wide **Project Creator** role must choose one of two options:
    *   Grant the **Project Creator** role
        (`roles/resourcemanager.projectCreator`, which includes
        `resourcemanager.projects.create`) on the organization to users or a
        security group. See
        [Managing default organization roles](https://cloud.google.com/resource-manager/docs/default-access-control).
    *   Keep organization-level project creation restricted and provide a
        project instead. Create a project for the user, or grant **Project
        Creator** on a folder so they can create one in the
        [Google Cloud console](https://console.cloud.google.com/projectcreate).
        Then have them [import it into AI Studio](/docs/api-key#import-projects),
        since AI Studio cannot select a parent folder during project creation.

5.  **Review organization policies:** Confirm organization policies do not
    block the APIs or service accounts AI Studio needs:
    *   `constraints/gcp.restrictServiceUsage`: Allow the Generative Language
        API (`generativelanguage.googleapis.com`). See
        [Restricting service usage](https://cloud.google.com/organization-policy/restrict-services).
    *   `constraints/iam.disableServiceAccountCreation`: New API keys created
        in AI Studio are authorization keys bound to a Google Cloud service
        account. Blocking service account creation prevents users from
        generating new API keys in AI Studio.


### Common project creation errors  {% id="project-creation-errors" %}

{% table %}
  * Symptom or error
  * Likely cause
  * Resolution

  ---

  * Access denied when opening AI Studio, or redirected to age verification
  * **AI Studio** is turned off in the Admin console, or a Google Workspace for Education account is not designated as 18 or older.
  * Turn on **AI Studio** under **Additional Google services**, and confirm the 18+ age label for Workspace for Education users.

  ---

  * Project creation disabled (`FAILED_PRECONDITION`)
  * **Google Cloud Platform** is turned off in the Admin console, **Allow users to create projects** is disabled under **Cloud Resource Manager API settings**, or the Google Cloud Terms of Service have not been accepted.
  * Turn on **Google Cloud Platform** under **Additional Google services**, enable **Allow users to create projects** under **Cloud Resource Manager API settings > Project Creation Settings**, or sign in to the [Google Cloud console](https://console.cloud.google.com/) to accept the Terms of Service.

  ---

  * Permission denied when creating a project (`PERMISSION_DENIED`)
  * The user lacks `resourcemanager.projects.create` on the organization, or an organization policy blocks project creation.
  * Grant `roles/resourcemanager.projectCreator` on the organization, or create a project in the Google Cloud console and [import it into AI Studio](/docs/api-key#import-projects).

  ---

  * Google Cloud project quota reached (`RESOURCE_EXHAUSTED`)
  * The user or organization reached its Google Cloud project quota.
  * Delete unused projects in the Google Cloud console, [import an existing project](/docs/api-key#import-projects), or [request a project quota increase](https://cloud.google.com/resource-manager/docs/creating-managing-projects#managing_project_quotas).

  ---

  * AI Studio project limit reached (`PERMISSION_DENIED`, or project creation disabled in the UI)
  * The user reached the AI Studio limit of 10 created projects or 50 imported projects.
  * Remove unused projects from AI Studio, or (if under 50 imported projects) [import an existing project](/docs/api-key#import-projects).

  ---

  * Project created, but Generative Language API is disabled
  * The user lacks `serviceusage.services.enable`, or `constraints/gcp.restrictServiceUsage` blocks `generativelanguage.googleapis.com`.
  * Allow `generativelanguage.googleapis.com` in organization policy and enable the [Generative Language API](https://console.cloud.google.com/apis/library/generativelanguage.googleapis.com) in the Google Cloud console.

  ---

  * Cannot create an API key in an imported project
  * The user lacks project-level key creation IAM permissions, or `constraints/iam.disableServiceAccountCreation` blocks creating the bound service account.
  * Grant the IAM permissions listed in [Troubleshooting key creation permissions](/docs/api-key#key-permission) and allow service account creation on the project.
{% /table %}

## What's next  {% id="whats-next" %}

* [Google Cloud IAM permissions for AI Studio](/docs/troubleshoot-ai-studio#iam-permissions): Review required IAM permissions for every AI Studio feature.
* [Using Gemini API keys](/docs/api-key#project-permission): Troubleshoot project creation and API key permissions.

