Skip to main content

model_infos

Creates, updates, deletes, gets or lists a model_infos resource.

Overview

Namemodel_infos
TypeResource
Idazure.ai_inference.model_infos

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
model_namestringThe name of the AI model. For example: Phi21. Required.
model_provider_namestringThe model provider name. For example: Microsoft Research. Required.
model_typestringThe type of the AI model. A Unique identifier for the profile. Required. Known values are: "embeddings", "image_generation", "text_generation", "image_embeddings", "audio_generation", and "chat_completion". (embeddings, image_generation, text_generation, image_embeddings, audio_generation, chat_completion)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_model_infoselectendpointReturns information about the AI model. The method makes a REST API call to the /info route on the given endpoint. This method will only work when using Serverless API or Managed Compute endpoint. It will not work for GitHub Models endpoint or Azure OpenAI endpoint.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )

SELECT examples

Returns information about the AI model. The method makes a REST API call to the /info route on the given endpoint. This method will only work when using Serverless API or Managed Compute endpoint. It will not work for GitHub Models endpoint or Azure OpenAI endpoint.

SELECT
model_name,
model_provider_name,
model_type
FROM azure.ai_inference.model_infos
WHERE endpoint = '{{ endpoint }}' -- required
;