You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/api-management/azure-openai-api-from-specification.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Import an Azure OpenAI API as REST API - Azure API Management
3
-
description: How to import an Azure OpenAI API as a REST API from the Azure OpenAI in Foundry Models or from an OpenAPI specification.
3
+
description: How to import an Azure OpenAI API as a REST API from Azure OpenAI in Foundry Models or from an OpenAPI specification.
4
4
ms.service: azure-api-management
5
5
author: dlepow
6
6
ms.author: danlep
@@ -20,7 +20,8 @@ You can import AI model endpoints deployed in [Azure OpenAI in Foundry Models](/
20
20
21
21
This article shows two options to import an Azure OpenAI API into an Azure API Management instance as a REST API:
22
22
23
-
-[Import an Azure OpenAI API directly from Azure OpenAI in Foundry Models](#option-1-import-api-from-azure-openai) (recommended)
23
+
-[Import an Azure OpenAI API directly from Azure OpenAI](#option-1-import-api-from-azure-openai) (recommended)
24
+
24
25
-[Download and add the OpenAPI specification](#option-2-add-an-openapi-specification-to-api-management) for Azure OpenAI and add it to API Management as an OpenAPI API.
25
26
26
27
Learn more about managing AI APIs in API Management:
@@ -35,12 +36,12 @@ Learn more about managing AI APIs in API Management:
35
36
Make a note of the ID (name) of the deployment. You'll need it when you test the imported API in API Management.
36
37
37
38
> [!NOTE]
38
-
> API Management policies such as [azure-openai-token-limit](azure-openai-token-limit-policy.md) and [azure-openai-emit-token-metric](azure-openai-emit-token-metric-policy.md) are supported for certain API endpoints exposed through specific Azure OpenAI models. For more information, see [Supported Azure OpenAI in Foundry Models](azure-openai-token-limit-policy.md).
39
+
> API Management policies such as [azure-openai-token-limit](azure-openai-token-limit-policy.md) and [azure-openai-emit-token-metric](azure-openai-emit-token-metric-policy.md) are supported for certain API endpoints exposed through specific Azure OpenAI models. For more information, see [Supported Azure OpenAI models](azure-openai-token-limit-policy.md#supported-azure-openai-in-foundry-models-models).
39
40
40
41
- Permissions to grant access to the Azure OpenAI resource from the API Management instance.
41
42
42
-
## Option 1. Import API from Azure OpenAI
43
-
43
+
## Option 1. Import API from Azure OpenAI
44
+
44
45
You can import an Azure OpenAI API directly from Azure OpenAI to API Management.
@@ -135,8 +136,8 @@ To ensure that your Azure OpenAI API is working as expected, test it in the API
135
136
1. Select an operation that's compatible with the model you deployed in the Azure OpenAI resource.
136
137
The page displays fields for parameters and headers.
137
138
1. In **Template parameters**, enter the following values:
138
-
* `deployment-id` - the ID of a deployment in the Azure OpenAI
139
-
* `api-version` - a valid Azure OpenAI API version, such as the API version you selected when you imported the API.
139
+
* `deployment-id` - the ID of a deployment in Azure OpenAI
140
+
* `api-version` - a valid Azure OpenAI API version, such as the API version you selected when you imported the API.
140
141
:::image type="content" source="media/azure-openai-api-from-specification/test-azure-openai-api.png" alt-text="Screenshot of testing an Azure OpenAI API in the portal." lightbox="media/azure-openai-api-from-specification/test-azure-openai-api.png" :::
141
142
1. Enter other parameters and headers as needed. Depending on the operation, you might need to configure or update a **Request body**.
0 commit comments