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

2 answers

Sort by: Oldest
  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?

  2. Sai Kiran Mudavath 175 Reputation points Microsoft External Staff Moderator
    2026-10-01T09:27:12.85+00:00

    Hi @Operations ,

    An Azure OpenAI resource provides the service endpoint, but a model such as gpt-4o-mini must be deployed separately before you can use it for inference.

    Since you created an Azure OpenAI resource rather than a new Foundry resource, you can deploy the model through the Foundry classic portal:

    1. Sign in to Microsoft Foundry at https://ai.azure.com and make sure the New Foundry toggle is off.
    2. Under Keep building with Foundry, select View all resources.
    3. Select your Azure OpenAI resource. If prompted to upgrade the resource to Foundry, select Cancel to continue with the existing Azure OpenAI resource.
    4. In the left pane, under Shared resources, select Deployments.
    5. Select + Deploy model → Deploy base model.
    6. Select the required model, such as gpt-4o-mini, and select Confirm.
    7. Configure the Deployment name and Deployment type, then select Deploy.

    After the deployment is created, use the deployment name when making API calls rather than the underlying model name.

    For the complete steps, please refer to Create and deploy an Azure OpenAI in Microsoft Foundry Models resource (classic).

    Was this answer helpful?

    0 comments No comments

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.