YepAPI
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/v1/media/queue
from $0.30/minute

Overview

Stem separation splits a track into vocals and instrumental, or into vocals, drums, bass, guitar, piano and other.

PropertyValue
Model IDelevenlabs/stem-separation
Aliasstem-separation
CategoryAudio 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 results
curl -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

ParameterTypeRequiredDescriptionDefault
modelstringYeselevenlabs/stem-separation or alias stem-separation—
audioDataobjectOne of theseThe file as mimeType and base64: MP3, WAV, FLAC, OGG or M4A. Up to about 18 MB—
options.referenceAudioUrlstringOne of thesePublic URL of the file, up to 50 MB—
options.params.stemsintegerNo2 (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.

On this page