{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apipass/main/json-schema/apipass-model-type-detail-schema.json",
  "title": "ModelTypeDetail",
  "description": "模型类型详细信息",
  "x-generated": "2026-10-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apipass-openapi.json#/components/schemas/ModelTypeDetail",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id",
      "description": "模型类型ID"
    },
    "name": {
      "type": "string",
      "title": "Name",
      "description": "端点名称"
    },
    "display_name": {
      "type": "string",
      "title": "Display Name",
      "description": "端点展示名称"
    },
    "model_id": {
      "type": "string",
      "title": "Model Id",
      "description": "关联的模型ID"
    },
    "model_name": {
      "type": "string",
      "title": "Model Name",
      "description": "模型名称"
    },
    "model_slug": {
      "type": "string",
      "title": "Model Slug",
      "description": "模型slug"
    },
    "brand": {
      "type": "string",
      "title": "Brand",
      "description": "品牌"
    },
    "task_type": {
      "type": "string",
      "title": "Task Type",
      "description": "任务类型slug"
    },
    "task_type_name": {
      "type": "string",
      "title": "Task Type Name",
      "description": "任务类型名称"
    },
    "input_schema": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Input Schema",
      "description": "输入参数schema"
    },
    "example_request": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Example Request",
      "description": "请求示例"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description",
      "description": "端点描述"
    },
    "playground_config": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Playground Config",
      "description": "Playground组件的JSON配置"
    },
    "readme": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Readme",
      "description": "Readme的JSON配置"
    },
    "api_reference": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Api Reference",
      "description": "API Reference的JSON配置"
    },
    "seo_info": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Seo Info",
      "description": "SEO相关信息"
    },
    "pricing_info": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pricing Info",
      "description": "定价信息"
    },
    "sort_order": {
      "type": "integer",
      "title": "Sort Order",
      "description": "展示排序；0 表示未设置并排在最后，非 0 数值越小越靠前",
      "default": 0
    },
    "is_active": {
      "type": "boolean",
      "title": "Is Active",
      "description": "是否启用"
    }
  },
  "type": "object",
  "required": [
    "id",
    "name",
    "display_name",
    "model_id",
    "model_name",
    "model_slug",
    "brand",
    "task_type",
    "task_type_name",
    "is_active"
  ]
}