UPLOAD
Upload an audio file and turn it into an extendable song.
Name
Value
Name
Type
Description
// Success: the audio was turned into a song
{
"task_id": "29e983ca-7e86-4017-a9e3-ef6fe9cd5f2a",
"song_id": "a0500307-824c-4efb-b96b-ffa76e362fae"
}// Bad request
{
"errors": [{ msg: "Invalid request" }]
}// Invalid API Key
{}// A server error occured
{}const axios = require('axios');
const data = JSON.stringify({
"audio_url": "https://.....mp4"
});
const config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://api.apiframe.pro/suno-upload',
headers: {
'Content-Type': 'application/json',
'Authorization': 'YOUR_API_KEY'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Last updated