Back to Suno Model

Timestamped Lyrics

Retrieve word-level timestamped lyrics for karaoke-style displays and get exact timing data for your generated music.

Endpoint Overview

POST/api/v1/audio/music/timestamped-lyrics

Send a POST request with the completed music audio ID to get a detailed array of all lyrics, grouped by segment, with start and end times in milliseconds.

Credits: 2 credits per request.

Parameters

ParámetroTipoRequeridoDescripción
task_idstringRequeridoThe task ID that generated the music (usually returned by POST /api/v1/audio/music).
audio_idstringRequeridoThe specific audio clip ID (e.g. from the response of the feed API).

Example Request

cURL

bash
curl -X POST "https://apiin.one/api/v1/audio/music/timestamped-lyrics" \
  -H "Authorization: Bearer aio_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "task_id": "gen123abc456def789ksv",
    "audio_id": "song_abc123"
  }'

Example Response

Synchronous response returning the complete timing data.

json
{
  "code": 200,
  "message": "success",
  "data": {
    "text": "[Verse 1]\nIt's a beautiful day...",
    "lyricParams": [
      {
        "text": "[Verse 1]\n",
        "metadata": {
          "style": "Verse 1"
        },
        "type": "segment_break"
      },
      {
        "text": "It's a beautiful day",
        "start": 11.23,
        "end": 14.89,
        "type": "lyric"
      }
    ],
    "waveform": [
      0.2,
      0.4,
      0.5
    ]
  }
}

Error Handling

Status CodeTipoRequeridoDescripción
400bad_requestOpcionalMissing task_id or audio_id.
401authentication_errorOpcionalInvalid or missing API key.
404not_foundOpcionalAudio or lyrics not found.