Back to Blog
Tutorials

How To Make An AI Music Video With Audio-to-Video

Make an AI music video from your own song with LTX-2.5 audio-to-video: split the track into sections, generate each shot to fixed audio, then assemble.

LTX Team
Tutorials
How To Make An AI Music Video With Audio-to-Video
Key Takeaways
  • Build it from your finished track, not a prompt: audio-to-video holds each trimmed segment fixed and generates video timed to it, and the output carries your original audio unchanged. Work section by section.
  • The audio limit is your shot limit. On the API, ltx-2-5-fast does 20 seconds at 720p/1080p (10 at 1440p/4K), ltx-2-5-pro 10 seconds throughout. Export compressed audio, because PCM WAV from a DAW is rejected.
  • Keep sections consistent with a shared opening image, repeated character descriptions, and last_frame_uri hand-offs, then cut every clip back onto the master and trim the few-frame overruns on the downbeats.

An AI music video built with LTX-2.5 starts from your finished track, not from a prompt. Audio-to-video holds your audio fixed and generates video whose motion and pacing follow the sound, so the workflow is: split the song into sections that fit the per-generation limit, generate one shot per section against that audio, keep shots consistent with shared first and last frames, and cut the results back onto the original master. On the hosted API, ltx-2-5-fast accepts up to 20 seconds of audio per request at 720p or 1080p, and ltx-2-5-pro accepts up to 10 seconds.

Below, the workflow on both ComfyUI and the LTX API, plus the input-format rule that rejects an uncompressed DAW export.

How to make an AI music video

LTX-2.5 audio-to-video conditions video generation on an audio track you supply. In the local audio-to-video workflow, the trimmed clip is encoded by the audio VAE, and those audio tokens are concatenated with the video latent and held frozen through both stages, so the model generates video to match fixed audio rather than generating new audio. Only the video branch is decoded, and the save step attaches your original trimmed audio.

There is no audio decode step, so the soundtrack in the output file is exactly what you supplied. That is what makes it usable for music video: every clip carries an unaltered segment of your master. For dialogue and sound-effect uses of the same capability, see the audio-to-video sync guide.

How long can each section be?

Section length is set by the audio, so the audio limit is your shot-length limit. The audio-to-video API reference caps input audio by model and resolution:

  • ltx-2-5-fast: 20 seconds at 720p and 1080p, 10 seconds at 1440p and 4K.
  • ltx-2-5-pro: 10 seconds at every resolution.
  • ltx-2-3-pro: 20 seconds at 720p and 1080p, 10 seconds at 1440p and 4K.

A 3-minute song is 180 seconds, so at 1080p it needs at least 9 sections at 20 seconds on ltx-2-5-fast, or 18 sections at 10 seconds on ltx-2-5-pro. Locally, the ComfyUI workflow publishes no fixed cap but warns that longer audio needs more VRAM, so work section by section there too.

Plan the shot list from the song

Shot planning is where the song's structure becomes the video's structure. Mark the song's natural boundaries (intro, verse, pre-chorus, chorus, bridge, outro), then split any section longer than your limit on a bar line. For each section, write one line: what we see, how the camera moves, and what changes by the end. That list becomes your prompts.

Two constraints shape the plan. First, the local workflow resolves frame count to one plus a multiple of 8 (the VAE constraint (F-1) % 8 == 0), so the final duration may land slightly off the trimmed length. Second, the API is billed per second of input audio. A practical starting point is to cut each section exactly on the bar line, then trim the few frames of difference in the edit rather than regenerating. Plan cuts where a small trim will not be noticed, on a downbeat or a drum hit, not in the middle of a sustained vocal.

Generate a section in ComfyUI

ComfyUI runs audio-to-video through a sample workflow from LTX, LTX-2.5_A2V_Two_Stage_Distilled.json, in the ComfyUI-LTXVideo repository's example_workflows/2.5/ folder. Drag it into ComfyUI and open the Workflow Overview panel to install any missing nodes or model files: the distilled LTX-2.5 transformer, the Gemma 4 12B text encoder, the prompt enhancer, the video VAE, the audio VAE and the 2x spatial upscaler. New to ComfyUI? See the ComfyUI workflow guide.

Before you start: the LTX-2.5 system requirements list an NVIDIA GPU with at least 32GB of VRAM, CUDA 12.7 or newer and Python 3.12 or newer. The LTX-2 repository targets CUDA 13 or newer and 80GB or more of VRAM for full-precision runs, with distilled variants at 32GB using quantization. If that excludes your hardware, the hosted API path below needs no local GPU.

Trim the song into sections

TrimAudioDuration is the node that turns a full song into a section. Load the full track in LoadAudio, then set start time and duration in TrimAudioDuration. Video length follows the trimmed audio, so keep the whole song loaded and step through sections by changing the start time. Note each start time for assembly.

Opening frame and prompt

