About Mureka Stem Separation
Split a song into five WAV stems: vocals, instrumental, drums, bass and other.
Call it with the model name mureka/stem-separation/audio-separation on POST /jobs/createTask, from $0.108.
Introduction
Mureka Stem Separation is the stem splitter from Mureka, the AI music company. Give it a finished, mixed song and it hands back the parts: the lead and backing vocals on one track, the full accompaniment on another, and that accompaniment broken down again into drums, bass and everything else.
Request
{
"audio_url": "https://example.com/song.mp3"
}The song must be an MP3 or M4A file.
What comes back
The task returns five audio assets, one per stem, each with a stem field:
| stem | contents |
|---|---|
vocals | lead and backing voices |
instrumental | everything except the voices |
drums | percussion from the instrumental |
bass | bass line from the instrumental |
other | the rest of the instrumental: guitars, keys, pads, effects |
Every stem is a 16-bit, 44.1 kHz stereo WAV at exactly the length of the song, so all five line up from the first sample in any editor.
What we saw in testing
We split a 60-second bossa nova duet and a 30-second excerpt of the same song. Both finished in about ten seconds or less. Drums, bass and other summed back to the instrumental sample for sample. In the instrumental-only passages the vocal stem stayed close to silent, about 55 dB below the singing parts, so little of the band leaked into it. Each 60-second WAV was about 10.6 MB.
Tips
- Start from the best copy you have; a heavily compressed MP3 carries its artefacts into every stem.
- Stems are uncompressed, so a three-minute song comes back as roughly 160 MB of audio in total.
Request parameters
| Parameter | Required | Description |
|---|---|---|
audio_url | Yes | The voice or music track to use. |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your API balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per run |
|---|---|
| Standard | $0.108 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
API quick start
Call the Mureka Stem Separation API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model mureka/stem-separation/audio-separation and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "mureka/stem-separation/audio-separation",
"input": {
"audio_url": "https://media.popnow.ai/shortfilm/voices/Aoede-46e4c427.mp3"
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
Mureka Stem Separation API questions
How much does the Mureka Stem Separation API cost?
Mureka Stem Separation costs $0.108 per run. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your API balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What is the model name for Mureka Stem Separation in the API?
Put mureka/stem-separation/audio-separation for Stem Splitter in the model field of POST /jobs/createTask.
Which tracks do I get?
Five WAV files: vocals, instrumental, drums, bass and other. The instrumental is the whole backing track; drums, bass and other are that same backing split three ways, so adding those three together gives back the instrumental.
How do I tell the files apart in the API?
Each item in the task's output assets carries a stem field with one of vocals, instrumental, drums, bass or other. Read that field rather than relying on the order of the files.
Can I try Mureka Stem Separation without writing code?
Run Mureka Stem Separation in the Playground with your API USD balance, without an API key. Each run appears in your developer history with its matching code.
All Mureka models
- Mureka V9.5 APISongs with a female or male lead vocal, or instrumentals, in MP3, WAV or FLACFrom $0.27 per run
- Mureka V9 APISongs from a style brief and your lyrics, or instrumental background tracksFrom $0.084 per run
- Mureka Stem Separation APISplit a song into five WAV stems: vocals, instrumental, drums, bass and otherFrom $0.108 per run