Build a short music video from a song theme by generating N keyframes, animating each into a 5s clip, and generating a matching music track.
Tasks
Generate N keyframes in parallel via muapi image generate using scene-specific prompts with the visual_style, using model nano-banana-pro.
Create one music track via muapi audio create (kind=music) using the music_style with a duration of N x 5 + a 2s tail.
Animate each keyframe in parallel via muapi video from-image with model veo3.1-image-to-video, duration=5, and scene-specific motion direction prompts.
Return scene keyframes, animation clips, music track asset ids in order, and a short summary describing the cut order.
Inputs
theme (text, required) — Song / video theme.
scenes (int, optional, default 3) — Number of scenes; each becomes a 5s clip.
music_style (text, optional, default: ambient cinematic, instrumental, slow tempo, warm) — Suno-style tags for the soundtrack.