apimaxDocs
DocsPricingConsole
API ReferenceIntegration GuideUser GuideChangelog

Music Series

POST[Core] Music GenerationPOSTCover SongsPOSTGenerate Sound EffectsPOSTExtend SongsPOSTConcatenate Extend Clips into a SongPOSTSong StemsPOSTAdd InstrumentalPOSTAdd Vocals

Image Series

Video series

Task Management

Error Code ReferenceQuery Task StatusGET

Account Management

Query Quota UsageGET

Docs / Music Series / Suno / Task submission

Task submissionPOSTSunoCONCATclipsuno_concat

Concatenate Extend Clips into a Song

Merge clips produced by extend into a complete song.

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

Purpose#

Merge the song clips produced by extend operations into a complete song via POST /v1/music/concat.

Request Fields#

FieldTypeRequiredDescription
clip_idstringYesID of the extended song clip to merge
is_infillbooleanNoWhether to merge an infill result back into the original song; defaults to false
callback_urlstringNoHTTPS URL that receives a notification when the task completes or fails

Request Example#

bash
curl -X POST 'https://api.apimax.ai/v1/music/concat' \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "clip_id": "1f78f8de-4ca6-4375-ae79-46c33a2c97f7",
    "is_infill": false,
    "callback_url": "https://your-app.example/music-callback"
  }'

Success Response#

200
{
  "created_at": 1795404821,
  "id": "task_q7VHHWV14XZNQiG5tzioM5w0CoZ6qbZx",
  "model": "suno_concat",
  "status": "queued",
  "task_id": "task_q7VHHWV14XZNQiG5tzioM5w0CoZ6qbZx"
}

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_concat
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
400upstream_errorclip_id not produced by this poolclip_id is not a clip generated by this service; rejected at submission
503model_not_foundNo available channel (includes group and model name)No channel is currently available

Query Task Results#

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_concat
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.

Result Fields (data)#

In the query result, the data field is an array with a single item: the complete song after concatenation (metadata shows selected fields only):

json
{
  "created_at": 1795404821,
  "data": [
    {
      "audio_url": "https://cdn2.suno.show/media/export/ce8bd812-df28-4760-9540-4c09cd1ba9b2.mp3",
      "created_at": "2026-11-23T03:33:42.135Z",
      "id": "ce8bd812-df28-4760-9540-4c09cd1ba9b2",
      "image_url": "https://cdn2.suno.ai/image_38f2fa52-0a7c-4e75-918f-5104a939951e.jpeg",
      "status": "complete",
      "title": "你在身旁",
      "metadata": {
        "duration": 39.08,
        "type": "concat"
      }
    }
  ],
  "finished_at": 1795404842,
  "id": "task_q7VHHWV14XZNQiG5tzioM5w0CoZ6qbZx",
  "model": "suno_concat",
  "object": "task",
  "platform": "suno",
  "progress": 100,
  "started_at": 1795404821,
  "status": "completed",
  "type": "suno"
}

data[0].id is the ID of the new clip; metadata.type is concat and metadata.concat_history lists the clips that were joined.

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.Get Lyrics TimingGet the lyric alignment timing of a generated clip.
On this page
OverviewPurposeRequest FieldsRequest ExampleSuccess ResponseResponse FieldsError ResponseQuery Task Resultsstatus EnumResponse FieldsResult Fields (data)Next steps
API

POST /v1/music/concat