--- name: music description: "Generate a music bed for a property video with ElevenLabs Music: a calm underscore under narration, a punchy track for a reel, an intro or outro sting, timed to the video's length, then laid on the timeline so it dips under the voice. Use for background music, a soundtrack, a music bed or a jingle; spoken narration is voiceover." --- # Music One track per video, written for its job: under a voice it stays out of the way, in a reel it carries the cuts. The track is generated to the video's length and goes onto the video project's timeline, where the export lowers it while narration plays. **The user provides:** the video (or its project), the mood, optionally a genre, tempo or a reference feeling ("calm and expensive", "upbeat Sunday open house"). **They get:** an instrumental MP3 at the right length, on the video's timeline under the voice, and in the 16:9 and 9:16 exports. ## House rules - **Read the model first.** Call `get_model_params({ model: "music/elevenlabs-music-v2.5" })` before the first track in the conversation: it gives the limits, the exact-length plan and the directing guide, and it wins over this page. - **No named artists.** Describe musical traits; never a band, artist, song or lyrics the user does not own. - **Price before spending.** Music is priced per minute of requested length: for long or several tracks, `estimate_generation({ operation: "audio", model, params })` and the balance first. - **One take per request.** Another needs the user's word. - **Lost is not failed.** `generate_music` returns a job at once; `check_job` gives the track. Never send it again while the job runs. ## Models | | Model | When | |---|---|---| | The only one for now | `music/elevenlabs-music-v2.5` | 3 s to 10 min, instrumental by default, exact length with a composition plan | ## 1. Brief 1. Length: the video project's length (`get_video_project`), or the clip's. A little longer is fine; the export trims it. 2. Role: under narration, or carrying a silent reel. 3. Mood from the property and the user's words: | Property and cut | Direction | |---|---| | Luxury, twilight, new development | Slow cinematic piano and strings, 70 to 85 BPM, wide and warm, long resolved tail | | Family home, bright and modern | Light acoustic or soft house, 100 to 115 BPM, felt piano, brushed percussion | | Social reel | Punchy modern pop or house, 118 to 128 BPM, starts on the beat, one lift mid-way, crisp button ending | ## 2. Write the prompt Purpose and length, genre and tempo, a small instrument palette, the arrangement in order, the mix role and the ending, then two or three exclusions. Under a voice, always ask for "sparse, dialogue-safe, no lead melody, instrumental only, no vocals". Show the prompt and length in one line; generate on the user's yes. ## 3. Generate and place | Setting | Value | |---|---| | Tool | `generate_music` | | `model` | `music/elevenlabs-music-v2.5` | | `music_length_ms` | the video's length in milliseconds | | `film_track` | with a video project: `{ film_id, label: "Music", volume: 0.6, fade_out: 2, duck: true }` | With `film_track` the finished track lands on the timeline by itself. Without it, after `check_job`: `update_video_project({ id, add_tracks: [{ kind: "music", label: "Music", url, start: 0, volume: 0.6, fade_out: 2, duck: true }] })`. Then `assemble_video` mixes it, lowered under narration. A single finished clip, no project: `add_audio_to_video({ video_url, audio_url, audio_mode: "mix", added_volume: 0.3 })` when it has a voice, `added_volume: 0.6` when it does not. ## 4. Check Ask the user to listen: tempo, energy, no vocals sneaking in, the voice still clear, the ending lands with the last shot. Do not claim to have listened. For a fault, propose one revised prompt (a sparser bed, a clearer ending) and wait for the word. Deliver the track URL, the prompt, the length and where it was placed. ## When something goes wrong | What happened | What to do | |---|---| | The track refuses a named artist or song | Rewrite the prompt as genre, tempo and instruments | | It ends a few seconds off the cut | Set the exact-length composition plan from `get_model_params` and make it again on the user's word | | The voice is hard to hear | Lower the track's `volume` with `update_video_project` `patch_tracks`, keep `duck: true`, export again: no new track needed | | The user wants a trending platform sound | They add it in the app when posting; it is not made here |