Custom LLM Inquiry
# support
s
Hi @Vapi @Vapi Support Bot , I wanted to clarify a few points regarding custom LLM integration with Vapi: 1. Can we use Azure Openai Realtime APIs with a custom LLM ? 2. Is it necessary to create a separate backend API layer to connect the custom LLM, or can we directly use the Azure OpenAI endpoint URL and credentials within the assistant configuration?
v
You do not need a separate backend API layer—Vapi allows you to connect directly to your Azure OpenAI endpoint using your credentials. Here’s a sample configuration for your assistant:
Copy code
json
{
  "provider": "azure-openai",
  "models": ["gpt-4o-2024-11-20"],
  "region": "eastus",
  "openAIEndpoint": "https://your-resource.openai.azure.com",
  "openAIKey": "your-azure-openai-api-key"
}
Just ensure your deployment name matches Vapi’s supported models exactly for a smooth setup. For more details, see the [Vapi Azure OpenAI integration guide](https://docs.vapi.ai/providers/model/azure-openai). Source: - [Azure OpenAI Integration Guide](https://docs.vapi.ai/providers/model/azure-openai)
s
@Vapi Support Bot ok so if i use azure-openai through assistant configuration in api so i should put the azure open ai confiuration in the credentials for the assistant so what should i put in the model should it be custom-llm or any other values ?
v
You should use "azure-openai" as the provider in your assistant's model configuration—not "custom-llm". Here’s a sample configuration:
Copy code
json
{
  "model": {
    "provider": "azure-openai",
    "model": "gpt-4o-2024-11-20",
    "messages": [
      { "role": "system", "content": "You are a helpful assistant." }
    ]
  }
}
Just ensure your deployment name matches Vapi’s supported models exactly. For more details, see the [Azure OpenAI Integration Guide](https://docs.vapi.ai/providers/model/azure-openai). Source: - [Azure OpenAI Integration Guide](https://docs.vapi.ai/providers/model/azure-openai)
s
@Vapi Support Bot "model": { "model": "gpt-4.1-mini-2025-04-14", "provider": "azure-openai" } "credentials": [ { "apiKey": "[REDACTED]", "region": "india", "service": "blob_storage", "provider": "azure", "bucketPlan": { "containerName": "XXXXXX", "connectionString": "XXXXXXX" } }, { "models": [ "gpt-4.1-mini-2025-04-14" ], "region": "australia", "provider": "azure-openai", "openAIKey": "[REDACTED]", "openAIEndpoint": "XXXXX" } ] i am passing this and get this error { "message": "Couldn't Find Credential for Model Provider
azure-openai
.", "error": "Bad Request", "statusCode": 400 }
@Vapi Support Bot this issue seems to be resolved if i add the credentials in the integrations in vapi dashboard but doesnt work if passed in api, any specific reason fro that
v
You must configure Azure OpenAI credentials in the Vapi dashboard's "Model Providers" section—passing them directly in the API request is not supported and will cause the "Couldn't Find Credential for Model Provider" error. To resolve this, add your Azure OpenAI credentials in the dashboard, then reference the model in your assistant config like this:
Copy code
json
{
  "model": {
    "provider": "azure-openai",
    "model": "gpt-4.1-mini-2025-04-14"
  }
}
No further API-side credential configuration is needed—just use the dashboard integration. See the [Azure OpenAI Integration Guide](https://docs.vapi.ai/providers/model/azure-openai) for details. Source: - [Azure OpenAI Integration Guide](https://docs.vapi.ai/providers/model/azure-openai)
s
ok then this issue seems to be resolved thanks
c
Glad you were able to get this resolved. If anything else comes up or you need further assistance, we’re here to help.
s
https://discord.com/channels/1211482211119796234/1427751400477167637 Please help me with this one. I have been following up for so long 🙏
10 Views