{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/soundza-com/json-schema/soundza-com-variation-request-schema.json",
  "title": "VariationRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/soundza-com-openapi.json#/components/schemas/VariationRequest",
  "type": "object",
  "properties": {
    "sound_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The sound to vary: a soundza sound's id or slug, e.g. \"footstep-on-wood\". A one-shot up to 10 seconds, not an ambience. Send this or take_id."
    },
    "take_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "A take you made with generate_sound (or an earlier variation), to vary instead of a soundza sound. Send this or sound_id."
    },
    "spread": {
      "default": 5,
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 10
        },
        {
          "type": "string",
          "enum": [
            "subtle",
            "natural",
            "bold"
          ]
        }
      ],
      "description": "How different the takes are, 1 to 10, or \"subtle\" (2), \"natural\" (5), \"bold\" (8). Defaults to 5. Measured on each sound, so a spread means the same on a punch as on a footstep."
    },
    "takes": {
      "default": 6,
      "type": "integer",
      "minimum": 1,
      "maximum": 8,
      "description": "How many variations to make, 1 to 8, best first. Defaults to 6. Each one counts as a generation."
    },
    "prompt": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "What the sound is, e.g. \"boot on gravel\", when its title doesn't say. Defaults to the sound's title and tags."
    },
    "seed": {
      "type": "integer",
      "minimum": 0,
      "maximum": 2147483647,
      "description": "Any whole number. Send the same seed with the same sound and settings to get the same variations back; leave it out to get new ones each time."
    },
    "wait": {
      "default": true,
      "type": "boolean",
      "description": "Whether the call waits for the variations. By default it waits and answers with them. If you send false, it answers right away with a 202 and a job ID, and you check on the job at GET /generations/{id} until it's done."
    }
  },
  "additionalProperties": false
}