generate_music
Generate music tracks from text prompts, with adjustable duration and instrumental-only mode. Create complementary background music for videos, including speech ads.
Instructions
Compose a music track with Eleven Music (3-600s) from a text prompt.
For speech ads the bed must be COMPLEMENTARY, not the main event: prompt for minimal/low-key/background music ("soft, sparse, no melodic hook, low intensity"), keep force_instrumental=true so it never fights the voiceover, match duration_s to the video, then lay it under with mix_music_into_video (low gain + speech ducking).
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>",
"duration_s": "<duration_s>"
},
"name": "generate_music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| model_id | No | music_v1 | |
| duration_s | Yes | ||
| output_path | No | ||
| force_instrumental | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||