YepAPI
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/v1/media/queue
$0.30/minute

Overview

Video to Music watches an MP4 or MOV and composes background music that follows it. Add a description or style tags to steer it.

PropertyValue
Model IDelevenlabs/video-to-music
Aliasvideo-to-music
CategoryMusic 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 results
curl -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

ParameterTypeRequiredDescriptionDefault
modelstringYeselevenlabs/video-to-music or alias video-to-music—
promptstringNoWhat the music should be like—
options.referenceVideoUrlstringOne of the twoPublic URL of an MP4 or MOV, up to 50 MB and 10 minutes—
audioDataobjectOne of the twoThe video as mimeType and base64, up to about 18 MB—
options.params.tagsarrayNoUp to 10 style tags—
options.params.use_audio_as_referencebooleanNoFollow the mood of the video's own soundfalse

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.

On this page