GET
/
api
/
v1
/
lyrics
/
record-info
Get Lyrics Generation Details
curl --request GET \
  --url https://api.sunoapi.org/api/v1/lyrics/record-info \
  --header 'Authorization: Bearer <token>'
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "11dc****8b0f",
    "param": "{\"prompt\":\"A song about peaceful night in the city\"}",
    "response": {
      "taskId": "11dc****8b0f",
      "lyricsData": [
        {
          "text": "[Verse]\n我穿越城市黑暗夜\n心中燃烧梦想的烈火",
          "title": "钢铁侠",
          "status": "complete",
          "errorMessage": ""
        }
      ]
    },
    "status": "SUCCESS",
    "type": "LYRICS",
    "errorCode": null,
    "errorMessage": null
  }
}

Status Descriptions

  • PENDING: Task is waiting to be processed
  • SUCCESS: Lyrics generated successfully
  • CREATE_TASK_FAILED: Failed to create the task
  • GENERATE_LYRICS_FAILED: Failed to generate lyrics
  • CALLBACK_EXCEPTION: Error occurred during callback
  • SENSITIVE_WORD_ERROR: Content contains prohibited words

Developer Notes

  • Use this endpoint to check task status instead of waiting for callbacks
  • This returns all generated lyrics variations from a single task
  • Each lyrics variation includes a title and complete lyrics text

Authorizations

Authorization
string
header
required

🔑 API Authentication

All endpoints require authentication using Bearer Token.

Get API Key

  1. Visit the API Key Management Page to obtain your API Key

Usage

Add to request headers:

Authorization: Bearer YOUR_API_KEY

⚠️ Note:

  • Keep your API Key secure and do not share it with others
  • If you suspect your API Key has been compromised, reset it immediately from the management page

Query Parameters

taskId
string
required

The task ID returned from the Generate Lyrics endpoint. Used to retrieve detailed information about a specific lyrics generation task.

Response

200
application/json

Request successful

The response is of type object.