{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/viewmax-studio/json-schema/viewmax-studio-create-music-request-schema.json",
  "title": "CreateMusicRequest",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/viewmax-studio-openapi.json#/components/schemas/CreateMusicRequest",
  "type": "object",
  "required": [
    "prompt"
  ],
  "properties": {
    "prompt": {
      "type": "string",
      "minLength": 1,
      "description": "Track description. When `options.style` or `options.title` is set, the prompt is treated as lyrics."
    },
    "options": {
      "type": "object",
      "additionalProperties": true,
      "description": "`options.duration` and `options.music_length_ms` are rejected (400); use `duration_seconds`.",
      "properties": {
        "duration_seconds": {
          "type": "number",
          "minimum": 3,
          "maximum": 300,
          "default": 60,
          "description": "JSON number. Cost: `max(60, ceil(duration_seconds))` credits."
        },
        "instrumental": {
          "type": "boolean",
          "description": "`true` for no vocals."
        },
        "style": {
          "type": "string",
          "description": "Genre or mood. Makes the prompt be treated as lyrics; do not also send `lyrics`."
        },
        "title": {
          "type": "string",
          "description": "Song title. Also makes the prompt be treated as lyrics."
        },
        "lyrics": {
          "type": "string"
        }
      }
    }
  }
}