Documentation
v1
Get Generated Lyrics

Get Generated Lyrics

GET
https://api.sunoapi.com/api/v1/suno/get-lyrics/{taskId}

Retrieve progress and response from a task you've sent in a previous make-lyrics request.

GET /api/v1/suno/get-lyrics/{taskId}

Request Param

NameLocationTypeRequiredDescription
taskIdpathstringtruethe task ID from the make-lyrics request

Sample Response

{
  "code": 200,
  "data": {
    "task_id": "3d51f2fb-2a52-4207-9808-a3aa7c9f64ce",
    "input": "{\"prompt\":\"run away\"}",
    "status": "completed",
    "title": "Run Away",
    "text": "[Verse]\nRunning through the open sky\nFeel the wind and just get by\nLeave the past and don't look back\nRun away on this new track\n\n[Verse 2]\nStars above they light our way\nNo more shadows come what may\nDust behind let's find our dreams\nRun away on silver beams\n\n[Chorus]\nRun away run away\nTo where the sun meets the day\nNo more chains no more ties\nRun away to clear skies\n\n[Verse 3]\nMountains call us to the peak\nIn their whispers futures speak\nClimbing high and free we soar\nRun away forevermore\n\n[Bridge]\nHands together hearts so free\nAll we're chasing yet to see\nBrave the unknown side by side\nRun away let's take this ride\n\n[Chorus]\nRun away run away\nTo where the sun meets the day\nNo more chains no more ties\nRun away to clear skies",
    "metadata": {
      "created_at": "2024-07-08T12:39:14.870428366Z",
      "started_at": "2024-07-08T12:39:14.999158689Z",
      "ended_at": "2024-07-08T12:39:28.525071323Z",
      "quota_frozen": 0,
      "quota_usage": 0
    }
  },
  "message": "success"
}

Response Body

NameTypeDescription
codenumberthe task ID from the make-lyrics request
dataobjectthe generated lyrics
messagestringwhether the mission was successful, can be success or failed

data

NameTypeDescription
task_idstringthe task ID from the make-lyrics request
statusstringthe status of the task, can be completed or processing
inputstringthe request details used to generate the lyrics
titlestringthe generated lyrics title
textstringthe generated lyrics
metadatastringthe metadata of the generation, including created_at, started_at, ended_at, quota_frozen, quota_usage
metadata.created_atstringthe start time of generation
metadata.ended_atstringthe end time of generation
metadata.quota_frozenstringthe frozen quota of this generation, you can ignore
metadata.quota_usagebooleanthe usage quota of this generation, you can ignore

Examples

const axios = require("axios")
 
const config = {
  method: "get",
  url: "https://api.sunoapi.com/api/v1/suno/get-lyrics/3d51f2fb-2a52-4207-9808-a3aa7c9f64ce",
  headers: {
    Authorization: "Bearer <your-token>",
  },
}
 
axios(config)
  .then(function (response) {
    console.log(JSON.stringify(response.data))
  })
  .catch(function (error) {
    console.log(error)
  })