AI Models
Eleven Stem Separation
Split a song into vocals and instrumental, or into six stems.
Pricing, live playground and model overview: Eleven Stem Separation API on YepAPI
POST
from $0.30/minute/v1/media/queueOverview
Stem separation splits a track into vocals and instrumental, or into vocals, drums, bass, guitar, piano and other.
| Property | Value |
|---|---|
| Model ID | elevenlabs/stem-separation |
| Alias | stem-separation |
| Category | Audio Processing |
| Pricing | $0.60 per minute for six stems, $0.30 for two |
Usage
All media models use the async job queue. Submit a job, then poll for the result.
Step 1: Submit Job
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'elevenlabs/stem-separation',
audioData: {
mimeType: 'audio/mpeg',
base64: 'BASE64_DATA'
},
options: {
params: {
stems: 2
}
}
}),
});
const { data } = await res.json();
// data.jobId — use this to poll for resultscurl -X POST https://api.yepapi.com/v1/media/queue \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "elevenlabs/stem-separation", "audioData": {"mimeType": "audio/mpeg", "base64": "BASE64_DATA"}, "options": {"params": {"stems": 2}}}'Step 2: Poll for Result
curl https://api.yepapi.com/v1/media/status/JOB_ID \
-H "x-api-key: YOUR_API_KEY"When status is completed you get result.file: { mimeType: "application/zip", base64 } with one MP3 per stem. Results are kept for one hour.
Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
model | string | Yes | elevenlabs/stem-separation or alias stem-separation | — |
audioData | object | One of these | The file as mimeType and base64: MP3, WAV, FLAC, OGG or M4A. Up to about 18 MB | — |
options.referenceAudioUrl | string | One of these | Public URL of the file, up to 50 MB | — |
options.params.stems | integer | No | 2 (vocals, instrumental) or 6 (vocals, drums, bass, guitar, piano, other) | 6 |
Features
- Two or six stems
- One MP3 per stem in a ZIP
- Tracks up to 5 minutes
Billing
Billed on the length of the track, measured when you submit. $0.01 minimum.
Info
Use music you own or have the right to process.
Under the Hood
Powered by ElevenLabs.