Skip to main content

Manage API endpoints

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

info

API endpoints are available only for GPT for Excel Word – Autosheet spaces.

Connect to Azure OpenAI​

GPT for Excel – Autosheet and GPT for Word can connect to Azure AI to use OpenAI models. In Azure AI, each model has a dedicated API endpoint that you use to access the model.

Prerequisites

To connect to an Azure OpenAI API endpoint:

  1. Get the Azure OpenAI API endpoint details.

  2. Set up the Azure OpenAI API endpoint.

Get the Azure OpenAI API endpoint details​

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

  1. Sign in to Microsoft Foundry.

  2. Select the project that has the model you want to use.

  3. Click View deployments.

  4. In Deployed models, in the models list, click the name of the model you want to use.

    Select the deployed model
  5. Select Details.

  6. In the model details, copy the Target URI, Key, deployment Name, and Model name.

    Copy the endpoint details

Set up the Azure OpenAI API endpoint​

Agent models, which are available only in GPT for Excel – Autosheet, require an endpoint that is compatible with the Responses API. Bulk models require an endpoint that is compatible with the Chat Completions API.

  1. Sign in to the Autosheet dashboard with your Microsoft or Google account.

  2. In the sidebar, select Custom API endpoints.

  3. Select the Agent models tab.

  4. Click Azure OpenAI endpoints (Responses API).

    tip

    If you already have Azure OpenAI API endpoints set up, click Add an Azure OpenAI API endpoint.

  5. Define the endpoint settings:

    • Endpoint URL: Enter the endpoint URL in the Azure OpenAI Responses API format, for example:

      https://company-resource.services.ai.azure.com/openai/v1/responses

      Microsoft Foundry shows the URL in this format by default, so you can usually enter the URL you copied as is. You do not need to add an api-version parameter. The Chat Completions API URL used for bulk models does not work for Agent models.

      The endpoint must be publicly accessible over HTTPS and use an azure.com domain.

    • Model name: Enter the deployment Name you copied from Microsoft Foundry. The deployment name can differ from the name of the underlying model.

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

    • Display name (optional): Enter a short name that identifies the model in the Agent model switcher.

    Define Azure OpenAI API endpoint settings for an Agent model
  6. Click Check to validate the settings and click Save.

    Save Azure OpenAI API endpoint settings for an Agent model

You have set up the Azure OpenAI API endpoint. All space users can now select the model in the Agent model switcher in GPT for Excel – Autosheet.

Connect to OpenAI-compatible API endpoints​

info

This feature is only available if your space is on the Business or Enterprise plan or pay-as-you-go pricing.

GPT for Excel – Autosheet and GPT for Word can connect to any AI service that provides an OpenAI-compatible API endpoint. You can connect to two main types of services: cloud-based platforms, which provide access to models over the internet with no software installation or setup required on your part, and local servers, which you run on a local machine, such as your own computer or another computer on a local network.

You can use the endpoint-connected models both as Agent models (only in Excel) and bulk models, but the endpoint requirements are different:

  • Agent models: The endpoint must be compatible with the OpenAI Responses API and be publicly accessible over the internet through HTTPS. In addition, the model must support a context size of at least 32K tokens.

  • Bulk models: The endpoint must be compatible with the OpenAI Chat Completions API.

Here are some popular services that provide an OpenAI-compatible API endpoint:

info

Depending on the model you use, the model settings defined in GPT for Excel – Autosheet or GPT for Word (temperature (creativity), top-p, frequency penalty, and presence penalty) may not work as expected. If you get bad results, try tweaking the settings.

Prerequisites
  • You are the owner or an admin of the space.

  • You have an endpoint URL and, if needed, an API key for accessing the service.

  • The endpoint supports the following OpenAI-compatible API resource path: /v1/responses

  • The endpoint is publicly accessible over the internet through HTTPS.

  • The model supports a context size of at least 32K tokens.

  1. Sign in to the Autosheet dashboard with your Microsoft or Google account.

  2. In the sidebar, select Custom API endpoints.

  3. Select the Agent models tab.

  4. Click OpenAI-compatible endpoints (Responses API).

    tip

    If you already have OpenAI-compatible API endpoints set up, click Add an OpenAI-compatible API endpoint.

  5. Define the endpoint settings:

    • Endpoint URL: Enter the URL of the service that provides the endpoint.

    • Model ID: Enter the ID of the model to use through the endpoint. The model ID is sent to the endpoint in the request payload.

    • Display name (optional): Enter a short name that identifies the model in the Agent model switcher.

    • API key (optional): If required, enter the API key for accessing the service.

    Define OpenAI-compatible API endpoint settings
  6. Click Check to validate the settings and click Save.

    Save OpenAI-compatible API endpoint settings

You have set up the OpenAI-compatible API endpoint. All space users can now select the model in the Agent model switcher in GPT for Excel – Autosheet.

What's next​