static-pinkS
VAPI6mo ago
static-pink

Trouble Connecting Azure gpt-4.1 / gpt-4o-mini to VAPI

Hey team! 👋 I’m trying to connect my Azure OpenAI deployment to VAPI and I’m running into some issues with the integration.

✅ What I’ve tried:

  1. **Model:** gpt-4o-mini
    • Deployment name:
      gpt-4o-mini
    • Region:
      eastus2
    • API version:
      2025-01-01-preview
    • Status: Fails connection test in VAPI, but works perfectly via Python.
  2. **Model:** gpt-4.1
    • Deployment name:
      gpt-4.1
    • Region:
      eastus2
    • API version:
      2025-01-01-preview
    • Endpoint:
      https://samue-mbut5u57-eastus2.cognitiveservices.azure.com/openai/deployments/gpt-4.1/chat/completions?api-version=2025-01-01-preview
    • Status: Also fails the VAPI test, but works fine using the Python SDK.
🔐 I’m using the correct API key, region, and endpoint. The
OCP-APIM-Subscription-Key
is left blank (as recommended for Azure OpenAI). Everything works fine outside of VAPI.

❓ Are these models (especially gpt-4o-mini or gpt-4.1) supported yet in VAPI AI? Or could the issue be related to the newer
2025-01-01-preview
API version?

Would appreciate any guidance — thanks a lot in advance! 🙏
Was this page helpful?