Suno v1 · Music

Upload audio

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 →

Submit your audio to the system and get back an audio ID that “Generate from audio ID” and similar endpoints can reuse.

💡 When to use:Upload first when the same audio will be used several times. When the task completes, take the audio ID from the “Get upload result” response.

Submit task
POST/ api/ cqt/ suno/ v1/ uploadTask
Query the result (with the returned taskId)
GET/ api/ cqt/ suno/ v1/ getUploadTask?taskId={taskId}

The returned taskId is a number and only works with the v1 query endpoints; it is not interchangeable with v2 task IDs. Get upload result →

Notes
  • After submitting, poll with the taskId — every 5–10 seconds is enough, no need to hit it every second.

Credits are pre-deducted per call (see the pricing page for prices); a failed submit or a failed task is refunded automatically.

Authorization

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

Request body

application/json
audioFilePathstring
Audio file path. Same field as audio_file_path in two spellings; fill either one.
audio_file_pathstring
Audio file path (snake_case spelling).
fileExtstring
File extension, e.g. mp3. Same field as file_ext in two spellings.
file_extstring
File extension (snake_case spelling).

Response Fields

codenumber
Business code: 200 = success; see the error notes for the rest. The HTTP status is normally 200.
msgstring
Message: success on success, the reason on failure.
data.taskIdnumber
Task ID (a number). Use it with the query endpoint to fetch the result.

Suno v1 · Intro →