Suno MP4 API
POSThttps://api.acedata.cloud/suno/mp4
Suno MP4 API, get MP4 file link via audio_id.
Related Products
Suno - jiasmart
Suno music generation platform, directly interfaces with this API, high-speed and stable availability.
Request Headers
acceptstring
Specify the format of the response returned by the server. If not specified, the default format is `application/json`; if specified as `application/x-ndjson`, the response will be returned in a chunked streaming format of JSON separated by newline characters (NDJSON).
Please select
authorizationstring
Bearer token
Request Body
audio_idstringRequired parameter
Used to obtain the song ID for the corresponding MP4 of the song.
Response
Success200
Request successful, returning MP4 data.
Response Body
dataobject
Obtain the audio data returned after successfully getting the MP4, which includes fields such as `video_url`.
video_urlstring
The URL of the generated video file, if not available, is an empty string.
successboolean
A boolean flag indicating whether this request was successful.
Example
{
"data": {
"video_url": "https://cdn.acedata.cloud/assets/examples/gemini/04a043bd-6b23-4b4e-945c-ce48158c3eee-3a89912507c7.mp4"
},
"success": true
}Failure400token_mismatched
Request error, possibly due to missing or invalid parameters.
Response Body
errorobject
codestring
Response error code.
messagestring
Error message of the response.
retryableboolean
Optional boolean field. `true` indicates that this failure allows a later re-request using the same parameters; `false` indicates that it should not be retried as-is. When the field is missing, it should not be automatically resent based on the HTTP status or error text. When it has been accepted or the execution result is unclear, the original `task_id` should be queried.
trace_idstring
The tracking ID for this request.
Example
{
"error": {
"code": "token_mismatched",
"message": "The specified token is not matched with API."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}Failure400api_not_implemented
Request error, possibly due to missing or invalid parameters.
Response Body
errorobject
codestring
Response error code.
messagestring
Error message of the response.
retryableboolean
Optional boolean field. `true` indicates that this failure allows a later re-request using the same parameters; `false` indicates that it should not be retried as-is. When the field is missing, it should not be automatically resent based on the HTTP status or error text. When it has been accepted or the execution result is unclear, the original `task_id` should be queried.
trace_idstring
The tracking ID for this request.
Example
{
"error": {
"code": "api_not_implemented",
"message": "The API is not implemented."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}Failure400disabled
Request error, possibly due to missing or invalid parameters.
Response Body
errorobject
codestring
Response error code.
messagestring
Error message of the response.
retryableboolean
Optional boolean field. `true` indicates that this failure allows a later re-request using the same parameters; `false` indicates that it should not be retried as-is. When the field is missing, it should not be automatically resent based on the HTTP status or error text. When it has been accepted or the execution result is unclear, the original `task_id` should be queried.
trace_idstring
The tracking ID for this request.
Example
{
"error": {
"code": "disabled",
"message": "Your application has been disabled by Ace Data Cloud due to abnormal usage behavior, please contact our support to get more information."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}Failure400bad_request
Request error, possibly due to missing or invalid parameters.
Response Body
errorobject
codestring
Response error code.
messagestring
Error message of the response.
retryableboolean
Optional boolean field. `true` indicates that this failure allows a later re-request using the same parameters; `false` indicates that it should not be retried as-is. When the field is missing, it should not be automatically resent based on the HTTP status or error text. When it has been accepted or the execution result is unclear, the original `task_id` should be queried.
trace_idstring
The tracking ID for this request.
Example
{
"error": {
"code": "bad_request",
"message": "model is invalid."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}Failure400no_token
Request error, possibly due to missing or invalid parameters.
Response Body
errorobject
codestring
Response error code.
messagestring
Error message of the response.
retryableboolean
Optional boolean field. `true` indicates that this failure allows a later re-request using the same parameters; `false` indicates that it should not be retried as-is. When the field is missing, it should not be automatically resent based on the HTTP status or error text. When it has been accepted or the execution result is unclear, the original `task_id` should be queried.
trace_idstring
The tracking ID for this request.
Example
{
"error": {
"code": "no_token",
"message": "No token specified for the request."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}Failure401invalid_token
Unauthorized, authorization token is invalid or missing.
Response Body
errorobject
codestring
Response error code.
messagestring
Error message of the response.
retryableboolean
Optional boolean field. `true` indicates that this failure allows a later re-request using the same parameters; `false` indicates that it should not be retried as-is. When the field is missing, it should not be automatically resent based on the HTTP status or error text. When it has been accepted or the execution result is unclear, the original `task_id` should be queried.
trace_idstring
The tracking ID for this request.
Example
{
"error": {
"code": "invalid_token",
"message": "The specified token is invalid or wrong."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}Failure401token_expired
Unauthorized, authorization token is invalid or missing.
Response Body
errorobject
codestring
Response error code.
messagestring
Error message of the response.
retryableboolean
Optional boolean field. `true` indicates that this failure allows a later re-request using the same parameters; `false` indicates that it should not be retried as-is. When the field is missing, it should not be automatically resent based on the HTTP status or error text. When it has been accepted or the execution result is unclear, the original `task_id` should be queried.
trace_idstring
The tracking ID for this request.
Example
{
"error": {
"code": "token_expired",
"message": "token expired."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}Failure401token_mismatched
Unauthorized, authorization token is invalid or missing.
Response Body
errorobject
codestring
Response error code.
messagestring
Error message of the response.
retryableboolean
Optional boolean field. `true` indicates that this failure allows a later re-request using the same parameters; `false` indicates that it should not be retried as-is. When the field is missing, it should not be automatically resent based on the HTTP status or error text. When it has been accepted or the execution result is unclear, the original `task_id` should be queried.
trace_idstring
The tracking ID for this request.
Example
{
"error": {
"code": "token_mismatched",
"message": "token and api does not match."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}Failure403used_up
Unauthorized, authorization token is invalid or missing.
Response Body
errorobject
codestring
Response error code.
messagestring
Error message of the response.
retryableboolean
Optional boolean field. `true` indicates that this failure allows a later re-request using the same parameters; `false` indicates that it should not be retried as-is. When the field is missing, it should not be automatically resent based on the HTTP status or error text. When it has been accepted or the execution result is unclear, the original `task_id` should be queried.
trace_idstring
The tracking ID for this request.
Failure404no_api
Unauthorized, authorization token is invalid or missing.
Response Body
errorobject
codestring
Response error code.
messagestring
Error message of the response.
retryableboolean
Optional boolean field. `true` indicates that this failure allows a later re-request using the same parameters; `false` indicates that it should not be retried as-is. When the field is missing, it should not be automatically resent based on the HTTP status or error text. When it has been accepted or the execution result is unclear, the original `task_id` should be queried.
trace_idstring
The tracking ID for this request.
Failure429too_many_requests
Too many requests, rate limit exceeded.
Response Body
errorobject
codestring
Response error code.
messagestring
Response error message.
retryableboolean
Optional boolean field. `true` indicates that this failure allows a later re-request using the same parameters; `false` indicates that it should not be retried as-is. When the field is missing, it should not be automatically resent based on the HTTP status or error text. When it has been accepted or the execution result is unclear, the original `task_id` should be queried.
trace_idstring
The tracking ID for this request.
Failure500api_error
Internal server error, an exception occurred on the server side.
Response Body
errorobject
codestring
Response error code.
messagestring
Error message of the response.
retryableboolean
Optional boolean field. `true` indicates that this failure allows a later re-request using the same parameters; `false` indicates that it should not be retried as-is. When the field is missing, it should not be automatically resent based on the HTTP status or error text. When it has been accepted or the execution result is unclear, the original `task_id` should be queried.
trace_idstring
The tracking ID for this request.

Integration guide
Shell
Python
JavaScript
Java
Go
PHP
Kind reminder: For streaming requests, the above code may not be fully applicable. Please refer to the integration documentation for changes.
Suno Music Generation
Allow Use General Balance
When 'Allow General Balance' is enabled, the general balance is used automatically if an app's balance is insufficient.

