POST
/
api
/
v1
/
generate
/
get-timestamped-lyrics
Get Timestamped Lyrics
curl --request POST \
  --url https://api.kie.ai/api/v1/generate/get-timestamped-lyrics \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "taskId": "5c79****be8e",
  "audioId": "8551****662c"
}'
{
  "code": 200,
  "msg": "success",
  "data": {
    "alignedWords": [
      {
        "word": "[Verse]\nWaggin'",
        "success": true,
        "start_s": 1.36,
        "end_s": 1.79,
        "p_align": 0
      }
    ],
    "waveformData": [
      0,
      1,
      0.5,
      0.75
    ],
    "hootCer": 0.3803191489361702,
    "isStreamed": false
  }
}

Usage Guide

  • Use this endpoint to get lyrics that synchronize with audio playback
  • Implement karaoke-style lyric displays in your music players
  • Create visualizations that match audio timing

Parameter Details

  • Both taskId and audioId are required to identify the specific track
  • The taskId comes from either “Generate Music” or “Extend Music” endpoints
  • The audioId identifies the specific track version when multiple were generated

Developer Notes

  • Timestamps are provided in seconds for precise synchronization
  • Waveform data is included for audio visualization implementations
  • For instrumental tracks (created with instrumental=true), no lyrics data will be returned

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

Body

application/json

Response

200
application/json

Request successful

The response is of type object.