ai-music-api/timeStamped-lyrics returns the lyrics of a generated song synchronized with its audio: every word (or word group) comes with start and end times in seconds, plus waveform data for audio visualization.
Use it for karaoke-style word highlighting and scrolling lyrics in a music player, or for visualizations that follow the audio. Pass the task_id of the original music task and the audio_id of one of its songs; the result is returned at once, with nothing to poll. Instrumental tracks (made with instrumental: true) have no lyrics data.
Setup
The Suno endpoints sharePOST /api/v1/jobs/createTask (model selects the endpoint and the parameters go in input). This endpoint is synchronous: the create request returns the result directly, with no need to poll the query endpoint. See the Suno introduction for the flow, chaining tasks and how long files are kept. The base URL is https://api.dreamto.ai; send the API Key in the Authorization: Bearer header.
Every response has HTTP status 200; the code in the body tells the outcome: 200 is success, anything else an error (see the response examples of this endpoint).
Parameters
model is ai-music-api/timeStamped-lyrics; the parameters go in input. Requests that break a rule return code: 422; no task is created or charged.
Pricing
Billed per request: each succeeded task is charged once at the model price shown in the console. The balance is checked for that price when the task is created (code: 402 when insufficient); invalid requests and failed tasks are not charged.
Quick start
This endpoint answers synchronously:data in the create response is the result, so there is nothing to poll and no need to call the query endpoint. $DREAMTO_API_KEY is your API Key.
Callback
This endpoint returns its result at once and sends no callback;callBackUrl can be left out.
Notes
- The result is returned at once in
dataof the createTask response:data.code200means success,data.data.alignedWordsholds the word timestamps (startS/endS, in seconds) anddata.data.waveformDatathe waveform. There is nothing to poll and no callback is sent. wordkeeps the section tags (such as[Verse]) and line breaks of the lyrics; concatenating everywordin order gives back the full lyrics.- An instrumental song has no lyrics, so no lyrics data is returned.
taskIdis issued by DreamTo (32 hex digits) and can only be queried with an API Key of the same account; an unknown or expired task returnscode: 422withmsg: recordInfo is null.- The body accepts only
model,callBackUrlandinput; undeclaredinputfields, wrong types and values that break a rule returncode: 422with an English reason inmsg; no task is created or charged. - Every file link in a result (audio, cover image, video and so on) is a DreamTo download link (
/v1/tasks/{task_id}/artifacts/...) that works without an API Key and supportsRange; files are kept for 14 days after the task is created, so download them promptly. paramechoes the create request, withinputas a JSON string that needs a second parse; the credits used are not returned, and the charge is shown in the DreamTo console bills.failCode/failMsgof a failed task come from the model service (content moderation, a source audio that cannot be downloaded and so on); internal errors are reported asfailCode: "500"withfailMsg: "Internal Error, Please try again later.".

