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:
-
More models. Access to a wider range of models from a bigger pool of AI providers than what is available without API keys.
-
More control. Monitor and manage AI usage and costs directly on the AI provider's platform.
-
Improved privacy. We do not log inputs and outputs when you use a model with an API key. For more information, see our security and privacy FAQ.
-
Reduced costs. If you're on usage-based pricing, using an API key reduces costs. You pay the model usage fees directly to the AI provider, while paying a reduced service fee for GPT for Work.
Create API keys
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:
-
OpenAI Platform for GPT models, fine-tuned models, and OpenAI Assistants
-
Anthropic Console for Claude models
-
DeepSeek Platform for DeepSeek models
-
Google AI Studio for Gemini models
-
Mistral AI for Mistral models
-
OpenRouter for access to various models from different AI providers using a single API key
-
Perplexity for Perplexity models
-
xAI Cloud Console for xAI models
Set API keys
Prerequisites
You are the owner or an admin of the space.
Google
Microsoft
-
Create an API key or request an API key from your AI provider platform admin. Learn more.
-
Sign in to the GPT for Work dashboard with your Google account.
-
In the sidebar, select API keys.
-
In the AI providers list, click the provider whose API key you want to set.

-
Set the API key:
-
In the text field, enter the key.
-
Click Check to verify that the key is valid.
-
Click Save.

-
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.
-
Create an API key or request an API key from your AI provider platform admin. Learn more.
-
Sign in to the GPT for Work dashboard with your Microsoft account.
-
In the sidebar, select API keys.
-
In the AI providers list, click the provider whose API key you want to set.

-
Set the API key:
-
In the text field, enter the key.
-
Click Check to verify that the key is valid.
-
Click Save.

-
You have set the API key. All users in the space can now use any model available with the key in GPT for Excel and GPT for Word.
Check API keys
You can verify whether the API keys you have set are valid.
Check all API keys at once
Google
Microsoft
-
Sign in to the GPT for Work dashboard with your Google account.
-
In the sidebar, select API keys.
-
Click Check all API keys.

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

If a key is invalid, create a new key and replace the invalid value with the new one.
-
Sign in to the GPT for Work dashboard with your Microsoft account.
-
In the sidebar, select API keys.
-
Click Check all API keys.

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

If a key is invalid, create a new key and replace the invalid value with the new one.
Check a specific API key
Google
Microsoft
-
Sign in to the GPT for Work dashboard with your Google account.
-
In the sidebar, select API keys.
-
Click the edit icon for the key you want to check.

-
Click Check.

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


If the key is invalid, create a new key and replace the invalid value with the new one.
-
Sign in to the GPT for Work dashboard with your Microsoft account.
-
In the sidebar, select API keys.
-
Click the edit icon for the key you want to check.

-
Click Check.

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


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