# Mureka Stem Separation API

> Mureka Stem Separation splits a song into separate vocal and instrument stems and returns them as a ZIP archive, with MIDI stems on supported separation models.

Source: https://www.sandbase.ai/models/mureka/song/stem
API reference: https://www.sandbase.ai/models/mureka/song/stem#api

## Facts

- Provider: Mureka
- Type: Audio model
- Model ID: `mureka/song/stem`
- Price: From $0.20 per run
- Capabilities: audio to audio
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "mureka/song/stem",
  "stem_model": "audio-separation-3"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call Mureka Stem Separation through SandBase?

Create a SandBase API key, then send requests with the model ID "mureka/song/stem" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate Mureka account?

No. One SandBase API key and balance gives you access to Mureka Stem Separation and the other models in the catalog; you do not need to sign up with Mureka separately.

## README

### Mureka Stem Separation

Mureka Stem Separation splits an MP3 or M4A song (up to 10 MB) into stems; the available stems and MIDI output depend on `stem_model`.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `audio` | audio file or URL, required | — | MP3 or M4A, up to 10 MB. |
| `stem_model` | `audio-separation-1` / `audio-separation-2` / `audio-separation-3` | `audio-separation-3` | Decides stems, MIDI output and price. |

#### Output

- `url`: ZIP archive of the separated audio stems.
- `midi_url`: ZIP archive of MIDI stems, when available.

#### Billing

Charged per separated song; the price depends on `stem_model`.

| Stem model | Price |
|---|---|
| `audio-separation-1` | $0.09 |
| `audio-separation-3` (default) | $0.20 |
| `audio-separation-2` | $1.05 |

Failed runs are not charged.

#### Also on SandBase

Related: `mureka/8/track`.
