Music Video Generator Digital Human API

wavespeed-ai/music-video-generator

AI Music Video Generator turns a song and a single photo into a full music video: the singer performs the song with accurate lip sync, intercut with story scenes that follow your description, with varied camera angles and cuts on the beat. Up to 10 minutes, 480p, 720p or 1080p. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

Music Video Generation
Input

Drag & drop or click to upload

Drag & drop or click to upload

preview

Drag & drop or click to upload

preview

Drag & drop or click to upload

preview

Drag & drop or click to upload

preview

Drag & drop or click to upload

preview

Idle

$0.03/sbase price · final price depends on your input

ExamplesView all

Related Models

README

AI Music Video (MV) Generator

The world's best AI music video (MV) generator. Turn any song + a single photo into a professional-quality music video in minutes.

Why It's the Best

  • Blazing fast: Generate a full 1-minute music video in just a few minutes. No waiting hours.
  • Perfect lip sync: The singer performs the actual vocals of your song, so mouth movement follows every line.
  • Performance + story: Performance shots of the singer are intercut with story scenes. The mix follows your prompt automatically: describe a stage show for mostly performance, or a story for more narrative scenes.
  • Cinematic quality: AI director plans each scene with different camera angles, compositions, camera moves and lighting — like a real music video shoot.
  • Cuts on the beat: Scene changes land on musical onsets and phrase boundaries.
  • One photo is all you need: Upload a single portrait and the AI handles the rest — scene creation, angle variations, and smooth transitions.
  • Up to 9 set-ups: Upload several photos — the singer in different scenes, outfits or places, or places for the story — and the video cuts between them like the set-ups of a real music video shoot.
  • Up to 10 minutes: Create full-length music videos, not just short clips.
  • Smart scene planning: Automatically detects vocal phrases and silence in the audio to create natural scene transitions at musically meaningful moments.

How It Works

  1. Upload your audio — any song, any genre, up to 10 minutes.
  2. Upload 1-9 reference images (optional) — the singer, and with several images, each one a scene or look of its own.
  3. Describe the scene (optional) — e.g. "A woman sings in a forest while playing a guitar".
  4. Choose aspect ratio — 16:9, 9:16, 1:1, 4:3 or 3:4 (auto from your photo if omitted).
  5. Select resolution — 480p, 720p or 1080p.
  6. Get your music video — fully rendered with transitions, multiple angles, and synced audio.

What Happens Behind the Scenes

  1. Vocal isolation — Separates vocals from instruments to analyze singing patterns.
  2. Smart segmentation — Splits the audio at natural phrase boundaries (not arbitrary fixed intervals).
  3. AI directing — A vision-language model plans each scene from your prompt: performance or story shot, camera angle, composition, action and camera movement. Instrumental stretches always get story scenes.
  4. Video synthesis — Each performance shot is generated with the singer singing that exact stretch of the song; story shots keep the same person in new scenes.
  5. Cinematic assembly — Cuts snapped to the beat, with the original audio laid over the whole video for perfect sync.

Pricing

Billing duration: The price depends on the length of the uploaded audio, rounded up to whole seconds. The minimum billed duration is 3 seconds; shorter audio is billed as 3 seconds. Audio longer than 10 minutes is trimmed to its first 10 minutes and billed as 10 minutes.

Price by audio length and output resolution:

Audio length480p720p1080p
3 s or less (minimum)$0.09$0.18$0.36
5 s$0.15$0.30$0.60
10 s$0.30$0.60$1.20
30 s$0.90$1.80$3.60
1 minute (60 s)$1.80$3.60$7.20
2 minutes (120 s)$3.60$7.20$14.40
5 minutes (300 s)$9.00$18.00$36.00
10 minutes (600 s)$18.00$36.00$72.00

A request with default settings (720p) is $0.18.

Billing Rules

  • Charged per second of audio: the price grows with the audio length, for example 5 seconds of audio at 480p is $0.15 and at 720p is $0.30.
  • HD rates: 720p costs twice and 1080p four times as much as 480p for the same audio length (10 s of audio: $0.30 at 480p, $0.60 at 720p, $1.20 at 1080p).
  • Minimum Charge: 3 seconds ($0.09 at 480p, $0.18 at 720p, $0.36 at 1080p).
  • Maximum: 10 minutes of audio. Longer audio is trimmed to its first 10 minutes; 10 minutes is $18.00 at 480p, $36.00 at 720p and $72.00 at 1080p.

Parameters

ParameterRequiredDescription
audioYesURL of the audio/music file
imagesNoArray of 1-9 reference image URLs; with several, each is its own scene or look
promptNoStyle and story description
aspect_ratioNo"16:9", "9:16", "1:1", "4:3" or "3:4" (auto if omitted)
resolutionNo"480p", "720p" (default) or "1080p"

Tips

  • Best results with vocals: The AI uses vocal patterns for scene timing. Songs with clear vocals produce the best-timed transitions.
  • Portrait photos work best: Clear, front-facing photos with visible face give the best identity preservation.
  • Be descriptive: A good prompt like "A rock singer performing on a neon-lit stage" gives much better results than just "singer".
  • No photo? No problem: If you don't provide images, the AI will generate a performer based on the detected voice (male/female).

Note

  • Max audio length: 10 minutes (600 seconds); longer audio is trimmed to its first 10 minutes
  • Processing speed: A 1-minute music video typically completes in a few minutes at 480p/720p; 1080p takes longer
  • Supported audio formats: MP3, WAV, AAC, and most common formats
  • The AI automatically handles scene planning, you don't need to specify individual scenes
Note:This website uses AI models provided by third parties. Documentation prices are for reference and may be outdated. The Generate button shows an estimate; the final task charge prevails.

