generate_music
Generate music
Description
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.
Parameters
| Parameter | Type | Description |
|---|---|---|
promptrequired | string | the music in words, e.g. 'lo-fi jazz, brushed drums, 80 bpm' |
seconds | number | track length, up to 300 |
model | string | minimax-music-3 or lyria-3.5 |
get_cost | boolean | true: return the price only; nothing runs or bills |
expected_credits | number | the get_cost price; refused unbilled if the live price differs |
idempotency_key | string | chosen once, resent unchanged on retries: the same key never buys twice |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/generate_music.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"generate_music","arguments":{"prompt":"<string>"}}}
CLI
hermoso call generate_music --json '{"prompt":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
hermoso_capabilitiesHermoso models, options and credit costsgenerate_sfxGenerate a sound effectgenerate_textGenerate textgenerate_voiceGenerate voiceover or dialogue