Generate music
generate_musicDescribe a genre, mood, instruments, and tempo to create an instrumental MP3; set seconds for a shorter track or omit length for a full track at a flat fee.
Instructions
RAW music: describe it (genre, mood, instruments, tempo), get an instrumental MP3. No length: a full track at a flat fee (explainerMusicCredits in hermoso_capabilities). With seconds: by the second up to about 38 s. A named model always runs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "generate_music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | minimax-music-3 or lyria-3.5 | |
| prompt | Yes | the music in words, e.g. 'lo-fi jazz, brushed drums, 80 bpm' | |
| seconds | No | track length, up to 300 | |
| get_cost | No | true: return the price only; nothing runs or bills | |
| idempotency_key | No | chosen once, resent unchanged on retries: the same key never buys twice | |
| expected_credits | No | the get_cost price; refused unbilled if the live price differs |