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 submissionPOSTSunoMUSICAsync Tasks

Extend Songs

Extend an existing song from a specified time point, preserving explicitly passed zero-valued control parameters.

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

Purpose#

Extend an existing song from a specified time point with POST /v1/music/extend.

Request Fields#

FieldTypeRequiredDescription
clip_idstringYesID of the song clip to extend
continue_atnumberYesTime point, in seconds, where the extension starts; 0 is allowed
promptstringYesLyrics or creative prompt for the extension
titlestringNoTitle of the extended song
stylestringNoGenre, vocal, and production description
negative_tagsstringNoStyles or characteristics to avoid
instrumentalbooleanNoWhether to generate instrumental-only audio
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/extend' \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "clip_id": "2e83eef3-d3c3-4eb4-9695-ea7d8e125058",
    "continue_at": 120,
    "prompt": "Continue with a brighter final chorus",
    "title": "My Song - Extended",
    "style": "pop, electronic",
    "instrumental": false,
    "callback_url": "https://your-app.example/music-callback"
  }'

clip_id is mapped to the upstream continue_clip_id; older clients can also use continue_clip_id.

Submission Response#

A successful submission returns the task ID immediately:

json
{
  "code": "success",
  "message": "",
  "data": "task_01KABCDEF0123456789XYZ"
}
FieldTypeDescription
codestringAlways success on success
messagestringUsually an empty string on success
datastringTask ID used to query the result

Query the Task Result#

Only single-task queries by task ID are supported:

bash
curl 'https://api.apimax.ai/v1/tasks/task_01KABCDEF0123456789XYZ' \
  -H "Authorization: Bearer $API_KEY"

Task status transitions in the following order:

queued → in_progress → completed / failed

statusDescriptionTerminal
queuedTask created, waiting to be processedNo
in_progressTask is being processedNo
completedTask finished; the result is in dataYes
failedTask failed; the reason is in errorYes

Poll every 2-5 seconds and stop once the status reaches completed or failed. If callback_url is set, you can also wait for the callback notification.

Example completed response:

json
{
  "id": "task_01KABCDEF0123456789XYZ",
  "object": "task",
  "type": "music",
  "platform": "music",
  "status": "completed",
  "progress": 100,
  "model": "suno_extend",
  "data": [
    {
      "id": "track_001",
      "audio_url": "https://media.example/result.mp3",
      "image_url": "https://media.example/cover.jpg",
      "title": "My Song - Extended",
      "duration": 214.5,
      "model_name": "suno_extend"
    }
  ]
}

During in_progress, previewable audio may be returned early, but you should keep polling until the task reaches a terminal status.

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 ExampleSubmission ResponseQuery the Task ResultNext steps
API

POST /v1/music/extend