Compose music
elevenlabs_compose_musicUse this when the user wants a short music track or an instrumental soundtrack from a description. Returns one compact MP3 as base64, with the model and the length. The track is 3000 to 8000 milliseconds. A longer track does not fit in one answer. Do not use for spoken words. Use elevenlabs_text_to_speech for a voiceover. Runs on SingleBrain's account: from 8 credits a call.
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": "elevenlabs_compose_music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | What the track should sound like, in plain words | |
| modelId | No | One of: music_v1, music_v2, music_v2_5, defaults to music_v2_5 | |
| durationMs | No | Length in milliseconds, from 3000 to 8000. Defaults to 8000 | |
| instrumental | No | True for no vocals. Defaults to true |