Create Music Video (MP4)
Transform any generated Suno track into a fully synchronized, high-definition MP4 music video. Seamlessly blends dynamic visual animations, cover artwork, audio reactive pulses, customizable artist attribution, and custom brand domain watermarks.
Video Output Features
1080p MP4Formatted for vertical and square mobile feeds on TikTok, Instagram Reels, and YouTube Shorts.
Overlay creator name and custom brand domain watermark directly into the video rendering.
Smooth visualizers and lighting pulses synchronized in lockstep with the song's transients.
Key Capabilities & CDN Retention
- 14-Day Cloud Storage: Rendered MP4 video files are stored on high-speed global CDN edge servers for 14 days.
- Signature & Branding: Pass optional
authoranddomain_namestrings (up to 50 characters each) to stamp custom creator branding. - Cost & Billing: Consumes only 10 credits per music video rendering. If generation fails, credits are refunded automatically.
Validation Rules & Constraints
Source Track IDs
Both task_id and audio_id are required and must reference an existing song that has completed audio rendering.
Asynchronous Webhook
Video rendering requires GPU processing time. Provide a valid callBackUrl to receive the final MP4 video download URL immediately upon completion.
Authentication & Headers
| Header | Requirement | Description |
|---|---|---|
| Authorization | required | Bearer YOUR_API_KEY Secret API key generated in your dashboard. |
| Content-Type | required | application/json Request body format. |
Request Body Parameters
6 fieldstask_idstringrequiredUnique identifier of the music generation task containing the target song.
audio_idstringrequiredUnique identifier (UUID) of the specific audio track within the generation task to visualize into an MP4 video.
authorstringoptionalArtist or creator name displayed as signature attribution on the video cover (maximum 50 characters).
domain_namestringoptionalCustom website or brand name displayed as watermark attribution at the bottom of the video (maximum 50 characters).
taskTypestringoptionalExplicit task routing identifier. Can be set to "create_music_video".
callBackUrlstringoptionalPublic HTTPS webhook URL to receive asynchronous completion notification when video rendering completes.
When Callbacks Are Sent
The SongMesh API automatically triggers an HTTP POST request to your designated callBackUrl under these events:
- Music video task placed in cloud GPU rendering queue
- Cover art animation, particle motions, and audio waveforms rendered
- 1080p H.264 MP4 container assembled and uploaded to edge CDN
- Webhook notification dispatched with direct video download URL (code: 200 / 0)
Webhook Payload Format
{
"code": 200,
"msg": "success",
"data": {
"task_id": "task_id_5bbe7721119d",
"video_url": "https://cdn.sunoapi.top/path/to/generated_music_video.mp4"
}
}Callback Payload Fields
| Field | Type | Description |
|---|---|---|
code | integer | HTTP status code (200 / 0: Success, 400: Bad Request, 500: Server rendering error). |
msg | string | Status message ("success" or error details). |
data.task_id | string | Unique task identifier assigned to the music video generation request. |
data.video_url | string | High-speed signed CDN download URL for the generated 1080p MP4 music video (valid for 14 days). |
Receiver Implementation Example
// Next.js App Router Webhook Receiver (/api/webhook/suno/route.ts)
import { NextRequest, NextResponse } from 'next/server';
export async function POST(req: NextRequest) {
const payload = await req.json();
const { code, msg, data } = payload;
if ((code === 200 || code === 0) && (data?.video_url || data?.videoUrl)) {
const videoUrl = data.video_url || data.videoUrl;
console.log(`Music video for task ${data.task_id} generated successfully!`);
console.log(`Direct MP4 Video URL: ${videoUrl}`);
// Download MP4 video, upload to cloud storage, or auto-publish to TikTok/YouTube
} else {
console.error(`Music video rendering failed (${code}): ${msg}`);
}
return NextResponse.json({ received: true });
}Webhook Security Recommendation
Always verify incoming webhook payloads on your server. Respond with a 200 OK immediately after parsing the payload to prevent redundant delivery retries from the webhook dispatcher.
curl -X POST "https://api.sunoapi.top/api/v1/createTask" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"taskType": "create_music_video",
"task_id": "taskId_774b9aa0422f",
"audio_id": "e2318ca3-5b62-49d9-bbd3-08aaf2c6dd27",
"author": "DJ Electronic",
"domain_name": "sunoapi.top",
"callBackUrl": "https://api.yourdomain.com/webhook/suno"
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "taskId_774b9aa0422f"
}
}• Social Media: Use the generated MP4 file directly for promotional clips on TikTok, YouTube Shorts, and Instagram.
• Retention: Download the MP4 file within 14 days or upload it to your long-term cloud bucket.
• Pricing: 10 credits per music video rendering.
Ready to render synchronized MP4 music videos?
Generate your API key and export professional social-ready music videos in seconds.