{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/venice-ai/json-schema/venice-ai-queue-audio-request-schema.json",
  "title": "QueueAudioRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/venice-ai-audio-api-openapi.yml#/components/schemas/QueueAudioRequest",
  "type": "object",
  "properties": {
    "model": {
      "type": "string",
      "description": "The model to use for audio generation. Voice-changer models are not supported here; use the `/api/v1/audio/voice-changer` endpoints instead."
    },
    "prompt": {
      "type": "string",
      "minLength": 1,
      "description": "The prompt describing the audio to generate. Minimum and maximum prompt lengths vary by model; inspect `/models` for `min_prompt_length` and `prompt_character_limit`."
    },
    "lyrics_prompt": {
      "type": "string",
      "description": "Optional lyrics/text for lyric-capable models. Required when `/models` reports `lyrics_required=true`; unsupported when `/models` reports `supports_lyrics=false`."
    },
    "duration_seconds": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        {
          "type": "string",
          "pattern": "^\\d+$"
        }
      ],
      "description": "Optional duration hint in seconds. Only supported for models that expose duration metadata via `/models`. Accepts either an integer or a numeric string. If omitted, the model default duration is used when available."
    },
    "force_instrumental": {
      "type": "boolean",
      "description": "Optional instrumental toggle. Only supported when `/models` reports `supports_force_instrumental=true`."
    },
    "lyrics_optimizer": {
      "type": "boolean",
      "description": "When enabled, auto-generates lyrics from the prompt. Only supported when `/models` reports `supports_lyrics_optimizer=true`. lyrics_prompt must be empty when this is true."
    },
    "loop": {
      "type": "boolean",
      "description": "Render the clip so its end splices back into its start without an audible seam. Only supported when `/models` reports `supports_loop=true`."
    },
    "voice": {
      "type": "string",
      "description": "Optional voice selection for voice-enabled models. See `/models?type=music` for the model's supported `voices` and `default_voice`."
    },
    "language_code": {
      "type": "string",
      "description": "Optional ISO 639-1 language code. Only supported when `/models` reports `supports_language_code=true`."
    },
    "speed": {
      "type": "number",
      "minimum": 0.25,
      "maximum": 4,
      "description": "Optional audio speed multiplier. Only supported when `/models` reports `supports_speed=true`; use the model-specific `min_speed` and `max_speed` values."
    }
  },
  "required": [
    "model",
    "prompt"
  ],
  "additionalProperties": false
}