How to connect Azure OpenAI to AI Gateway

When connecting to Azure it’s hard to know what to do.

Here are the steps to get it to work if you run into the same problems.

  1. Go to: https://ai.azure.com/foundryProject/overview

  2. Copy-paste the API key and resource name (the subdomain for your AI Azure endpoint)

  3. Go to playground and deploy gpt-4.1-nano (use the default name). Then click Test in Vercel AI Gateway and it should work.

2 Likes

@elie222, thank you so much for sharing this with the rest of the community!

I shared it with our product team and they got our docs updated:

Appreciate the contribution - you rock! :smiley:

1 Like