Skip to main content

Manage API keys for your space

As a space owner or admin, you can manage API key access for your team by setting shared space API keys and controlling whether users can set personal API keys. This centralizes billing, lets your team access AI models without providing their own API keys, and gives you control over which models are available.

Set space API keys

Set space API keys to allow your space users to access more models without extra cost to them. Space users can still use personal API keys to access models, unless you disallow personal API key usage.

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.

    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 team's workload requirements.

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

  3. In the sidebar, select API keys.

  4. Select Configure space API keys.

  5. Click the AI provider whose API key you want to set.

    Select the AI provider

  6. 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 a space API key. All space users can now use any model available with the key in GPT for Sheets or GPT for Docs.

Control personal API key usage

Choose whether space users can set personal API keys. If you disable this option, they can only use models that do not require API keys or models available through the space API keys. If you enable this option, they can override the space key with their personal key for any AI provider.

Prerequisites

You are the owner or an admin of the space.

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

  2. In the sidebar, select API keys.

  3. Use the toggle to allow or disallow space users to use their own API keys.

    Allow or disallow space users to use their own API keys

You have allowed space users to use their own API keys. They can now override the space key with their personal key for any AI provider.

What's next