video_to_music
Generate custom music from one or more video files using optional style tags or a description, then save the returned audio as a ZIP.
Instructions
Video To Music Spends ElevenLabs credits. Returns application/zip bytes; pass output_path to save them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional list of style tags (e.g. ['upbeat', 'cinematic']). A maximum of 10 tags is allowed. | |
| model_id | No | ||
| description | No | Optional text description of the music you want. A maximum of 1000 characters is allowed. | |
| output_path | No | Where to write the returned bytes. Relative paths resolve against ELEVENLABS_OUTPUT_DIR. Omit it to get the data inline as base64 (small files only). | |
| videos_paths | No | One or more video files sent via FormData array (multipart/form-data). They will be combined into one codec in order. A maximum of 10 videos is allowed, where the total size of the combined video is limited to 200MB. In total, the video can be up to 600 seconds long. Note that combining multiple vid | |
| output_format | No | Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pr | |
| sign_with_c2pa | No | Whether to sign the generated song with C2PA. Applicable only for mp3 files. | |
| videos_filenames | No | Filenames to send for "videos". Some endpoints infer the audio format from them. | |
| videos_base64_list | No | Base64 contents for "videos", one entry per file. Use this when the server cannot read your local disk. |