Docs / Music Series / Suno / Task submission
Extend Songs
Extend an existing song from a specified time point, preserving explicitly passed zero-valued control parameters.
Purpose#
Extend an existing song from a specified time point with POST /v1/music/extend.
Request Fields#
| Field | Type | Required | Description |
|---|---|---|---|
clip_id | string | Yes | ID of the song clip to extend |
continue_at | number | Yes | Time point, in seconds, where the extension starts; 0 is allowed |
prompt | string | Yes | Lyrics or creative prompt for the extension |
title | string | No | Title of the extended song |
style | string | No | Genre, vocal, and production description |
negative_tags | string | No | Styles or characteristics to avoid |
instrumental | boolean | No | Whether to generate instrumental-only audio |
callback_url | string | No | HTTPS URL that receives a notification when the task completes or fails |
Request Example#
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:
{
"code": "success",
"message": "",
"data": "task_01KABCDEF0123456789XYZ"
}| Field | Type | Description |
|---|---|---|
code | string | Always success on success |
message | string | Usually an empty string on success |
data | string | Task ID used to query the result |
Query the Task Result#
Only single-task queries by task ID are supported:
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
status | Description | Terminal |
|---|---|---|
queued | Task created, waiting to be processed | No |
in_progress | Task is being processed | No |
completed | Task finished; the result is in data | Yes |
failed | Task failed; the reason is in error | Yes |
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:
{
"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.

