Prerequisites
Before integrating Azure OpenAI with Keywords AI, ensure you have:- An active Azure OpenAI subscription
- At least one deployed model in your Azure OpenAI resource
- Your deployment name matches those listed on our Models page
How to get your Azure OpenAI credentials
Access Azure Portal

Get your API Base URL (endpoint)
https://api.openai.com, but for Azure it’s unique to your resource (e.g., https://your-resource.openai.azure.com/).
Get your API Key
Choose API Version
Common API versions
Common API versions
2024-10-21(recommended)2024-08-01-preview2024-06-012024-02-01
Azure OpenAI models compatibility
✅ Supported Frameworks
✅ Supported Frameworks
❌ Unsupported Frameworks
❌ Unsupported Frameworks
Add Azure OpenAI credentials
There are 2 ways to add your Azure OpenAI credentials to your requests:Option 1: Via UI (Recommended)
Navigate to Providers page

Add your credentials
What is api_base?
What is api_base?
api_base (synonyms: base_url, endpoint) is the base URL for your Azure OpenAI resource.Examples:- Azure OpenAI:
https://your-resource.openai.azure.com/ - OpenAI (for reference):
https://api.openai.com
2024-10-21). See available versions.
Map your deployment name
azure/{your-deployment-name} in the model test input.For example:- If your Azure deployment name is
gpt-4o, use:azure/gpt-4o - If your Azure deployment name is
my-gpt4-deployment, use:azure/my-gpt4-deployment

(Optional) Specify models to use these credentials
- Go to the Models page
- Copy the model ID (e.g.,
azure/gpt-4o) - Paste it in the input field
- Press
Enterto add the model

Option 2: Via Code
- OpenAI SDK
- Standard API
Install OpenAI SDK
Initialize client with Azure credentials
(Optional) Map custom deployment names
model_name_map to specify the mapping.Example: If you deployed gpt-4o with a custom name like my-gpt4-prod, map it like this:model_name_map only works when your credentials are valid.(Optional) Override credentials for specific models
(Optional) Load balance between multiple deployments
Testing your integration
Requirements and troubleshooting
Requirements
- Deployment name format: Use
azure/{deployment-name}format (e.g.,azure/gpt-4o) - Credentials match: Ensure your deployment name is correctly mapped if using custom names
- Regional availability: Confirm your models are available in the region specified by your credentials
- API version: Use a supported Azure OpenAI API version
Common issues
Error: Deployment not found
Error: Deployment not found
- Check your Azure deployment name in the Azure Portal
- Use
model_name_mapto map the standard model name to your custom deployment name - Ensure you’re using the
azure/prefix (e.g.,azure/gpt-4o)
Error: Invalid credentials
Error: Invalid credentials
- Verify
api_keyin Azure Portal → Manage Keys - Verify
api_basematches your resource endpoint exactly (including trailing slash) - Verify
api_versionis a valid version
Model test call input is confusing
Model test call input is confusing
- Model test call input:
azure/gpt-4o(the model identifier withazure/prefix) - Message/chat input: Your actual message like “Hello, how are you?”
azure/gpt-4o for Azure providers, not just gpt-4o.Supported models
DeepSeek models
azure_deepseek/deepseek-v3azure_deepseek/deepseek-chatazure_deepseek/deepseek-reasonerazure_deepseek/deepseek-r1
O-series models
azure/o1azure/o3azure/o3-miniazure/o4-mini
GPT-4 series
azure/gpt-4azure/gpt-4-32kazure/gpt-4-1106-previewazure/gpt-4-vision-previewazure/gpt-4oazure/gpt-4o-miniazure/gpt-4o-2024-08-06azure/gpt-4.1azure/gpt-4.1-miniazure/gpt-4.1-nano
GPT-5 series
azure/gpt-5azure/gpt-5-mini
GPT-3.5 series
azure/gpt-35-turbo