{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audiopod-ai/json-schema/audiopod-ai-bulk-media-converter-request-schema.json",
  "title": "BulkMediaConverterRequest",
  "description": "Request for bulk media conversion",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audiopod-ai-media-converter-api-openapi.yml#/components/schemas/BulkMediaConverterRequest",
  "properties": {
    "input_urls": {
      "items": {
        "type": "string",
        "maxLength": 2083,
        "minLength": 1,
        "format": "uri"
      },
      "type": "array",
      "maxItems": 20,
      "minItems": 1,
      "title": "Input Urls"
    },
    "output_format": {
      "anyOf": [
        {
          "$ref": "#/$defs/app__schemas__media_converter__AudioFormat"
        },
        {
          "$ref": "#/$defs/VideoFormat"
        }
      ],
      "title": "Output Format"
    },
    "audio_only": {
      "type": "boolean",
      "title": "Audio Only",
      "default": false
    },
    "audio_quality": {
      "anyOf": [
        {
          "$ref": "#/$defs/AudioQuality"
        },
        {
          "type": "null"
        }
      ]
    },
    "video_quality": {
      "anyOf": [
        {
          "$ref": "#/$defs/VideoQuality"
        },
        {
          "type": "null"
        }
      ]
    },
    "start_time": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Start Time"
    },
    "end_time": {
      "anyOf": [
        {
          "type": "number",
          "exclusiveMinimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "End Time"
    },
    "duration": {
      "anyOf": [
        {
          "type": "number",
          "exclusiveMinimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Duration"
    }
  },
  "type": "object",
  "required": [
    "input_urls",
    "output_format"
  ],
  "$defs": {
    "AudioQuality": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "very_high",
        "lossless"
      ],
      "title": "AudioQuality",
      "description": "Audio quality presets"
    },
    "VideoFormat": {
      "type": "string",
      "enum": [
        "mp4",
        "webm",
        "avi",
        "mkv",
        "mov",
        "wmv",
        "flv",
        "m4v",
        "3gp",
        "ogv"
      ],
      "title": "VideoFormat",
      "description": "Supported video output formats"
    },
    "VideoQuality": {
      "type": "string",
      "enum": [
        "240p",
        "360p",
        "480p",
        "720p",
        "1080p",
        "1440p",
        "2160p",
        "original"
      ],
      "title": "VideoQuality",
      "description": "Video quality presets"
    },
    "app__schemas__media_converter__AudioFormat": {
      "type": "string",
      "enum": [
        "mp3",
        "wav",
        "aac",
        "flac",
        "ogg",
        "opus",
        "m4a",
        "wma",
        "aiff"
      ],
      "title": "AudioFormat",
      "description": "Supported audio output formats"
    }
  }
}