latestOpenAPI 3.1.12026-08-22330162.7 KB
35448566f143
Music
Create a music video
Builds a music video: your song plus AI visuals, synced captions, and an optional waveform.
Pick the song (exactly one):
- musicId: a completed song from POST /music (see GET /music).
- musicAssetId: a track you uploaded with POST /uploads (purpose music).
Pick the visuals with visualMode:
- ai-images: AI generates a new image every few seconds (set secondsPerImage).
- ai-video: AI generates short video clips across the song.
- cover-image: a single still image for the whole song (requires coverImageAssetId).
Returns a videoId (a video). Poll GET /videos/{id} until status is completed, then export it with POST /exports and download with GET /exports/download, or publish it.
Cost: depends on the visual mode, quality, and song length (see the response estimatedCredits). Credits are refunded automatically if generation fails.
post/music-videos
Request body
Response
OK