{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/seedaudio-now/json-schema/seedaudio-now-audio-input-schema.json",
  "title": "AudioInput",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/seedaudio-now-openapi.json#/components/schemas/AudioInput",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "prompt"
  ],
  "properties": {
    "model": {
      "type": "string",
      "enum": [
        "seed-audio-1.0"
      ],
      "default": "seed-audio-1.0"
    },
    "prompt": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048,
      "description": "Unicode code points; cannot be whitespace only."
    },
    "voice": {
      "type": "string",
      "enum": [
        "stokie_en",
        "vivi_mixed_en_zh_ja_es_id",
        "mindy_en_es_id_pt_zh",
        "kian_en_zh",
        "cedric_en_zh",
        "sophie_en_zh",
        "jean_en_zh",
        "magnus_en_zh",
        "mabel_en_zh",
        "nadia_en_zh",
        "opal_en_zh",
        "pearl_en_zh",
        "quentin_en_zh",
        "corinne_mixed_en_zh",
        "esther_mixed_en_zh",
        "lyla_mixed_en_zh",
        "tracy_es_zh",
        "sandy_es_mixed_en_zh",
        "felix_zh",
        "celeste_zh",
        "monkey_king_zh"
      ]
    },
    "audio_references": {
      "type": "array",
      "maxItems": 3,
      "default": [],
      "items": {
        "type": "string",
        "format": "uri",
        "maxLength": 2048,
        "pattern": "^https://"
      },
      "description": "Public HTTPS only. No credentials or internal addresses; a voice consumes one slot. Up to 10 MB and 30 seconds each."
    },
    "image_url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048,
      "pattern": "^https://"
    },
    "output_format": {
      "type": "string",
      "enum": [
        "mp3",
        "wav",
        "pcm",
        "ogg_opus"
      ],
      "default": "mp3"
    },
    "sample_rate": {
      "type": "integer",
      "enum": [
        8000,
        16000,
        24000,
        32000,
        44100,
        48000
      ],
      "default": 24000
    },
    "speed": {
      "type": "number",
      "minimum": 0.5,
      "maximum": 2,
      "default": 1
    },
    "volume": {
      "type": "number",
      "minimum": 0.5,
      "maximum": 2,
      "default": 1
    },
    "pitch": {
      "type": "integer",
      "minimum": -12,
      "maximum": 12,
      "default": 0
    },
    "multilingual": {
      "type": "boolean",
      "default": false
    }
  },
  "allOf": [
    {
      "if": {
        "required": [
          "voice"
        ]
      },
      "then": {
        "properties": {
          "audio_references": {
            "maxItems": 2
          }
        }
      }
    },
    {
      "if": {
        "required": [
          "image_url"
        ]
      },
      "then": {
        "not": {
          "required": [
            "voice"
          ]
        },
        "properties": {
          "audio_references": {
            "maxItems": 0
          }
        }
      }
    }
  ]
}