Opening frames are optional, but they are your main consistency lever. Load an image in LoadImage and enable the image input to open the shot on it; with no image, the workflow generates the opening shot from the prompt alone. The prompt supplies visual content, including subject, setting, style and camera, while the audio drives timing and motion:

A singer in a long red coat stands on a rain-soaked rooftop at night, city lights blurred behind her. She sways slowly with the beat, then lifts her head toward the sky as the chorus builds. Slow dolly in from a medium shot to a close-up, neon reflections on the wet concrete.

Enable enhance positive prompt only if your prompt is a rough idea; the negative prompt is never enhanced. Click Run. Stage 1 samples at the base resolution, Stage 2 upscales 2x and refines, and both stages use CFG 1. The distilled model bakes guidance into distillation, so the docs advise staying near 1 if you experiment.

Generate sections via the API

The LTX API generates each section with one asynchronous request to POST https://api.ltx.io/v2/audio-to-video:

bash

curl -X POST https://api.ltx.io/v2/audio-to-video \
 -H "Authorization: Bearer $LTX_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{
   "model": "ltx-2-5-fast",
   "audio_uri": "https://example.com/song-chorus-1.mp3",
   "image_uri": "https://example.com/singer-rooftop.png",
   "prompt": "The singer sways with the beat, then lifts her head toward the sky as the chorus builds. Slow dolly in, neon reflections on wet concrete.",
   "resolution": "1920x1080",
   "fps": 24,
   "camera_motion": "dolly_in"
 }'

The request returns a job id; poll GET /v2/audio-to-video/{id} until it is completed, then download result.video_url. Set model explicitly, because the default is ltx-2-3-pro. If you omit resolution, a portrait image produces 1080x1920 and a landscape image 1920x1080, the quickest route to a vertical cut.

Export audio the API accepts

Audio format is the first thing to check. The input formats page accepts WAV, MP3, M4A and OGG, but it states that PCM audio is not supported, and AAC must use the AAC-LC profile. An uncompressed PCM WAV bounced straight from a DAW will be rejected. Export each section as MP3, AAC-LC M4A or OGG instead (a WAV wrapping a supported codec such as FLAC also works; it is the PCM codec specifically that is rejected). Audio sent by HTTPS URL can be up to 32 MB, and as a base64 data URI up to 15 MB.

How do you keep shots consistent?

Shot consistency across sections comes from reusing the same visual anchors, because each section is a separate generation. Three documented inputs do most of the work:

  • The same opening image. Starting every performance section from the same character image keeps wardrobe and setting stable. Reuse the same written identifiers in each prompt too ("the singer in the long red coat"), which the prompting guide recommends for recurring subjects.
  • A last frame that hands off. On the API, last_frame_uri sets where a section ends and requires image_uri; the video then interpolates between the two. Using one section's last frame as the next section's image_uri builds continuous movement across a cut in the music. This is a workflow pattern assembled from documented fields, not a dedicated feature.
  • Deliberate camera choices. camera_motion accepts dolly_in, dolly_out, dolly_left, dolly_right, jib_up, jib_down, static and focus_shift. Pushes on choruses and static frames on verses give the edit a rhythm that follows the song. The camera motion guide covers how each move reads.

How do you assemble the final cut?

Assembly is simpler than it looks because each clip's audio comes from your master. Put the full song on an editor timeline and drop each clip at the start time you trimmed it from. Because the local workflow attaches the original trimmed audio unchanged, each clip's audio should line up with the master there; mute the clips and play the master underneath. Trim the few frames of overrun at each cut, which is why cuts sit on downbeats. For longer single shots than one generation allows, the extend guide covers other options.

Troubleshooting audio-to-video

Troubleshooting audio-to-video usually comes down to four fixes:

  • API rejects the audio. Check section length against the caps above and re-export PCM WAV as MP3 or AAC-LC M4A.
  • Out of memory locally. Reduce resolution or trimmed duration, or increase the VAE decode tile count. Decoding is tiled to reduce peak VRAM, and fewer, larger tiles run faster but need more memory.
  • Clip is slightly shorter or longer than the section. Expected: frame count resolves to one plus a multiple of 8. Trim in the edit.
  • Visuals drift between sections. Reuse the opening image and character description, and hand off with last_frame_uri.

For programmatic batch runs, the same capability is available locally as A2VidPipelineTwoStage in ltx-pipelines; the audio-to-video capability page has an overview.

Summary

An AI music video with LTX-2.5 is built section by section: audio-to-video holds each trimmed segment of your song fixed and generates video timed to it. On the LTX API, ltx-2-5-fast accepts up to 20 seconds of audio per request at 720p and 1080p, ltx-2-5-pro up to 10 seconds, and PCM WAV is not accepted. In the local ComfyUI workflow, TrimAudioDuration selects each section and the original audio is saved unchanged. Shared opening images, repeated character descriptions and last_frame_uri hand-offs keep sections consistent.

Have a track ready? Get started with LTX-2.5 and generate your first section against the chorus.

Table of Contents: