Api referenceChat Completions API

List available models

Retrieves a list of available models that can be used for chat completions or other tasks. Returns either simple model list or detailed list with provider metadata based on X-PROVIDER-DATA header.

GET
/v1/models
Authorization<token>

Type "Bearer" followed by a space and JWT token.

In: header

Header Parameters

X-PROVIDER-DATA?string

Set to 'true' to include provider metadata in response

Value in"true" | "false"

Response Body

application/json

application/json

application/json

curl -X GET "https://loading/v1/models"
{
  "data": [
    {
      "category": "string",
      "category_order_number": 0,
      "created": 0,
      "id": "string",
      "model_display_name": "string",
      "model_order_number": 0,
      "object": "string",
      "owned_by": "string",
      "provider_id": "string",
      "provider_name": "string",
      "provider_vendor": "string"
    }
  ],
  "object": "string"
}
{
  "code": "string",
  "error": "string",
  "message": "string",
  "request_id": "string"
}
{
  "code": "string",
  "error": "string",
  "message": "string",
  "request_id": "string"
}