Skip to main content

Manage API keys for your space

As a space owner or admin, you can set API keys for your space. Models available with the keys will be accessible to all users in the space.

Using API keys offers several benefits:

Create API keys

info

Make sure your keys belong to an organization or project with the following rate limits:

  • RPM (requests per minute) ≥ 1,000

  • TPM (tokens per minute) ≥ 1,000,000

The actual limits required depend on your workload requirements.

To create an API key, go to the AI provider's platform and follow their instructions:

Set API keys

Prerequisites

You are the owner or an admin of the space.

  1. Create an API key or request an API key from your AI provider platform admin. Learn more.

  2. Sign in to the GPT for Work dashboard with your Google account.

  3. In the sidebar, select API keys.

  4. In the AI providers list, click the provider whose API key you want to set.

    Select the AI provider
  5. Set the API key:

    1. In the text field, enter the key.

    2. Click Check to verify that the key is valid.

    3. Click Save.

    Set the API key

You have set the API key. All users in the space can now use any model available with the key in GPT for Sheets and GPT for Docs.

Check API keys

You can verify whether the API keys you have set are valid.

Check all API keys at once

  1. Sign in to the GPT for Work dashboard with your Google account.

  2. In the sidebar, select API keys.

  3. Click Check all API keys.

    Edit an API key

    The page displays a warning for each key that is invalid.

    Edit an API key

    If a key is invalid, create a new key and replace the invalid value with the new one.

Check a specific API key

  1. Sign in to the GPT for Work dashboard with your Google account.

  2. In the sidebar, select API keys.

  3. Click the edit icon for the key you want to check.

    Edit an API key
  4. Click Check.

    Edit an API key

    The UI displays a message indicating whether the key is valid or invalid.

    Valid API key
    Invalid or revoked API key

    If the key is invalid, create a new key and replace the invalid value with the new one.

What's next