{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/deapi-ai/json-schema/deapi-ai-client-diffusion-model-collection-schema.json",
  "title": "ClientDiffusionModelCollection",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/deapi-ai-openapi.json#/components/schemas/ClientDiffusionModelCollection",
  "properties": {
    "data": {
      "description": "List of available models",
      "type": "array",
      "items": {
        "$ref": "#/$defs/ClientDiffusionModelResource"
      }
    }
  },
  "type": "object",
  "$defs": {
    "ClientDiffusionModelResource": {
      "properties": {
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "inference_types": {
          "description": "Available inference types for this model with their specific configurations",
          "type": "object"
        },
        "info": {
          "description": "Model specifications including limits, features, and defaults. Structure varies by model type.",
          "type": "object",
          "additionalProperties": true
        },
        "loras": {
          "description": "Available LoRA models for this diffusion model. Only present when the model supports LoRA and has LoRA models available.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ClientLoraResource"
          }
        },
        "languages": {
          "description": "Available languages and voices for this model. Only present for TTS models that support multiple languages.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ClientLanguageResource"
          }
        }
      },
      "type": "object"
    },
    "ClientLanguageResource": {
      "properties": {
        "name": {
          "description": "Language display name",
          "type": "string"
        },
        "slug": {
          "description": "Language identifier slug",
          "type": "string"
        },
        "voices": {
          "description": "Available voices for this language",
          "type": "array",
          "items": {
            "$ref": "#/$defs/ClientVoiceResource"
          }
        }
      },
      "type": "object"
    },
    "ClientLoraResource": {
      "properties": {
        "display_name": {
          "description": "Human friendly Lora name",
          "type": "string"
        },
        "name": {
          "description": "Lora name",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ClientVoiceResource": {
      "properties": {
        "name": {
          "description": "Voice display name",
          "type": "string"
        },
        "slug": {
          "description": "Voice identifier slug",
          "type": "string"
        },
        "gender": {
          "description": "Voice gender classification",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    }
  }
}