Music Video Generator API — Quick start

Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/wavespeed-ai/music-video-generator with your input as JSON. The endpoint returns a prediction id. Start polling the result endpoint around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. On completed, read output values from data.outputs. Examples for Music Video Generator below.

HTTP example
set -euo pipefail

: "${WAVESPEED_API_KEY:?Set WAVESPEED_API_KEY}"

REQUEST_BODY=$(cat <<'JSON'
{
    "audio": "https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3",
    "aspect_ratio": "16:9",
    "resolution": "720p"
}
JSON
)

# 1. Submit the prediction.
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
  -X POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/music-video-generator" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d "$REQUEST_BODY")

TASK=$(printf '%s' "$SUBMIT_RESPONSE" | jq 'if has("data") then .data else . end')
PREDICTION_ID=$(printf '%s' "$TASK" | jq -r '.id')
if [ -z "$PREDICTION_ID" ] || [ "$PREDICTION_ID" = "null" ]; then
  printf 'Submission response did not contain a prediction id
' >&2
  exit 1
fi
RESULT_URL="https://api.wavespeed.ai/api/v3/predictions/$PREDICTION_ID/result"

# 2. Poll until the prediction finishes.
while true; do
  RESPONSE=$(curl --silent --show-error --fail-with-body "$RESULT_URL" \
    -H "Authorization: Bearer $WAVESPEED_API_KEY")
  RESULT=$(printf '%s' "$RESPONSE" | jq 'if has("data") then .data else . end')
  STATUS=$(printf '%s' "$RESULT" | jq -r '.status')
  case "$STATUS" in
    completed) printf '%s\n' "$RESULT" | jq '.outputs'; break ;;
    failed|cancelled|timeout|deleted) printf '%s\n' "$RESULT" | jq . >&2; exit 1 ;;
    *) sleep 2 ;;
  esac
done
Node.js example
const submitUrl = "https://api.wavespeed.ai/api/v3/wavespeed-ai/music-video-generator";
const apiKey = process.env.WAVESPEED_API_KEY;
if (!apiKey) throw new Error('Set WAVESPEED_API_KEY');

async function requestJson(url, options = {}) {
  const response = await fetch(url, options);
  if (!response.ok) throw new Error(await response.text());
  return response.json();
}

// 1. Submit the prediction.
const body = await requestJson(submitUrl, {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
        "audio": "https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3",
        "aspect_ratio": "16:9",
        "resolution": "720p"
}),
});
const task = body.data ?? body;
if (!task.id) throw new Error("Submission response did not contain a prediction id");
const resultUrl = `https://api.wavespeed.ai/api/v3/predictions/${task.id}/result`;

// 2. Poll until the prediction finishes.
while (true) {
  const resultBody = await requestJson(resultUrl, {
    headers: { "Authorization": `Bearer ${apiKey}` },
  });
  const result = resultBody.data ?? resultBody;
  if (result.status === "completed") {
    console.log(result.outputs);
    break;
  }
  if (["failed", "cancelled", "timeout", "deleted"].includes(result.status)) throw new Error(JSON.stringify(result));
  await new Promise(resolve => setTimeout(resolve, 2000));
}
Python example
import json
import os
import time
from urllib.request import Request, urlopen

api_key = os.environ["WAVESPEED_API_KEY"]
headers = {"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}
payload = {
    "audio": "https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3",
    "aspect_ratio": "16:9",
    "resolution": "720p"
}

def request_json(url, data=None):
    request = Request(url, data=data, headers=headers, method="POST" if data else "GET")
    with urlopen(request) as response:
        return json.load(response)

# 1. Submit the prediction.
body = request_json("https://api.wavespeed.ai/api/v3/wavespeed-ai/music-video-generator", json.dumps(payload).encode())
task = body.get("data", body)
if not task.get("id"):
    raise RuntimeError("Submission response did not contain a prediction id")
result_url = f"https://api.wavespeed.ai/api/v3/predictions/{task['id']}/result"

# 2. Poll until the prediction finishes.
while True:
    result_body = request_json(result_url)
    result = result_body.get("data", result_body)
    status = result.get("status")
    if status == "completed":
        print(result.get("outputs", []))
        break
    if status in {"failed", "cancelled", "timeout", "deleted"}:
        raise RuntimeError(result)
    time.sleep(2)

Music Video Generator API — Frequently asked questions

What is the Music Video Generator API?

Music Video Generator is a WaveSpeed model for AI inference, exposed as a REST API on WaveSpeedAI. AI Music Video Generator turns a song and a single photo into a full music video: the singer performs the song with accurate lip sync, intercut with story scenes that follow your description, with varied camera angles and cuts on the beat. Up to 10 minutes, 480p, 720p or 1080p. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.

How do I call the Music Video Generator API?

POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/wavespeed-ai/music-video-generator.

How much does Music Video Generator cost?

Music Video Generator is billed per second, from $0.03/s at its lowest settings. Options such as resolution change the rate, and the total grows with the number of seconds. The exact price of your current settings is shown on the Generate button before you submit, and the actual charge is recorded on the prediction afterwards.

What inputs does Music Video Generator accept?

Key inputs: `prompt`, `images`, `audio`, `aspect_ratio`, `resolution`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/wavespeed-ai/music-video-generator.

How long does Music Video Generator take to generate?

Reported generation time on WaveSpeedAI is around 291 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.

Can I use Music Video Generator outputs commercially?

Commercial usage rights depend on the model's license, set by its provider (WaveSpeed). Check the provider's applicable terms and WaveSpeedAI's Terms of Service before commercial use.

llms.txt — wavespeed-ai/music-video-generator for AI agents and LLMs