Azure OpenAI
Video Tutorial:
What is Azure OpenAI?
Azure OpenAI Service provides REST API access to OpenAI’s powerful language models, including GPT-4.1, GPT-4o, GPT-4 Turbo, GPT-3.5 Turbo, and the Embeddings model series. These models can be easily adapted to your specific task with fine-tuning, offering enterprise-grade security, responsible AI practices, and regional availability.
Custom Azure OpenAI Integration with Vapi:
With Vapi’s Azure OpenAI integration, you can connect your own Azure OpenAI instances to leverage your custom rate limits, regional deployments, and specific configurations. This enables you to use your Azure OpenAI resources directly while maintaining full control over billing, usage limits, and data residency.
Prerequisites
Before configuring Azure OpenAI with Vapi, ensure you have:
- An active Azure subscription
- Azure OpenAI Service resource deployed
- Model deployments configured in your Azure OpenAI instance
- API keys and endpoint information from your Azure OpenAI resource
Credential Settings
You can configure your Azure OpenAI credentials in the “Model Providers” section of the “Provider Credentials” page in the Vapi dashboard.
Important Configuration Notes
Model and Deployment Names
Critical Requirement: Your Azure deployment name must exactly match one of Vapi’s supported model names. Custom deployment names are not supported.
For example, if you want to use GPT-4o, your Azure deployment must be named exactly gpt-4o-2024-11-20
(or another supported variant), not a custom name like my-custom-gpt4
.
Supported Models
Vapi supports these Azure OpenAI models (ensure your deployment names match exactly):
Latest GPT-4.1 Models:
gpt-4.1-2025-04-14
gpt-4.1-mini-2025-04-14
gpt-4.1-nano-2025-04-14
GPT-4o Models:
gpt-4o-2024-11-20
gpt-4o-2024-08-06
gpt-4o-2024-05-13
gpt-4o-mini-2024-07-18
GPT-4 Models:
gpt-4-turbo-2024-04-09
gpt-4-0125-preview
gpt-4-1106-preview
gpt-4-0613
GPT-3.5 Models:
gpt-35-turbo-0125
gpt-35-turbo-1106
Supported Regions
Vapi supports these Azure regions for OpenAI deployments:
australia
(Australia East)canadaeast
(Canada East)canadacentral
(Canada Central)eastus
(East US)eastus2
(East US 2)france
(France Central)india
(Central India)japaneast
(Japan East)japanwest
(Japan West)northcentralus
(North Central US)norway
(Norway East)southcentralus
(South Central US)swedencentral
(Sweden Central)switzerland
(Switzerland North)uaenorth
(UAE North)uk
(UK South)westus
(West US)westus3
(West US 3)
Choose the region closest to your users for optimal performance, or use a specific region for data residency compliance.
Endpoint URL Format
Use only the base endpoint URL from your Azure OpenAI resource, not the full completions URL.
Correct format:
Incorrect format:
API Management Subscription Key
The OCP-APIM-Subscription-Key
field is optional and can be left blank in most configurations. Only include this if your Azure OpenAI resource is behind Azure API Management and specifically requires this header.
Configuration Steps
Gather Azure OpenAI Details
From your Azure OpenAI resource in the Azure portal, collect:
- Base endpoint URL
- API key (from Keys and Endpoint section)
- Deployment names
- Region
Verify Deployment Names
Ensure your model deployments use names that exactly match Vapi’s supported model list. If needed, create new deployments with the correct names.
Example Configuration
Benefits of Using Azure OpenAI
Enterprise Security:
- Data residency control with regional deployments
- Enterprise-grade security and compliance (SOC 2, ISO 27001, etc.)
- Private network connectivity options
Custom Rate Limits:
- Use your own Azure OpenAI quota and rate limits
- Avoid shared resource constraints
- Predictable costs and billing through Azure
Advanced Features:
- Support for fine-tuned models
- Content filtering and safety controls
- Integration with Azure monitoring and logging
Troubleshooting
Common Error: “Resource not found”
- Cause: Incorrect endpoint URL or model deployment name
- Solution: Verify the endpoint URL format and ensure deployment names match exactly
Common Error: “No model specified in request”
- Cause: Deployment name doesn’t match the selected model in Vapi
- Solution: Create a deployment with the exact model name as expected by Vapi
Common Error: “Couldn’t Validate Azure OpenAI Credential”
- Cause: Invalid API key, incorrect endpoint, or network restrictions
- Solution: Verify API key, check endpoint URL format, and ensure network access