AI Models
Eleven Video to Music
Background music made to fit your video, up to 10 minutes.
Pricing, live playground and model overview: Eleven Video to Music API on YepAPI
POST
$0.30/minute/v1/media/queueOverview
Video to Music watches an MP4 or MOV and composes background music that follows it. Add a description or style tags to steer it.
| Property | Value |
|---|---|
| Model ID | elevenlabs/video-to-music |
| Alias | video-to-music |
| Category | Music Generation |
| Pricing | $0.30 per minute of video |
Usage
All media models use the async job queue. Submit a job, then poll for the result.
Step 1: Submit Job
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'elevenlabs/video-to-music',
prompt: 'Calm, cinematic, builds toward the end',
options: {
referenceVideoUrl: 'https://example.com/clip.mp4',
params: {
tags: [
'cinematic',
'calm'
]
}
}
}),
});
const { data } = await res.json();
// data.jobId — use this to poll for resultscurl -X POST https://api.yepapi.com/v1/media/queue \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "elevenlabs/video-to-music", "prompt": "Calm, cinematic, builds toward the end", "options": {"referenceVideoUrl": "https://example.com/clip.mp4", "params": {"tags": ["cinematic", "calm"]}}}'Step 2: Poll for Result
curl https://api.yepapi.com/v1/media/status/JOB_ID \
-H "x-api-key: YOUR_API_KEY"When status is completed you get result.audio: { mimeType, base64 } (MP3), as long as the video. Results are kept for one hour.
Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
model | string | Yes | elevenlabs/video-to-music or alias video-to-music | — |
prompt | string | No | What the music should be like | — |
options.referenceVideoUrl | string | One of the two | Public URL of an MP4 or MOV, up to 50 MB and 10 minutes | — |
audioData | object | One of the two | The video as mimeType and base64, up to about 18 MB | — |
options.params.tags | array | No | Up to 10 style tags | — |
options.params.use_audio_as_reference | boolean | No | Follow the mood of the video's own sound | false |
Features
- Music as long as the video
- Style tags
- Up to 10 minutes
Billing
Billed on the length of the video, measured when you submit. $0.01 minimum.
Info
Rights to use the music follow ElevenLabs' Music Terms. Check them before you release a track commercially. Don't name artists, songs or labels in prompts.
Under the Hood
Powered by ElevenLabs.