{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crevio-co/json-schema/crevio-co-music-generate-request-schema.json",
  "title": "MusicGenerateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crevio-co-audio-api-openapi.yml#/components/schemas/MusicGenerateRequest",
  "type": "object",
  "properties": {
    "model": {
      "type": "string",
      "description": "A quality tier (fast, balanced, quality) or any fal.ai text-to-music endpoint id. Prefer a tier — it tracks the best current model for that price point. Defaults to fal-ai/lyria3/pro; `GET /v1/audio/music/models` maps tiers to ids with live pricing."
    },
    "input": {
      "type": "object",
      "description": "Model-specific input, forwarded to fal verbatim. `prompt` is required. Tracks come back at the model's own length; trim and fade them to fit.",
      "properties": {
        "prompt": {
          "type": "string",
          "description": "The track to make: genre, mood, tempo (BPM), lead instruments, energy, and \"instrumental, no vocals\" for a background bed."
        },
        "lyrics": {
          "type": "string",
          "description": "Lyrics to sing, for models that sing. Omit it for an instrumental."
        },
        "duration": {
          "type": "number",
          "description": "Upper bound on length in seconds, for models that take one (the `fast` tier)."
        }
      },
      "required": [
        "prompt"
      ]
    }
  },
  "required": [
    "input"
  ]
}