Suno MP4 API Integration Guide

SUNO allows us to obtain officially generated MP4 links for generated music. This document explains how to integrate the relevant API.

On the official website, open the song and select ⋯ → Download → MP4 video asset.

MP4 video asset selected in the Suno website Download window

This API has only one input parameter, audio_id, which is the song ID generated by the official service.

The audio_id entered here is 3f8c1800-7a96-4a2b-811f-5fee716a9e32. Please replace it with the ID of a song you have already generated.

import os

import requests

url = "https://api.acedata.cloud/suno/mp4"
headers = {
    "accept": "application/json",
    "authorization": f"Bearer {os.environ['API_KEY']}",
    "content-type": "application/json",
}
payload = {
    "audio_id": "3f8c1800-7a96-4a2b-811f-5fee716a9e32",
}

response = requests.post(url, json=payload, headers=headers, timeout=180)
print(response.text)

When successful, data.video_url is the address of the corresponding MP4 file. The processing rejection result received during this test is retained below.

{
  "success": false,
  "task_id": "f9308100-cf48-43d2-9d3c-e523ccd57311",
  "trace_id": "d0683bbb-17a3-4113-ac06-850550931b49",
  "error": {
    "code": "api_error",
    "message": "Music processing was denied. Contact support with the trace ID."
  }
}

If the export fails, you can contact support with the trace_id and the source song's audio_id. As you can see, the video_url field in data is the link to the MP4 file corresponding to the song.