Video Background Music Gen
Scores a video with newly generated music. The app picks a musical direction from eight frames of the clip, or takes your prompt, and mixes the track into the clip's audio.
Overview
Video Background Music Gen adds newly generated music to a video. Without a prompt, the app samples eight frames spread evenly across the clip and writes a one-sentence music brief from them (tempo, mood, instruments). A text-to-music model turns that brief into audio, and the app lays it into the video's soundtrack and returns a new MP4.
If you write a prompt, the frame analysis is skipped and your text becomes the brief. That is how you ask for a specific genre or instrument.
What you can build
The music model's weights are licensed for non-commercial use only (see Safety & compliance), so these are research and personal uses:
- Background music for home videos, travel clips and class projects
- Soundtracks for silent B-roll and screen recordings in personal or student projects
- Comparisons of the brief the app writes from video frames with a hand-written prompt for the same clip
Inputs
- One video, uploaded or given as a URL, in MP4, WEBM or MOV.
- An optional prompt describing the music, for example "slow acoustic guitar, warm and calm".
- Background music volume, from 0.1 to 2 (default 0.7). At 1 the music keeps its generated level; below 1 it is quieter and above 1 louder.
- Tokens (default 1024, maximum 2048), which set how long the generated piece runs before the 28-second cap applies.
- Guidance scale, 1 to 20 (default 3): how closely the music follows the brief.
Outputs
An MP4 with the original picture unchanged and a new audio track. If the clip already has sound, such as speech or ambience, the music is overlaid on it and the original audio stays. A clip with no audio track gets the music alone. The samples on this page show two silent clips before and after scoring: 8 seconds of three alpacas in sunglasses in front of a graffiti wall, and about 13 seconds of a couple sitting at the entrance of a tent.
Limitations
- The generated piece is capped at 28 seconds. On longer videos it repeats from the start until the clip ends.
- The automatic brief is one sentence for the whole clip, built from eight frames, so a video with several scene changes gets a single mood throughout.
- The music is not timed to cuts or on-screen action.
Safety & compliance
The music comes from Meta's MusicGen Large, whose weights are licensed CC-BY-NC 4.0 (non-commercial). Meta names research on AI-based music generation as the model's primary use and says it should not be used in downstream applications without further risk evaluation and mitigation. The frame analysis runs Video-LLaVA, which its authors release as a research preview for non-commercial use only, subject to the LLaMA model license.
API quick start
Run video-background-music-gen with a single API call.
{
"prompt": "Your prompt here",
"inputVideo": "https://your-cdn.com/input.mp4",
"tokens": 1024,
"scale": 3
}curl -X POST "https://api.wiro.ai/v1/Run/wiro/video-background-music-gen" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_WIRO_API_KEY" \
--data-binary @- <<'JSON'
{
"prompt": "Your prompt here",
"inputVideo": "https://your-cdn.com/input.mp4",
"tokens": 1024,
"scale": 3
}
JSONOther models you might like
Explore similar video generation models.



