separate_vocal — 2‑stem split (Vocals + Instrumental)split_stem — up to 12‑stem splitsplit_stem_advanced — advanced multi‑stem separation with specific instrument selectionMode (type) | Stems Returned | Typical Use | Credit Cost |
|---|---|---|---|
separate_vocal (default) | 2 stems – Vocals + Instrumental | Quick vocal removal, karaoke, basic remixes | 10 Credits |
split_stem | Up to 12 stems – Vocals, Backing Vocals, Drums, Bass, Guitar, Keyboard, Strings, Brass, Woodwinds, Percussion, Synth, FX/Other | Advanced mixing, remixing, sound design | 50 Credits |
split_stem_advanced | Specified instrument stems — extract specific instruments via stemName | Precise instrument extraction, professional post‑production | 20 Credits |
| Name | Type | Required | Description |
|---|---|---|---|
taskId | string | Conditional | Unique identifier of the music generation task. Should be the taskId returned by the "Generate Music" or "Extend Music" endpoint. Required when using existing audio. |
audioUrl | string | Conditional | URL of the audio file uploaded by the user. The maximum file size is 20MB. Required when using user-uploaded audio. Cannot be used together with audioId. |
audioId | string | Conditional | Unique identifier of the specific audio track to process. This ID is returned in the callback data after music generation completes. Required when using existing audio. Cannot be used together with audioUrl. |
type | string | Optional | Separation type: separate_vocal (default), split_stem, or split_stem_advanced |
stemName | string | Conditional | Only used when type is split_stem_advanced, specifies the name of the specific track/instrument to separate. Supported instruments include: Lead Vocal, Drum Kit, Piano, Guitar, Bass, Synth, Percussion, etc. |
callBackUrl | string | Required | URL for receiving vocal separation task completion updates |
separate_vocal returns 2 stems — vocals + instrumental.split_stem returns up to 12 independent stems — vocals, backing vocals, drums, bass, guitar, keyboard, strings, brass, woodwinds, percussion, synth, FX/other.split_stem_advanced returns independent stems for specified instruments. Use the stemName parameter to specify the instrument name.taskId and the stem's id (from originData) as audioId.curl --location 'https://apibox.erweima.ai/api/v1/vocal-removal/generate' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"taskId": "5c79****be8e",
"audioId": "e231****-****-****-****-****8cadc7dc"
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "5c79****be8e"
}
}