Music Video APIAI Video Clips Set to Your Song
Generate 5 to 15 second video clips with Suno's video model from a text prompt, a first or last frame, or reference images. Pass a song you generated and the clip plays to it, with optional lip-sync. One request returns two MP4s, a poster and a last frame.
What is the Music Video API?
One endpoint, /api/v1/sonic/video, turns a prompt into a short video clip. Use it on its own for silent visuals, or hand it the clip_id of a track you made with the API and get a clip that plays your song. Need music for a video you already have instead? That is the Video Editing Music API.
- Text to Video
Describe the scene in a prompt and choose 5 to 15 seconds, 480p or 720p, and one of five aspect ratios.
- Frames & References
Start from a
first_frame_url, pin both ends with alast_frame_url, or guide the look with up to 9reference_image_urls.- Your Song, Lip-Synced
Pass a generated song's
clip_idas the soundtrack, pick the window withclip_start_s, and addlip_syncfor singing performances.
API Examples
Submit a video task, then poll the task endpoint until both videos are ready.
1curl -X POST 'https://api.musicapi.ai/api/v1/sonic/video' \
2--header 'Authorization: Bearer YOUR_API_KEY' \
3--header 'Content-Type: application/json' \
4--data '{
5 "prompt": "neon-lit city street at night, slow dolly forward, light rain",
6 "duration": 5,
7 "resolution": "480p",
8 "aspect_ratio": "16:9"
9}'Why Build Music Videos on MusicAPI?
Song to Video in One Account
Generate the track, then the clip, with the same API key and credits.
Two Takes per Request
Every task returns two MP4s plus poster and last-frame images.
Async + Fast
Returns a task id instantly; videos usually finish in 15 to 60 seconds.
Auto-Refunds
Failed tasks are refunded automatically; polling is free.
Music Video API: Pricing, Free Access & API Keys
Video is billed per second of the requested duration, so cost is easy to predict before you submit.
Per-second pricing
70 credits per second at 480p, 140 credits per second at 720p. A 5 s 480p clip is 350 credits; a 15 s 720p clip is 2,100 credits.
Plans & credits
Video uses the same credits as music generation. See plans and credit packs on the pricing page.
API keys
Generate a bearer token in your account, keep it server-side, and call the video endpoint.
Ready to Put Your Songs on Screen?
Generate a song, then a video for it, from the same API. Pay per second of video with predictable credit pricing.
Frequently Asked Questions
Everything you need to know about generating music videos with the API.
What is the Music Video API?
It generates short AI video clips (5 to 15 seconds) from a text prompt, using Suno's video model. You can steer the picture with a first frame, a first and last frame, or up to 9 reference images, and you can pass the clip_id of a song you generated with MusicAPI to use it as the soundtrack, optionally with lip-sync. MusicAPI is an independent provider and is not affiliated with Suno.
How do I generate a music video with the API?
POST to https://api.musicapi.ai/api/v1/sonic/video with a prompt and a duration in whole seconds (5-15). Add clip_id to set one of your generated songs as the soundtrack and lip_sync: true to sync the visuals to it. The call returns a task_id; poll GET https://api.musicapi.ai/api/v1/sonic/task/{task_id} until state is succeeded.
What does a finished task return?
Every request returns two videos. Each has a video_url (MP4), a poster_url and a last_frame_url (JPG), plus width, height and duration. All files are hosted on our CDN. Videos generated from text alone have no audio track; when you pass clip_id the MP4 carries the song audio.
Which resolutions and aspect ratios are supported?
resolution is 480p (default) or 720p. aspect_ratio is 9:16 (default), 1:1, 16:9, 4:3 or 3:4. duration is a whole number of seconds from 5 to 15.
How do I control which part of the song plays?
Set clip_start_s (default 0) to choose where in the song the video starts. If you also send clip_end_s, the window clip_end_s minus clip_start_s must equal duration. lip_sync requires clip_id.
How much does the Music Video API cost?
Video is billed per second of the requested duration: 70 credits per second at 480p and 140 credits per second at 720p. A 5 second 480p video costs 350 credits; a 15 second 720p video costs 2,100 credits. Failed tasks are refunded automatically and polling is free.
Is it synchronous? Are webhooks supported?
It is asynchronous: the call returns a task_id immediately and the videos usually finish in about 15 to 60 seconds. At launch, video results are delivered by polling the task endpoint only; webhooks are not available for video yet.
Is this the same as the Video Editing Music API?
No. The Video Editing Music API generates a soundtrack for a video you already have. The Music Video API generates the video itself, and can use one of your generated songs as its soundtrack.