Create
POST
https://api.sunoapi.com/api/v2/suno/v3.5/upload
The core API to upload music.
POST /api/v2/suno/v3.5/upload
Sample Request
{
"url": "https://filesystem.site/cdn/20240722/7YSGZwU59FRhWzhRwWiL3A8pNmcJHC.mp3"
}
Request Body
Name | Type | Required | Default |
---|---|---|---|
url | string | true | "" |
url
The online url of the music.
{
"clip_id": "2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"duration": 48.792
}
Response Body
Name | Type | Description |
---|---|---|
clip_id | string | the clip id of the upload music |
duration | number | the duration of the upload music, in seconds |
Examples
const axios = require("axios")
const config = {
method: "post",
url: "https://api.sunoapi.com/api/v2/suno/v3.5/upload",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer <your-token>",
},
data: {
url: "https://filesystem.site/cdn/20240722/7YSGZwU59FRhWzhRwWiL3A8pNmcJHC.mp3",
},
}
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data))
})
.catch(function (error) {
console.log(error)
})