apimaxDocs
DocsPricingConsole
API ReferenceIntegration GuideUser GuideChangelog

Music Series

POSTRelink Audio URLsPOSTUpsample Style TagsGETGet Style Inspiration SuggestionsPOSTGet MIDIPOSTGet Lyrics TimingPOSTSubmit a Lyrics Generation TaskPOSTGet Lossless WAV AudioPOSTGet MP4 VideoPOSTCrop an Audio ClipPOSTAdd Fade In/OutPOSTAdjust Audio SpeedPOSTRemaster or UpsamplePOSTGet Downbeat AnalysisPOSTReverse Audio PlaybackPOSTGet Waveform Aggregates

Image Series

Video series

Task Management

Error Code ReferenceQuery Task StatusGET

Account Management

Query Quota UsageGET

Docs / Music Series / Suno / Utilities

UtilitiesPOSTSunoTIMINGlyricsclipsuno_timing

Get Lyrics Timing

Get the lyric alignment timing of a generated clip.

POSThttps://api.apimax.ai/v1/music/timing
Try it
Bearer API KeyJSONServer-side call

Purpose#

Submit a lyrics timing (TIMING) task to get the word-aligned lyrics timing (timestamps for each section/word) of a clip generated by this service. The endpoint is asynchronous: once validation passes, the service immediately returns a public task_id and does not wait for the task to finish. Poll the task status and result afterwards with GET /v1/tasks/:id.

TIMING is a derived action that depends only on the source clip_id: it does not regenerate music but computes and returns the lyrics timing of an existing clip, commonly used for karaoke-style lyric highlighting, subtitle synchronization, and similar features. The clip_id must come from a task result generated by this service, and the result is returned through the task's data field.

TIMING only needs the source clip_id; callback_url is an optional task callback URL.

Request Fields#

FieldTypeRequiredDefaultDescription
clip_idstringYes—UUID of the target Suno clip; must come from a task result generated by this service
callback_urlstringNo—Callback URL notified when the task reaches a terminal state

clip_id is required. If it is empty, the service returns the clip_id_empty error code. The clip must come from a historical task on this service; otherwise the request will fail.

callback_url must be a publicly accessible HTTPS URL no longer than 2048 characters. Local, intranet, loopback, and link-local addresses are prohibited, as are domains that resolve to such addresses.

When the task completes or fails, the service sends a POST with a JSON payload to this URL. The receiving endpoint must return any 2xx status code within 10 seconds; timeouts, network errors, and non-2xx responses are all treated as failures.

After a failure, the service retries after 1, 2, and 4 seconds respectively, sending the request at most 4 times including the first attempt. The receiver should use the task ID for idempotent processing to avoid handling duplicates.

An invalid callback_url does not fail the submission, but the task receives no callback.

Request Example#

cURL
curl --request POST \
  --url https://api.apimax.ai/v1/music/timing \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "clip_id": "1f78f8de-4ca6-4375-ae79-46c33a2c97f7",
    "callback_url": ""
  }'

Success Response#

200
{
  "created_at": 1795404820,
  "id": "task_AH0CG8v11LkvIri7qFBKeVbCxmjEr08l",
  "model": "suno_timing",
  "status": "queued",
  "task_id": "task_AH0CG8v11LkvIri7qFBKeVbCxmjEr08l"
}

Response Fields#

FieldTypeDescription
task_idstringPublic task ID, used for subsequent queries and callbacks
idstringSame value as task_id
statusstringAlways queued right after submission
modelstringModel name, always suno_timing
created_atintegerTask creation time (Unix seconds)

Use task_id for all subsequent queries.

Error Response#

Errors use the structure below, where error.code is the error code and error.message is the specific reason:

400
{
  "error": {
    "code": "plugin_request_invalid",
    "message": "clip_id_empty",
    "type": "max_api_error"
  }
}
HTTPerror.codeerror.messageScenario
400plugin_request_invalidclip_id_emptyclip_id is empty
400invalid_requestThe parse errorThe request body is not a valid JSON object
503model_not_foundNo available channel (includes group and model name)No channel is currently available

Querying the Task Result#

After a successful submission, poll with the returned task_id:

  • Single task query: GET /v1/tasks/:id

status Enum#

ValueDescription
queuedTask created, waiting to be processed
in_progressTask is being processed
completedTask finished; data is readable
failedTask failed; error is readable

completed and failed are terminal states; keep polling for any other status.

Response Fields#

FieldTypeDescription
idstringPublic task ID
objectstringAlways task
modelstringModel name, always suno_timing
platform / typestringAlways suno
statusstringTask status; see the enum above
progressintegerProgress percentage, 0–100
created_atintegerSubmission time (Unix seconds)
started_atintegerProcessing start time (Unix seconds); omitted until the task starts
finished_atintegerFinish time (Unix seconds); omitted until the task finishes
data—Task result; returned only when completed, structure described below
errorobjectFailure details; returned only when failed, with code and message

When a task fails, status is failed and the reason is in error.message (for example task_timeout when the upstream times out); the charge is refunded.

When clip_id is not a clip generated by this service, the task turns failed within seconds of submission and error.message is the upstream's not-found message (for example Clip not found.).

Result Fields (data)#

In the query result, the data field contains the lyrics timing data, typically with each lyric segment's text and its corresponding start and end timestamps.

json
{
  "id": "task_r5KHNQmUUtRAS4G0ED0m2x9CZMVtD68n",
  "model": "suno_timing",
  "object": "task",
  "platform": "suno",
  "type": "suno",
  "status": "completed",
  "progress": 100,
  "created_at": 1783071970,
  "started_at": 1783071971,
  "finished_at": 1783071982,
  "data": [
    {
      "state": "complete",
      "alignment": [
        { "word": "[V", "start_s": 12.527, "end_s": 12.686, "p_align": 1, "success": true },
        { "word": "er", "start_s": 13.085, "end_s": 13.245, "p_align": 1, "success": true },
        { "word": "s", "start_s": 13.644, "end_s": 13.723, "p_align": 1, "success": true },
        { "word": "e", "start_s": 14.441, "end_s": 14.521, "p_align": 1, "success": true },
        { "word": "] test", "start_s": 24.814, "end_s": 25.293, "p_align": 1, "success": true },
        { "word": "ing", "start_s": 25.452, "end_s": 25.691, "p_align": 1, "success": true }
      ]
    }
  ]
}

data[].alignment is the word-by-word alignment array: word is the word/segment text, start_s / end_s are the start and end in seconds, p_align is the alignment confidence, and success indicates whether the word was aligned successfully. Field names and structure are subject to the actual response.

Next steps

All docs
Upsample Style TagsPolish and expand style tags and lyrics into a fuller style description.Get Style Inspiration SuggestionsGet random style or inspiration suggestions from the Suno upstream.Method 1: Create a Voice from an Existing SongCreate a vocal voice directly from a song clip already generated in this pool.Upload AudioImport user audio as a Suno-owned clip; returns an async upload task ID. With copyright=true the request switches to the copyright pipeline.Get MIDIRetrieve a MIDI file for a clip generated by this service.[Core] Music GenerationSubmit an async task via the unified music generation endpoint and query normalized music results using the public task ID.
On this page
OverviewPurposeRequest FieldsRequest ExampleSuccess ResponseResponse FieldsError ResponseQuerying the Task Resultstatus EnumResponse FieldsResult Fields (data)Next steps
API

POST /v1/music/timing