Returns information about the AI model deployed. The method makes a REST API call to the /info route on the given endpoint. This method will only work when using Serverless API, Managed Compute, or Model Inference endpoints. Azure OpenAI endpoints don't support it.

Deprecated: This API is deprecated. Use the OpenAI API instead. See migration guide.

get/info

Request

  • Base URL
    https://{resource}.services.ai.azure.com/models
  • URL
    https://{resource}.services.ai.azure.com/models/info
  • Auth
    • API key in header api-key
    • or OAuth 2
      Implicit: https://login.microsoftonline.com/common/oauth2/v2.0/authorize
      Scopes: https://cognitiveservices.azure.com/.default

Query parameters

api-versionstring required

The API version to use for this operation.

Response

The request has succeeded.

model_namestring required

The name of the AI model. For example: Phi21

model_type'embeddings' | 'chat-completion' required

The type of AI model

model_provider_namestring required

The model provider name. For example: Microsoft

Changes

No recorded changes to this operation across all 8 revisions of this API.