Overview
Azure OpenAI differs from the standard OpenAI API:- Models are deployed to your own Azure resource
- Access via your Azure resource endpoint, not
api.openai.com - Models are referenced by deployment names you define
- Supports both standard resource mode and Azure AI Foundry (custom base URL)
Supported Models
Any OpenAI model available in Azure can be deployed. Common deployments:| Deployment | Model | Notes |
|---|---|---|
gpt-4o | GPT-4o | Most common |
gpt-4o-mini | GPT-4o Mini | Cost-efficient |
o1 | o1 | Reasoning |
gpt-4-turbo | GPT-4 Turbo | Legacy |
Setup
Create an Azure OpenAI resource
In the Azure Portal, create an Azure OpenAI resource and deploy a model.
Get your credentials
From your Azure OpenAI resource, copy:
- API key (under Keys and Endpoint)
- Endpoint URL or Resource Name
- Deployment name
Set environment variables
Option A - Resource Name mode (standard):Option B - Base URL mode (AI Foundry / custom endpoint):
Environment Variables
Your Azure OpenAI API key.
Your Azure OpenAI resource name (e.g.,
my-openai-resource). Used in standard mode.Full endpoint URL (e.g.,
https://my-resource.openai.azure.com). Used in AI Foundry / custom endpoint mode. Takes precedence over AZURE_OPENAI_RESOURCE_NAME.Alias for
AZURE_OPENAI_BASE_URL.Default deployment name to use when no model is specified.
API version to use. Defaults to
2024-10-21.Configuration Example
- Resource Name mode
- Base URL mode
- settings.yml
Model Aliases
| Alias | Resolves To |
|---|---|
azure | Your configured deployment |
azure-gpt | Your configured deployment |
azure or azure-gpt alias, profClaw uses the deployment name from AZURE_OPENAI_DEPLOYMENT_NAME.
Usage Examples
Notes
- Azure is ranked 3rd in auto-selection priority after Anthropic and OpenAI.
- All Azure GPT-4+ deployments support native tool calling.
- For private network setups, configure a custom base URL pointing to your private endpoint.
- API version
2024-10-21is the minimum supported for function calling with structured outputs.
Related
- AI Providers Overview - Compare all 37 supported providers
- OpenAI - Direct OpenAI API without Azure infrastructure
- Amazon Bedrock - AWS-native alternative for enterprise deployments
- profclaw provider - Add and test providers from the CLI