Skip to content

Commit a6158de

Browse files
author
gitName
committed
list formatting, terminology
1 parent bf4d723 commit a6158de

File tree

3 files changed

+27
-21
lines changed

3 files changed

+27
-21
lines changed

articles/api-management/TOC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
href: azure-ai-foundry-api.md
243243
- name: Import Azure OpenAI API
244244
href: azure-openai-api-from-specification.md
245-
- name: Import OpenAI-compatible LLM API
245+
- name: Import language model API
246246
href: openai-compatible-llm-api.md
247247
- name: Import Google Gemini API
248248
href: openai-compatible-google-gemini-api.md

articles/api-management/openai-compatible-google-gemini-api.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.service: azure-api-management
55
author: dlepow
66
ms.author: danlep
77
ms.topic: how-to
8-
ms.date: 07/03/2025
8+
ms.date: 07/06/2025
99
ms.collection: ce-skilling-ai-copilot
1010
ms.custom: template-how-to
1111
---
@@ -18,16 +18,16 @@ This article shows you how to import an OpenAI-compatible Google Gemini API to a
1818

1919
Learn more about managing AI APIs in API Management:
2020

21-
* [Generative AI gateway capabilities in Azure API Management](genai-gateway-capabilities.md)
22-
* [Import an OpenAI-compatible language model API](openai-compatible-llm-api.md)
21+
* [AI gateway capabilities in Azure API Management](genai-gateway-capabilities.md)
22+
* [Import a language model API](openai-compatible-llm-api.md)
2323

2424
## Prerequisites
2525

2626
- An existing API Management instance. [Create one if you haven't already](get-started-create-service-instance.md).
2727
- An API key for the Gemini API. If you don't have one, create it at [Google AI Studio](https://aistudio.google.com/apikey) and store it in a safe location.
2828

2929

30-
## Import an OpenAI-compatible Gemini model using the portal
30+
## Import an OpenAI-compatible Gemini API using the portal
3131

3232
1. In the [Azure portal](https://portal.azure.com), navigate to your API Management instance.
3333
1. In the left menu, under **APIs**, select **APIs** > **+ Add API**.
@@ -37,15 +37,17 @@ Learn more about managing AI APIs in API Management:
3737
1. In **URL**, enter the following base URL from the [Gemini OpenAI compatibility documentation](https://ai.google.dev/gemini-api/docs/openai):
3838
`https://generativelanguage.googleapis.com/v1beta/openai`
3939

40-
1. In **Path**, append a path that your API Management instance uses to route requests to the Gemini API endpoints.
41-
1. In **Type**, select **Create OpenAI API**.
42-
1. In **Access key**, enter the following:
43-
1. **Header name**: *Authorization*.
44-
1. **Header value (key)**: `Bearer` followed by your API key for the Gemini API.
45-
1. On the remaining tabs, optionally configure policies to manage token consumption, semantic caching, and AI content safety. For details, see [Import an OpenAI-compatible language model API](openai-compatible-llm-api.md).
46-
40+
1. In **Path**, append a path that your API Management instance uses to route requests to the Gemini API endpoints.
41+
1. In **Type**, select **Create OpenAI API**.
42+
1. In **Access key**, enter the following:
43+
1. **Header name**: *Authorization*.
44+
1. **Header value (key)**: `Bearer` followed by your API key for the Gemini API.
45+
4746
:::image type="content" source="media/openai-compatible-google-gemini-api/gemini-import.png" alt-text="Screenshot of importing a Gemini LLM API in the portal.":::
48-
1. Select **Create**.
47+
48+
1. On the remaining tabs, optionally configure policies to manage token consumption, semantic caching, and AI content safety. For details, see [Import a language model API](openai-compatible-llm-api.md).
49+
1. Select **Review**
50+
1. After settings are validated, select **Create**.
4951

5052
API Management creates the API and configures the following:
5153

@@ -83,4 +85,6 @@ After importing the API, you can test the chat completions endpoint for the API.
8385

8486
:::image type="content" source="media/openai-compatible-google-gemini-api/gemini-test.png" alt-text="Screenshot of testing a Gemini LLM API in the portal.":::
8587

86-
[!INCLUDE [api-management-define-api-topics.md](../../includes/api-management-define-api-topics.md)]
88+
## Related content
89+
90+
* [AI gateway capabilities in Azure API Management](genai-gateway-capabilities.md)

articles/api-management/openai-compatible-llm-api.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
---
2-
title: Import OpenAI-Compatible Language Model API - Azure API Management
3-
description: How to import an OpenAI-compatible language model or a non-Azure-provided AI model as a REST API in Azure API Management.
2+
title: Import Language Model API - Azure API Management
3+
description: How to import an OpenAI-compatible language model or a non-OpenAI-compatible AI model as a REST API in Azure API Management.
44
ms.service: azure-api-management
55
author: dlepow
66
ms.author: danlep
77
ms.topic: how-to
8-
ms.date: 06/04/2025
8+
ms.date: 07/06/2025
99
ms.update-cycle: 180-days
1010
ms.collection: ce-skilling-ai-copilot
1111
ms.custom: template-how-to
1212
---
1313

14-
# Import an OpenAI-compatible language model API
14+
# Import a language model API
1515

1616
[!INCLUDE [api-management-availability-all-tiers](../../includes/api-management-availability-all-tiers.md)]
1717

18-
You can import OpenAI-compatible language model endpoints to your API Management instance as APIs. For example, you might want to manage an LLM that you self-host, or that's hosted on an inference provider other than Azure AI services. Use AI gateway policies and other capabilities in API Management to simplify integration, improve observability, and enhance control over the model endpoints.
18+
You can import OpenAI-compatible language model endpoints to your API Management instance as APIs. You can also import language models that aren't compatible with OpenAI as passthrough APIs, which forward requests to the backend. For example, you might want to manage an LLM that you self-host, or that's hosted on an inference provider other than Azure AI services. Use AI gateway policies and other capabilities in API Management to simplify integration, improve observability, and enhance control over the model endpoints.
1919

2020
Learn more about managing AI APIs in API Management:
2121

22-
* [Generative AI gateway capabilities in Azure API Management](genai-gateway-capabilities.md)
22+
* [AI gateway capabilities in Azure API Management](genai-gateway-capabilities.md)
2323

2424
## Language model API types
2525

@@ -92,4 +92,6 @@ To ensure that your LLM API is working as expected, test it in the API Managemen
9292

9393
When the test is successful, the backend responds with a successful HTTP response code and some data. Appended to the response is token usage data to help you monitor and manage your language model token consumption.
9494

95-
[!INCLUDE [api-management-define-api-topics.md](../../includes/api-management-define-api-topics.md)]
95+
## Related content
96+
97+
* [AI gateway capabilities in Azure API Management](genai-gateway-capabilities.md)

0 commit comments

Comments
 (0)