Skip to content

Models

GET https://api.client.com/v1/models

Lists the currently available models, and provides basic information about each one such as the owner and availability.

Terminal window
curl https://api.aifoundryhub.com/v1/models \
-H "Authorization: Bearer $AI_FOUNDRY_HUB_API_KEY"

A list of model objects.

{
"object": "list",
"data": [
{
"id": "model-id-0",
"object": "model",
"created": 1686935002,
"owned_by": "organization-owner"
},
{
"id": "model-id-1",
"object": "model",
"created": 1686935002,
"owned_by": "organization-owner"
},
{
"id": "model-id-2",
"object": "model",
"created": 1686935002,
"owned_by": "openai"
}
]
}

GET https://api.client.com/v1/models/{model}

Retrieves a model instance, providing basic information about the model such as the owner and permissioning.

Terminal window
curl https://api.aifoundryhub.com/v1/models/gpt-5 \
-H "Authorization: Bearer $AI_FOUNDRY_HUB_API_KEY"

The model object matching the specified ID.

{
"id": "gpt-5",
"object": "model",
"created": 1686935002,
"owned_by": "openai"
}

Describes a model offering that can be used with the API.

{
"id": "gpt-5",
"object": "model",
"created": 1686935002,
"owned_by": "openai"
}