Generate music
generate_musicComposes music from a prompt: genre, mood, instruments, structure (ElevenLabs Music v2.5: elevenlabs/music/v2.5). Billed against your credits; waits up to wait_seconds, then returns the request_id to follow with generate_status.
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 |
|---|---|---|---|
| prompt | Yes | The music to compose, up to 5,000 characters: genre, mood, instruments, tempo, structure, e.g. `upbeat chiptune boss battle loop, 140 bpm` | |
| options | No | Any other input the model takes, per generate schema of its endpoint; the fields above win | |
| wait_seconds | No | How long to wait for the result before returning the request id | |
| music_length_ms | No | The track's length in milliseconds, 3,000 to 600,000 (3 seconds to 10 minutes), e.g. 60000 for a minute; omit for the model's default | |
| force_instrumental | No | true makes a track with no vocals; omit to let the prompt decide |