Models List returning unavailable models. Should I use another call?

pedrohpgadelha 0 Reputation points
2024-10-11T18:16:10.6766667+00:00

I am trying to get names and versions of all the models available to deploy, specifically the gpt ones. So, I am using this call https://learn.microsoft.com/en-us/rest/api/aiservices/accountmanagement/models/list?view=rest-aiservices-accountmanagement-2024-10-01&viewFallbackFrom=rest-aiservices-accountmanagement-2023-05-01&tabs=HTTP. The problem is this call is returning a list with models that are no available for deployment. For example, when I try to deploy a gpt-4o 2024-08-06 version through the Azure OpenAI Studio, I am informed it is not available for eastus2, but when I make the call above, using eastus2 as a location, I get this model version in the response list.

So, should I use a different call? Or am I using this call wrongly?

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,254 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,908 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sina Salam 12,011 Reputation points
    2024-10-11T21:18:09.9633333+00:00

    Hello pedrohpgadelha,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you are having an issue with models/list API call returning a list with models that are no available for deployment.

    Yes, the models/list API alone won't reflect the restriction when checking Region-Specific Availability try to use Azure OpenAI Service endpoint that specifically checks model availability by region. You can alternatively use the Azure OpenAI Studio or the Azure SDK to get region-specific availability.

    However, if you would like to use another API Call, the Azure Resource Manager (ARM) API might be more reliable for confirming what models are deployable, given your subscription and region.

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.


Your answer

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