Get Lyrics
POST
https://api.sunosay.com/suno/lyrics/get-task
Get the generated lyrics
Request Header
Header Name | type | Required | Description |
---|---|---|---|
Authorization | string | true | request verification authorization |
Request Parameters
Params Name | type | Required | Description |
---|---|---|---|
task_id | string | true | The task_id created by the previous request |
Sample Parameters
{
"task_id": "your task_id"
}
Sample Response
Different status codes click to view
{
"code": 200,
"task_id": "470e701149-76bdbf8-b5c9-4eda-73f4d953",
// The status of the task
"status": "complete",
// The prompt of the task
"prompt": {},
"lyrics": {
// The lyrics of the song
"text": "[Verse]\nWalking through the dark tonight\nStars above are shining bright\nWhispers in the cool night air\nFeel the magic everywhere\n\n[Verse 2]\nLight the path where shadows fall\nTouch the dreams beyond the wall\nGlowing secrets in the sky\nEvery moment passing by\n\n[Chorus]\nStars in the night\nGuiding our flight\nHold on so tight\nThrough the long night\n\n[Verse 3]\nCounting wishes one by one\nChasing dreams and having fun\nMoonlight dances on the sea\nSharing moments you and me\n\n[Chorus]\nStars in the night\nGuiding our flight\nHold on so tight\nThrough the long night\n\n[Bridge]\nWe're together here and now\nUnderneath the starry vow\nHeartbeats echo love's sweet song\nIn this place where we belong",
// The title of the song
"title": "Stars in the Night"
},
"message": "ok!"
}
Examples Code
node
var axios = require('axios');
var config = {
method: 'post',
url: 'https://api.sunosay.com/suno/lyrics/generate-lyrics',
headers: {
Authorization: 'Bearer your-api-key',
},
data: {
"task_id": "470e701149-76bdbf8-b5c9-4eda-73f4d953"
},
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});