View raw JSON
{
"type": "object",
"required": [],
"properties": {
"body": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
},
"properties": {
"model": {
"enum": [
"music-3.0",
"music-2.6"
],
"type": "string",
"default": "music-3.0",
"description": "Music model. music-3.0 is MiniMax's current recommended generation; music-2.6 is the previous one. Same $0.15 price per song."
},
"lyrics": {
"type": "string",
"maxLength": 3500,
"minLength": 1,
"description": "Song lyrics, using \\n to separate lines. Supports structure tags: [Intro], [Verse], [Pre Chorus], [Chorus], [Bridge], [Outro], [Solo], etc. Required unless is_instrumental or lyrics_optimizer is true."
},
"prompt": {
"type": "string",
"maxLength": 2000,
"description": "Description of the music's style, mood, and scenario. Required when is_instrumental is true."
},
"stream": {
"type": "boolean",
"const": false,
"default": false,
"description": "Streaming is not supported; always false. Fixed."
},
"audio_setting": {
"type": "object",
"properties": {
"format": {
"enum": [
"mp3",
"wav",
"pcm"
],
"type": "string",
"description": "Audio format."
},
"bitrate": {
"anyOf": [
{
"type": "number",
"const": 32000
},
{
"type": "number",
"const": 64000
},
{
"type": "number",
"const": 128000
},
{
"type": "number",
"const": 256000
}
],
"description": "Bitrate."
},
"sample_rate": {
"anyOf": [
{
"type": "number",
"const": 16000
},
{
"type": "number",
"const": 24000
},
{
"type": "number",
"const": 32000
},
{
"type": "number",
"const": 44100
}
],
"description": "Sampling rate."
}
},
"description": "Audio output configuration.",
"additionalProperties": false
},
"output_format": {
"type": "string",
"const": "url",
"default": "url",
"description": "Audio is always returned as a CDN URL (link EXPIRES after 24h). Fixed — no other value is accepted."
},
"is_instrumental": {
"type": "boolean",
"default": false,
"description": "Generate instrumental music (no vocals). When true, prompt is required."
},
"lyrics_optimizer": {
"type": "boolean",
"default": false,
"description": "Auto-generate lyrics from the prompt when lyrics is empty."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}