Suno v1 · Music

Merge music

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 →

Merge a replaced (Replace Section) or extended segment back into one complete song.

💡 When to use:Replace-section results come as segments; use this to get the finished full song. When merging a Replace Section result, is_infill must be true and edit_session_id is required.

Submit task
POST/ api/ cqt/ suno/ v1/ mergeMusicTask
Query the result (with the returned taskId)
GET/ api/ cqt/ suno/ v1/ sunoInfo?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 music 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
clip_idstringRequired
ID of the clip to merge.
is_infillbooleanRequired
Whether this is an infill (must be true when merging a Replace Section result).
project_idstring
Project ID.
edit_session_idstring
Edit session ID (required when is_infill is true).

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 →