{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vulk-dev/json-schema/vulk-dev-model-list-schema.json",
  "title": "ModelList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vulk-dev-models-api-openapi.yml#/components/schemas/ModelList",
  "type": "object",
  "properties": {
    "models": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Model"
      }
    },
    "count": {
      "type": "integer"
    }
  },
  "required": [
    "models",
    "count"
  ],
  "$defs": {
    "Model": {
      "type": "object",
      "description": "`credits` is what one generation with the model costs. A model your plan does not include has `locked: true`, a `lockReason` and the `requiredPlan` that unlocks it.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The value for `model` in POST /projects."
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "provider": {
          "type": "string"
        },
        "group": {
          "type": "string"
        },
        "credits": {
          "type": "number"
        },
        "inputs": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "text",
              "image"
            ]
          }
        },
        "locked": {
          "type": "boolean"
        },
        "lockReason": {
          "type": [
            "string",
            "null"
          ]
        },
        "requiredPlan": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "name",
        "locked"
      ]
    }
  }
}