Skip to main content
Use OpenAI models through Azure’s infrastructure. Learn more here. Azure OpenAI provides access to OpenAI’s models like gpt-4o, gpt-5-mini, and more.

Installation

Authentication

Navigate to Azure OpenAI on the Azure Portal and create a service. Then, using the Azure AI Foundry portal, create a deployment and set your environment variables:

Example

Use AzureOpenAI with your Agent:

Prompt caching

Prompt caching happens automatically with the AzureOpenAI model. Read more about how OpenAI handles caching in their docs.

Advanced Examples

View more examples here.

Parameters

AzureOpenAI also supports the parameters of OpenAI.