{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bitbybit-dev/json-schema/bitbybit-dev-model-batch-definitions-response-schema.json",
  "title": "ModelBatchDefinitionsResponse",
  "description": "Success envelope containing multiple model definitions",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bitbybit-dev-models-api-openapi.yml#/components/schemas/ModelBatchDefinitionsResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true
    },
    "data": {
      "$ref": "#/$defs/ModelBatchDefinitions"
    }
  },
  "required": [
    "ok",
    "data"
  ],
  "additionalProperties": false,
  "$defs": {
    "ModelBatchDefinitions": {
      "type": "object",
      "properties": {
        "definitions": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/ModelDefinition"
          },
          "description": "Model definitions keyed by slug. Each contains parameter schemas and defaults."
        }
      },
      "required": [
        "definitions"
      ],
      "additionalProperties": false,
      "description": "Definitions for multiple models in a single response"
    },
    "ModelDefinition": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Model slug used in API paths (e.g. 'dragon-cup')"
        },
        "displayName": {
          "type": "string",
          "description": "Human-friendly model name for UI display"
        },
        "description": {
          "type": "string",
          "description": "What this model creates and its key characteristics"
        },
        "params": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ModelParamDefinition"
          },
          "description": "All accepted parameters with types, descriptions, and defaults"
        },
        "defaults": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {},
          "description": "Complete default parameter values map"
        }
      },
      "required": [
        "name",
        "displayName",
        "description",
        "params",
        "defaults"
      ],
      "additionalProperties": false,
      "description": "Full definition of a parametric model including all parameters and their constraints"
    },
    "ModelParamApiType": {
      "type": "string",
      "enum": [
        "number",
        "integer",
        "boolean",
        "array"
      ],
      "description": "Data type of a model parameter: 'number' (float), 'integer' (whole number), 'boolean' (true/false), 'array' (list of values)"
    },
    "ModelParamDefinition": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Parameter name as used in the request body"
        },
        "type": {
          "description": "Expected data type for this parameter",
          "$ref": "#/$defs/ModelParamApiType"
        },
        "description": {
          "type": "string",
          "description": "Human-readable explanation of what this parameter controls"
        },
        "default": {
          "description": "Default value used when the parameter is omitted"
        },
        "items": {
          "description": "Element type descriptor (only present for array parameters)",
          "type": "object",
          "properties": {
            "type": {
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "name",
        "type",
        "description",
        "default"
      ],
      "additionalProperties": false,
      "description": "Schema definition for a single model parameter"
    }
  }
}