Skip to main content

Manage API endpoints for your space

As a space owner or admin, you can make additional models available to your team by setting up API endpoint connections for your space. You can also control whether users can set up their own endpoints.

note

This feature is available only for Microsoft accounts.

Connect to Azure OpenAI

GPT for Excel and Word can connect to Azure AI to use OpenAI models.

Prerequisites

Get your Azure OpenAI endpoint details

To connect to Azure AI from GPT for Excel and Word, you need the endpoint URL, name, and API key for the Azure OpenAI model you want to use.

  1. Sign in to Azure AI Foundry.

  2. Select the Azure OpenAI resource that has the model you want to use.

  3. In the sidebar, select My assets > Models + endpoints.

    Select the sidebar menu item
  4. In Model deployments, in the models list, click the name of the model you want to use.

    Select the deployed model
  5. In the model details, copy the Target URI, Key, and Model name.

    Copy the endpoint details

Set up the Azure OpenAI endpoint

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

  2. In the sidebar, select API endpoints.

  3. Click Azure OpenAI endpoints.

  4. Define the endpoint settings:

    • Endpoint URL: Enter the endpoint URL for the model.

    • Model name: Enter the model name.

    • API key: Enter the API key for accessing the endpoint.

    • Display name (optional): Enter a custom display name for the model. If not set, the model switcher uses Model name as the display name.

    Define Azure OpenAI endpoint settings

  5. Click Check to validate the settings, and click Save.

    Define Azure OpenAI endpoint settings

You have set up the Azure OpenAI endpoint. All space users can now use the endpoint model in GPT for Excel and Word.

tip

To define another Azure OpenAI endpoint with a different model, click Add another Azure OpenAI endpoint and repeat steps 4 and 5.

Define Azure OpenAI endpoint settings

Control whether users can set up API endpoints

Choose whether space users can set up their own API endpoints. If you enable this option, users can connect to their own endpoints from GPT for Excel and Word. If you disable this option, users are limited to the endpoints you set up for the space.

Prerequisites

You are the owner or an admin of the space.

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

  2. In the sidebar, select API endpoints.

  3. Use the toggle to allow or disallow space users to set up their own API endpoints.

    Allow or disallow space users to set up their own API endpoints

What's next