{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-openai/json-schema/microsoft-azure-openai-model-list-schema.json",
  "title": "ModelList",
  "description": "Represents a list of models.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-openai-models-api-openapi.yml#/components/schemas/ModelList",
  "type": "object",
  "properties": {
    "object": {
      "$ref": "#/$defs/TypeDiscriminator"
    },
    "data": {
      "description": "The list of items.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Model"
      }
    }
  },
  "$defs": {
    "Capabilities": {
      "title": "Capabilities",
      "description": "The capabilities of a base or fine tune model.",
      "required": [
        "chat_completion",
        "completion",
        "embeddings",
        "fine_tune",
        "inference"
      ],
      "type": "object",
      "properties": {
        "fine_tune": {
          "description": "A value indicating whether a model can be used for fine tuning.",
          "type": "boolean"
        },
        "inference": {
          "description": "A value indicating whether a model can be deployed.",
          "type": "boolean"
        },
        "completion": {
          "description": "A value indicating whether a model supports completion.",
          "type": "boolean"
        },
        "chat_completion": {
          "description": "A value indicating whether a model supports chat completion.",
          "type": "boolean"
        },
        "embeddings": {
          "description": "A value indicating whether a model supports embeddings.",
          "type": "boolean"
        }
      }
    },
    "Deprecation": {
      "title": "Deprecation",
      "description": "Defines the dates of deprecation for the different use cases of a model.\nUsually base models support 1 year of fine tuning after creation. Inference is typically supported 2 years after creation of base or\nfine tuned models. The exact dates are specified in the properties.",
      "required": [
        "inference"
      ],
      "type": "object",
      "properties": {
        "fine_tune": {
          "format": "unixtime",
          "description": "The end date of fine tune support of this model. Will be `null` for fine tune models.",
          "type": "integer"
        },
        "inference": {
          "format": "unixtime",
          "description": "The end date of inference support of this model.",
          "type": "integer"
        }
      }
    },
    "FineTuningState": {
      "title": "FineTuningState",
      "description": "The state of a finetunes object or fine tuning job.",
      "enum": [
        "created",
        "pending",
        "running",
        "succeeded",
        "cancelled",
        "failed"
      ],
      "type": "string",
      "readOnly": true,
      "x-ms-enum": {
        "name": "FineTuningState",
        "modelAsString": true,
        "values": [
          {
            "value": "created",
            "description": "The operation was created. This state is not returned by Azure OpenAI and exposed only for compatibility. It can be categorized as an inactive state."
          },
          {
            "value": "pending",
            "description": "The operation is not yet queued to be processed in the future. It can be categorized as an inactive state."
          },
          {
            "value": "running",
            "description": "The operation has started to be processed. It can be categorized as an active state."
          },
          {
            "value": "succeeded",
            "description": "The operation has successfully be processed and is ready for consumption. It can be categorized as a terminal state."
          },
          {
            "value": "cancelled",
            "description": "The operation has been cancelled and is incomplete. It can be categorized as a terminal state."
          },
          {
            "value": "failed",
            "description": "The operation has completed processing with a failure and cannot be further consumed. It can be categorized as a terminal state."
          }
        ]
      }
    },
    "LifeCycleStatus": {
      "title": "LifeCycleStatus",
      "description": "The life cycle status of a model.\nNote: A model can be promoted from \"preview\" to \"generally-available\", but never from \"generally-available\" to \"preview\".",
      "enum": [
        "preview",
        "generally-available"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "LifeCycleStatus",
        "modelAsString": true,
        "values": [
          {
            "value": "preview",
            "description": "Model is in preview and covered by the service preview terms."
          },
          {
            "value": "generally-available",
            "description": "Model is generally available."
          }
        ]
      }
    },
    "Model": {
      "title": "Model",
      "description": "A model is either a base model or the result of a successful fine tune job.",
      "required": [
        "capabilities",
        "deprecation",
        "lifecycle_status"
      ],
      "type": "object",
      "properties": {
        "object": {
          "$ref": "#/$defs/TypeDiscriminator"
        },
        "created_at": {
          "format": "unixtime",
          "description": "A timestamp when this job or item was created (in unix epochs).",
          "type": "integer",
          "readOnly": true
        },
        "id": {
          "description": "The identity of this item.",
          "type": "string",
          "readOnly": true
        },
        "status": {
          "$ref": "#/$defs/FineTuningState"
        },
        "model": {
          "description": "The base model identity (model-id) if this is a fine tune model; otherwise `null`.",
          "type": "string"
        },
        "fine_tune": {
          "description": "The fine tune job identity (fine-tune-id) if this is a fine tune model; otherwise `null`.",
          "type": "string"
        },
        "capabilities": {
          "$ref": "#/$defs/Capabilities"
        },
        "lifecycle_status": {
          "$ref": "#/$defs/LifeCycleStatus"
        },
        "deprecation": {
          "$ref": "#/$defs/Deprecation"
        }
      }
    },
    "TypeDiscriminator": {
      "title": "TypeDiscriminator",
      "description": "Defines the type of an object.",
      "enum": [
        "list",
        "fine_tuning.job",
        "file",
        "fine_tuning.job.event",
        "fine_tuning.job.checkpoint",
        "model",
        "batch",
        "upload",
        "upload.part"
      ],
      "type": "string",
      "readOnly": true,
      "x-ms-enum": {
        "name": "TypeDiscriminator",
        "modelAsString": true,
        "values": [
          {
            "value": "list",
            "description": "This object represents a list of other objects."
          },
          {
            "value": "fine_tuning.job",
            "description": "This object represents a fine tune job."
          },
          {
            "value": "file",
            "description": "This object represents a file."
          },
          {
            "value": "fine_tuning.job.event",
            "description": "This object represents an event of a fine tuning job."
          },
          {
            "value": "fine_tuning.job.checkpoint",
            "description": "This object represents a checkpoint of a fine tuning job."
          },
          {
            "value": "model",
            "description": "This object represents a model (can be a base model or fine tune job result)."
          },
          {
            "value": "batch",
            "description": "This object represents a batch."
          },
          {
            "value": "upload",
            "description": "This object represents a file upload."
          },
          {
            "value": "upload.part",
            "description": "This object represents part of a file upload."
          }
        ]
      }
    }
  }
}