Tutorial · Python · ~10 min

Remove Vocals from a Song

The instrumental stem, minus the artifacts of old center-channel tricks. One call, studio-grade separation.

PythonKaraokeAPI

Why this matters

Classic vocal removal inverted phase and zeroed the center — it also gutted the bass and drums. Model-based separation keeps the music intact while removing the voice.

Whether it is karaoke night, a remix, or a practice track, you want the instrumental with full frequency range and stereo image.

How it works

Submit the song with stems=[instrumental]. The API returns the instrumental stem (and the vocal stem if you ask) with no phase cancellation.

Submit a job with an input URL (S3, GCS or HTTPS), poll the job URL, and download the rendered output. No GPU, no queues, no ffmpeg builds to babysit.

Code

Python
import requests, time

API = "https://api.mlslabs.io/v1/vocal-separator/jobs"
headers = {"X-API-Key": "YOUR_API_KEY"}
payload = {"input": "s3://bucket/song.mp3", "stems": ["instrumental"]}

resp = requests.post(API, json=payload, headers=headers)
job = resp.json()
while job["status"] not in ("succeeded", "failed"):
    time.sleep(3)
    job = requests.get(job["url"], headers=headers).json()

print("Output:", job["output_url"])

Pro tips

  • Use lossless input (WAV/FLAC) when available — MP3 lossy artifacts separate slightly worse.
  • For remixes, request both stems and re-mix at will.
  • Check the low end on the instrumental: some presets preserve bass better than others.

Pricing note

Usage is metered per minute of media processed; the first tier is free each month. Volume discounts kick in automatically.

FAQ

Common questions

Why does it sound better than the old center-channel tricks?

Model-based separation learns instrument spectrograms instead of subtracting a fixed center channel, so bass and drums survive.

Can I get acapella as well?

Yes — request stems=[vocals] for the acapella track.

What about songs with heavy reverb on vocals?

Separation still isolates the lead; reverb tails may leak into the instrumental — the high-quality preset minimizes this.