Docs / Music Series / Suno / Task submission
Song Stems
Separate vocals, instrumental backing, or specific instrument tracks, with support for full stem separation, two-track splitting, and single-stem extraction.
Purpose#
Separate vocals, instrumental backing, or specific instrument tracks from a song with POST /v1/music/stem.
Request Fields#
| Field | Type | Required | Description |
|---|---|---|---|
continue_clip_id | string | Yes | ID of the song clip to split into stems |
mode | string | Yes | all, vocals_instrumental, or extract |
stem | string | Conditional | Track to extract; required when mode=extract |
callback_url | string | No | HTTPS URL that receives a notification when the task completes or fails |
Common stem values include lead_vocal, backing_vocals, drum_kit, bass, piano, electric_guitar, acoustic_guitar, string_section, and everything_but_lead_vocal.
continue_clip_id may also be passed as clip_id. stem values are case-sensitive; use the spellings listed above.
Request Example#
Extracting a Specific Track#
curl -X POST 'https://api.apimax.ai/v1/music/stem' \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"continue_clip_id": "c844486f-998c-4607-a970-1e34fe2cc28b",
"mode": "extract",
"stem": "electric_guitar",
"callback_url": "https://your-app.example/music-callback"
}'Separating Vocals from the Instrumental#
mode=vocals_instrumental separates vocals from the instrumental backing; do not pass stem.
curl -X POST 'https://api.apimax.ai/v1/music/stem' \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"continue_clip_id": "c844486f-998c-4607-a970-1e34fe2cc28b",
"mode": "vocals_instrumental"
}'All Stems#
mode=all uses the legacy 12-stem separation mode; do not pass stem.
curl -X POST 'https://api.apimax.ai/v1/music/stem' \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"continue_clip_id": "c844486f-998c-4607-a970-1e34fe2cc28b",
"mode": "all"
}'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. A song has two candidates and each one gets its own set of stems, so data holds 4 items; only the first 2 are shown below:
{
"created_at": 1795404594,
"data": [
{
"audio_url": "https://cdn2.suno.show/media/export/0947f02d-795c-488c-9aa8-68a1834c8267.mp3",
"created_at": "2026-11-23T03:29:55.984Z",
"duration": 163.2,
"id": "0947f02d-795c-488c-9aa8-68a1834c8267",
"image_url": "https://cdn2.suno.ai/image_0947f02d-795c-488c-9aa8-68a1834c8267.jpeg",
"model_name": "suno_stem",
"status": "complete",
"title": "(Vocals)"
},
{
"audio_url": "https://cdn2.suno.show/media/export/6032cdec-490b-4d90-8643-e229ae54f825.mp3",
"created_at": "2026-11-23T03:29:55.984Z",
"duration": 163.2,
"id": "6032cdec-490b-4d90-8643-e229ae54f825",
"image_url": "https://cdn2.suno.ai/image_6032cdec-490b-4d90-8643-e229ae54f825.jpeg",
"model_name": "suno_stem",
"status": "complete",
"title": "(Instrumental)"
}
],
"finished_at": 1795404722,
"id": "task_ayknYb7ifo6aLzqk4FJfWn07fExbmi7C",
"model": "suno_stem",
"object": "task",
"platform": "music",
"progress": 100,
"started_at": 1795404617,
"status": "completed",
"type": "music"
}With mode=vocals_instrumental, each set contains a (Vocals) and an (Instrumental) result. With mode=extract, each set contains the extracted track (for example (Bass)) and the rest without it ((Without Bass)), and metadata also includes duration and prompt.
During in_progress, previewable audio may be returned early, but you should keep polling until the task reaches a terminal status.

