All prebuilt tools ADD MUSIC TO VIDEO API

Add Music to Video Online or by API

Mix background music with the source audio or replace the original soundtrack. Run the preset directly on this page or call the same agent-ready endpoint from your product.

LIVE TOOL
Run add music to video
Paste a public media URL, choose your settings and download the result here.

The URL must be reachable without a login and remain available while the job runs.

Already have an account? Sign in

BEFORE / AFTER

See what the tool changes.

A visual guide to the transformation. Run the live form above to generate and download the real result from your own media.

BeforeOriginal soundtrack
Source audio48 kHz · stereo
Dialogue only
AfterMusic mix
Ready
Mixed soundtrack48 kHz · stereo
Music track mixed at 30%
Dialogue + music
BUILT FOR AUTOMATION

Useful defaults, typed options.

The tool slug stays stable while your agent supplies named media inputs and a narrow set of documented options.

  • Mix and replace modes
  • Independent volume controls
  • Music loops to fit the video
What this preset does
  1. 01Load the video and music track
  2. 02Loop music to the video duration
  3. 03Mix or replace the source audio
  4. 04Limit peaks and encode the final MP4
Stable endpointPOST /api/v1/tools/add-music-to-video
Live API request
{
  "inputs": [
    { "id": "main", "url": "https://example.com/video.mp4" },
    { "id": "music", "url": "https://example.com/music.mp3" }
  ],
  "options": { "mode": "mix", "music_volume": 0.3, "source_volume": 1 }
}
Successful output example
{
  "result": {
    "output": {
      "filename": "output.mp4",
      "contentType": "video/mp4",
      "downloadUrl": "https://storage.googleapis.com/…"
    }
  }
}
CONSTRAINTS

Know the boundaries before you run.

The music input must contain a decodable audio stream.
Volume values range from 0 to 2.
The output duration follows the main video.
FAQ

About add music

Can I keep the original dialogue?

Yes. Choose mix mode and lower the music volume. Replace mode discards the original soundtrack.

What if the music is shorter than the video?

The preset loops the music track and trims it exactly to the main video duration.

Does it prevent audio clipping?

The mixed track runs through a peak limiter before the final AAC encode.

KEEP BUILDING

Related media tools

Remove Audio from Video Online or by API
Create a silent MP4 by removing every audio stream from the source video.
Extract Audio from Video
Turn any supported video into a clean MP3 or WAV audio asset.
Create a Social Video Clip
Cut and reframe a source video for Shorts, Reels or vertical social feeds.