LYRICS
Generate song Lyrics based on a prompt.
POST
https://api.apiframe.pro/suno-lyrics
Headers
Name
Value
Content-Type
application/json
Authorization*
Your APIFRAME API Key
Body
Name
Type
Description
prompt
*
string
the text prompt for generating the lyrics
Response
// Success, the task has been submitted
{
"task_id": "29e983ca-7e86-4017-a9e3-ef6fe9cd5f2a"
}
This request takes about 10 secs. The result looks like this:
{
"type": "suno-lyrics",
"title": "xxxxxxxx",
"lyrics": "xxxxxxxxxxxxxxxxxxxxxxxxx",
"status": "finished"
}
Code samples
const axios = require('axios');
const data = JSON.stringify({
"prompt": "a true friend"
});
const config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://api.apiframe.pro/suno-lyrics',
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
Was this helpful?