Generate Music
generate_musicMake a music track with ElevenLabs Music: a song, a score, a background bed. Either describe the whole track in prompt (genre, mood, instruments, tempo, era, how it builds) or pass a plan you got from plan_music, edited however you like. seconds sets the length, 3 to 600 (default 30). For music under a video pass project_id (or video_seconds): the track is asked at the video's length, and if it comes back shorter the answer says how to loop it on a musical boundary; tell the creator and never leave the end silent. One take per ask: a second track minutes after the first needs another_take_reason with the creator's own words. instrumental true keeps every voice out. HOUSE RULE: only put music on a job when the customer actually asked for music; never add a bed because it feels empty, and when music is asked for keep it to what they named. This tool is NOT for sound effects: whooshes, impacts, chimes, risers, foley and ambiences are generate_sound_effect. Billed per 10 seconds (a token quote applies) and the file is saved to your library. Returns audio_url, duration_seconds and generation_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | Optional. The composition plan object plan_music returned, edited however you like. When this is sent the plan decides the structure and the length. | |
| prompt | No | The whole track in plain words, for example "driving hard rock instrumental, live drums, dirty guitars, 140 bpm, builds to a big last chorus". Leave out when you are passing an edited plan. | |
| seconds | No | Optional length in seconds, 3 to 600. Default 30. Ignored when a plan is sent, because the plan carries its own section lengths. | |
| part_only | No | Optional. true only when the creator asked for music on part of the video, so a shorter track is right. | |
| project_id | No | Optional. The Editor project this music is for; its video length sets the track length. | |
| instrumental | No | Optional. true makes a track with no singing and no voices at all. | |
| video_seconds | No | Optional. The length of the video this music sits under, when there is no project. | |
| another_take_reason | No | Only for a second track minutes after the first: the creator's own words asking for another or a different one. |