Skip to main content

Manage API keys for your space

You can share API keys with space users and control whether they are allowed to use their own keys.

Set space API keys

Use space API keys to:

  • Make more models available to your space users without extra cost to them.

  • Centralize billing.

  • Simplify access to AI providers and models.

Prerequisites

You must be the owner or an admin of the space to set space API keys.

To set a space API key:

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

Space users can still set their own key for the same AI provider, which will override the space key, unless you disallow personal keys.

Control personal API key usage

Choose whether space users can use their own API keys. If you disable this option, space users can only use models that do not require API keys and models associated with space API keys. If you allow space users to use their own keys, they can override the space key for any AI provider with their personal key.

Prerequisites

You must be the owner or an admin of the space to control personal API key usage.

  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

What's next