{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gen-pro/json-schema/gen-pro-song-mix-request-schema.json",
  "title": "SongMixRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gen-pro-song-mixes-api-openapi.yml#/components/schemas/SongMixRequest",
  "type": "object",
  "properties": {
    "tracks": {
      "type": "array",
      "maxItems": 25,
      "items": {
        "$ref": "#/$defs/SongMixTrack"
      }
    },
    "prompt": {
      "type": [
        "string",
        "null"
      ]
    },
    "transition_style": {
      "type": [
        "string",
        "null"
      ],
      "default": "professional"
    },
    "output_format": {
      "type": "string",
      "enum": [
        "mp3",
        "wav"
      ],
      "default": "mp3"
    },
    "auto_order": {
      "type": "boolean",
      "default": true
    },
    "desired_duration_seconds": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 30,
      "maximum": 7200
    },
    "generate_missing_count": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "maximum": 25
    }
  },
  "$defs": {
    "SongMixTrack": {
      "type": "object",
      "properties": {
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "artist": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "asset_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "bpm": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 40,
          "maximum": 240
        },
        "key": {
          "type": [
            "string",
            "null"
          ]
        },
        "mood": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}