Suno v1 · Music

Get music result

Suno v1 and Suno v2 are separate APIs

Suno v1 has its own task system, different from Suno v2: a submit returns a numeric taskId and results come from the v1 query endpoints; task IDs and result formats are not interchangeable between the two. For the OpenAI-style entry use /v1/audio/generations (model suno_v1).

Suno v2 docs →OpenAI-style API →

Check the progress and the finished songs of create-type tasks (create / extend / replace / cover / merge / compatible forms and so on).

💡 When to use:Call it every 5–10 seconds after submitting, until data.status is success and every clip’s status is complete; on failure code is 500. No credits are charged.

Call (synchronous)
GET/ api/ cqt/ suno/ v1/ sunoInfo
Notes
  • This endpoint does not consume credits.
  • The system refreshes a task from the upstream at most once every 10 seconds, so polling faster does not help.
  • After a task succeeds, the audio_url of every song in data.data is replaced with a fresh link automatically; query again after it expires to get a new one.
  • The automatic refund on failure happens the moment your query sees the failure, so make sure you poll until a final state.

Authorization

AuthorizationstringheaderRequired
API key, sent as a Bearer token in the Authorization header.

Query parameters

taskIdstringqueryRequired
The taskId returned when you submitted the create task.

Response Fields

data.statusstring
Overall task status: running (in progress) / success (the upstream produced songs) / failed (see failReason). Whether the songs are final is decided by each clip’s status being complete.
data.taskIdnumber
Task ID.
data.dataarray
List of songs, normally two. Each has at least id, status and audio_url; other fields (title, duration, cover …) come from the upstream as is and may change.
data.data[].audio_urlstring
Direct audio link of the song (swapped for a fresh link after success).
data.creatAtstring
Creation time (Unix seconds, as a string). The field name really is creatAt (one e short); null while the task has just been submitted.
data.finishAtstring
Completion time (Unix seconds, as a string), null until finished.
data.failReasonstring
Failure reason (only when status is failed). Note that this endpoint still answers code 200 on failure; the reason is here, not in msg.
data.failCodenumber
Failure code (only when status is failed), e.g. 100020 or 400.

Common Errors

msgMeaning
no data errorNo such taskId, or the task is still running but was not submitted by you (other people’s running tasks are answered as "not found").
No available tokenExample failure reason (data.failReason, failCode 100020): no generation capacity is available right now. The task ends as failed and the credits are refunded; try again later.
MERGE_MUSIC_FAILED [400]Example failure reason (data.failReason): the merge request was rejected, usually because clip_id / edit_session_id do not belong to the same edit.

Suno v1 · Intro →