GET
/
api
/
v1
/
generate
/
record-info
Get Music Task Details
curl --request GET \
  --url https://api.kie.ai/api/v1/generate/record-info \
  --header 'Authorization: Bearer <token>'
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "5c79****be8e",
    "parentMusicId": "",
    "param": "{\"prompt\":\"A calm piano track\",\"style\":\"Classical\",\"title\":\"Peaceful Piano\",\"customMode\":true,\"instrumental\":true,\"model\":\"V3_5\"}",
    "response": {
      "taskId": "5c79****be8e",
      "sunoData": [
        {
          "id": "8551****662c",
          "audioUrl": "https://example.cn/****.mp3",
          "streamAudioUrl": "https://example.cn/****",
          "imageUrl": "https://example.cn/****.jpeg",
          "prompt": "[Verse] 夜晚城市 灯火辉煌",
          "modelName": "chirp-v3-5",
          "title": "钢铁侠",
          "tags": "electrifying, rock",
          "createTime": "2025-01-01 00:00:00",
          "duration": 198.44
        }
      ]
    },
    "status": "SUCCESS",
    "type": "GENERATE",
    "errorCode": null,
    "errorMessage": null
  }
}

Usage Guide

  • Use this endpoint to check task status and access generation results
  • Task details include status, parameters, and generated tracks
  • Generated tracks can be accessed through the returned URLs

Status Descriptions

  • PENDING: Task is waiting to be processed
  • TEXT_SUCCESS: Lyrics/text generation completed successfully
  • FIRST_SUCCESS: First track generation completed
  • SUCCESS: All tracks generated successfully
  • CREATE_TASK_FAILED: Failed to create task
  • GENERATE_AUDIO_FAILED: Failed to generate audio
  • CALLBACK_EXCEPTION: Error during callback process
  • SENSITIVE_WORD_ERROR: Content filtered due to sensitive words

Developer Notes

  • For instrumental tracks (instrumental=true), no lyrics data will be included
  • Maximum query rate: 3 requests per second per task
  • Response includes direct URLs to audio files, images, and streaming endpoints

Authorizations

Authorization
string
header
required

All APIs require authentication via Bearer Token.

Get API Key:

  1. Visit API Key Management Page to get your API Key

Usage: Add to request header: 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 in the management page

Query Parameters

taskId
string
required

Unique identifier of the music generation task to retrieve. This can be either a taskId from a "Generate Music" task or an "Extend Music" task.

Response

200
application/json

Request successful

The response is of type object.