hermosodocs

generate_music

Generate music

Area: raw playground: voice · Creative generation. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
promptrequiredstringthe music in words, e.g. 'lo-fi jazz, brushed drums, 80 bpm'
secondsnumbertrack length, up to 300
modelstringminimax-music-3 or lyria-3.5
get_costbooleantrue: return the price only; nothing runs or bills
expected_creditsnumberthe get_cost price; refused unbilled if the live price differs
idempotency_keystringchosen 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.

All 102 Creative generation tools · tools.json