Azure Open AI (Not Foundry)

Operations 0 Reputation points
2026-10-01T08:09:27.3333333+00:00

I have created an Azure Open AI resource (not the Foundry option) however I cant work out how to call the api for the specific models e.g. GPT‑4o‑mini. There does not seem to be any option to specify or deploy a model when creating the Azure Open AI resource or from the Created resource within the Portal ?

Azure OpenAI in Foundry Models

1 answer

Sort by: Newest
  1. AI answer

    2026-10-01T08:09:43.47+00:00

    An Azure OpenAI resource is only the service endpoint. It does not automatically select a model for requests.

    To use a model such as GPT-4o or GPT-4o-mini, a model deployment must be created after the resource exists.

    Supported programmatic model names include:

    • gpt-4o version 2024-11-20
    • gpt-4o version 2024-08-06
    • gpt-4o version 2024-05-13
    • gpt-4o-mini version 2024-07-18

    A working flow is:

    1. Create the Azure OpenAI resource in a supported standard or global-standard region.
    2. Deploy the model to that resource.
    3. Call the API against the deployment name created for that model.

    In the portal flow shown in the documentation:

    1. Open Azure AI Foundry and sign in with the credentials associated with the Azure OpenAI resource.
    2. Select the correct directory, subscription, and Azure OpenAI resource.
    3. Go to Models + endpoints.
    4. Select + Deploy model.
    5. Choose gpt-4o or gpt-4o-mini.
    6. Enter a deployment name and deploy it.
    7. Use that deployment in the playground or API calls.

    Important detail: the endpoint and key belong to the Azure OpenAI resource, but the model used by an API call is determined by the deployment name, not just by the resource endpoint. If multiple models are deployed under one resource, the request must specify the intended deployment.

    If deployment is being done programmatically instead of through the portal, the documented model names above are the names to use when creating the deployment.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.