# Vocal Remover & AI Stem Splitter — Karaoke, Acapella, Stems (`tidydata/vocal-remover`) Actor

Remove vocals or extract them from any song with Meta's Demucs AI: instrumental (karaoke) and acapella tracks, or split into 4/6 stems (vocals, drums, bass, guitar, piano). Remove background music from videos and keep the voice. MP3, WAV, FLAC. Links, uploads or datasets.

- **URL**: https://apify.com/tidydata/vocal-remover.md
- **Developed by:** [tidydata](https://apify.com/tidydata) (community)
- **Categories:** AI, Videos, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $48.00 / 1,000 minute separateds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 🎤 Vocal Remover & AI Stem Splitter — karaoke, acapella, 4/6 stems

![Real runs: a piano and voice song split into vocals and instrumental (standard and best quality), a choir and band anthem split into 6 and 4 stems, with the share of sound of each track](https://api.apify.com/v2/key-value-stores/UJXqVadHhfb2eqS2e/records/vocal-remover.png)

**Remove the vocals from any song, or extract them**, with **Meta's Demucs v4 AI** — the open model behind most paid stem-splitting apps. Get a clean **instrumental (karaoke) track** and an **acapella (vocals only) track**, or split the music into **4 stems** (vocals, drums, bass, other) or **6 stems** (+ guitar, piano). For **videos**, get the video back **with the background music removed and only the voice kept** — or with the vocals removed.

**$0.06 per minute of audio, all-inclusive.** No subscription, no credits that expire, no API key. Failed files are free.

- ✅ **Vocals + instrumental** in one run (two files), or only one of them
- ✅ **4 stems** (vocals, drums, bass, other) and **6 stems** (+ guitar, piano)
- ✅ **Best quality** mode with the fine-tuned vocals model (`htdemucs_ft`)
- ✅ **Remove background music from a video**, keep the voice (vlogs, interviews, reels, tutorials)
- ✅ **MP3 320 kbps, WAV (16/24-bit), FLAC or M4A**
- ✅ Songs, podcasts, voice memos and videos: MP3, WAV, FLAC, M4A, OGG, Opus, MP4, MOV, MKV, WebM…
- ✅ **Direct links, Google Drive, Dropbox, OneDrive**, file uploads, a key-value store or a dataset column of another Actor
- ✅ Separate only a part (start/end time) and pay only for that part
- ✅ Ready for **n8n, Make, Zapier, the API and AI agents**: every track comes back as a download link

### What can I use it for?

| You want… | Mode |
|---|---|
| A **karaoke** / backing track | Instrumental only |
| An **acapella** for a remix, mashup or DJ edit | Vocals only |
| **Remove the music from a video** and keep the speech (e.g. before re-uploading, or to dub it) | Vocals only (video input) |
| **Clean speech for transcription** (music under the voice confuses speech-to-text) | Vocals only |
| Practise an instrument over the song without it (**drumless, bassless**) | 4 or 6 stems |
| Samples, stems for **remixing and music production** | 4 or 6 stems, WAV |
| Study a part (bass line, piano) on its own | 6 stems |

### How to use it

1. Paste one or more **links** (or upload files).
2. Choose **what you want**: vocals + instrumental, instrumental only, vocals only, 4 stems or 6 stems.
3. Pick the **format** (MP3, WAV, FLAC, M4A) and run.
4. Open the **Results** tab: one row per file with a download link per track.

Input example (API, n8n, Make):

```json
{
  "fileUrls": ["https://example.com/my-song.mp3", "https://drive.google.com/file/d/FILE_ID/view"],
  "mode": "vocals-instrumental",
  "quality": "standard",
  "outputFormat": "mp3"
}
```

### Output example

```json
{
  "status": "ok",
  "sourceUrl": "https://example.com/my-song.mp3",
  "mode": "vocals-instrumental",
  "vocalsUrl": "https://api.apify.com/v2/key-value-stores/…/records/my-song-vocals.mp3?signature=…",
  "instrumentalUrl": "https://api.apify.com/v2/key-value-stores/…/records/my-song-instrumental.mp3?signature=…",
  "files": [
    {"track": "vocals", "fileName": "my-song-vocals.mp3", "fileUrl": "https://…", "sizeMb": 7.3},
    {"track": "instrumental", "fileName": "my-song-instrumental.mp3", "fileUrl": "https://…", "sizeMb": 7.3}
  ],
  "durationSec": 183.4,
  "vocalsPercent": 24.6,
  "chargedEvents": {"audio-minute": 4}
}
```

Download links open **without an API token** (signed links), so you can pass them straight to the next step of your workflow. `vocalsPercent` tells you how much of the sound was voice (near 0 = the song is instrumental). 4/6-stem runs also return `drumsUrl`, `bassUrl`, `otherUrl`, `guitarUrl`, `pianoUrl`; video inputs return `videoUrl`.

### Pricing

Pay only for what is separated, **per started minute of audio**:

| What | Price |
|---|---|
| Standard (any mode: 2, 4 or 6 stems) | **$0.06 / minute** |
| Best quality, vocals + instrumental | $0.07 / minute |
| Best quality, 4 stems (four fine-tuned models, ~4× the computing) | $0.25 / minute |

A 3:20 song = 4 minutes = **$0.24** (standard). The video with the new soundtrack is **free**. **Failed or skipped files are never charged**, and the run stops cleanly before it goes over your maximum cost per run. Apify Store discounts apply on higher plans.

### Quality: standard or best?

- **Standard** — Demucs v4 hybrid transformer (`htdemucs`). Very good on most music; fast.
- **Best** — the fine-tuned Demucs v4 (`htdemucs_ft`). Cleaner vocals with fewer artifacts (less "bleed" of cymbals and synths into the acapella). For vocals/instrumental it costs only a cent more per minute.
- **6 stems** uses `htdemucs_6s`. Guitar and piano are harder to isolate than vocals, drums and bass; expect some bleed.

### Speed

The AI runs on CPU. With the default **4 GB memory (1 CPU core)** a 3-minute song takes about 7 minutes; **give the run 8 GB (about 2× faster) or 16 GB (about 3× faster)** (the price per minute does not change). Files are processed one after another. Long files (DJ mixes, podcasts): raise *Max minutes per file* (default 30) and the run timeout.

### Limits and good to know

- Links to **YouTube, TikTok, Instagram, Spotify, SoundCloud, Facebook, X or Vimeo are refused**: their terms forbid downloading. Use your own files or files you have the right to process.
- **Copyright:** separating a song does not give you any rights over it. Use the tracks for practice, study and your own content, or with the rights holder's permission.
- No streams (.m3u8, .mpd), no DRM files. Max file size 1 GB by default.
- The audio is processed at 44.1 kHz stereo (mono files are returned as stereo).

### FAQ

**Is this the same AI as paid vocal remover apps?** Many of them run Demucs or similar open models. Here you get the model directly, pay per minute and can automate it.

**Can I separate many songs at once?** Yes: paste a list of links, point it to a Google Drive folder, or pass a dataset column from another Actor.

**Does it work for speech with background music?** Yes. "Vocals only" keeps the voice and drops the music; for videos you also get the video with the clean voice.

### Related Actors

- [Audio & Video Transcription](https://apify.com/tidydata/audio-video-transcription) — turn the clean vocals into text and subtitles
- [FFmpeg Video Converter & Compressor](https://apify.com/tidydata/ffmpeg-video-converter) — convert, compress, trim and extract audio
- [Audio Noise Remover](https://apify.com/tidydata/audio-noise-remover) — remove background noise (fans, traffic, hum) from the clean vocals or any voice recording
- [Bulk File Downloader](https://apify.com/tidydata/bulk-file-downloader) — download many files from links and datasets

Questions or a file that fails? Open an issue on the **Issues** tab: we answer quickly.

# Actor input Schema

## `fileUrls` (type: `array`):

One link per line: direct links to MP3, WAV, FLAC, M4A, OGG, MP4, MOV, MKV, WebM… files, Google Drive / Dropbox / OneDrive share links, public Google Drive folders or archive.org. YouTube, TikTok, Instagram, Spotify, SoundCloud, Facebook, X, Vimeo and their CDNs are refused (their terms forbid downloading). Only separate audio you have the right to use.

## `uploadedFiles` (type: `array`):

Upload songs, audio or video files from your computer (they go to a key-value store of your account and only this run reads them).

## `keyValueStoreId` (type: `string`):

Separate the audio/video files saved in one of your key-value stores (e.g. the output of another Actor). Only read access to this one store is requested.

## `keyValueStoreKeys` (type: `array`):

Record keys to separate. Empty = every audio or video record of the store (up to 'Max files').

## `mode` (type: `string`):

Which tracks to return. Every mode costs the same per minute.

## `quality` (type: `string`):

'Best' runs four fine-tuned models and averages them: fewer artifacts, priced per minute higher. 6 stems always uses the 6-source model (standard price).

## `outputFormat` (type: `string`):

Format of each separated track.

## `videoOutput` (type: `boolean`):

When the input is a video and the mode is 'Vocals only' or 'Instrumental only', also return the video with only the voice (background music removed) or only the music (vocals removed). Free.

## `startTime` (type: `string`):

Separate only a part: start here. Seconds (90), mm:ss (1:30), hh:mm:ss, 1m30s or a percent (10%). Empty = from the start. You pay only for the part separated.

## `endTime` (type: `string`):

Separate only a part: end here (same formats). Empty = to the end.

## `mp3BitrateKbps` (type: `integer`):

Bitrate for MP3 (M4A is capped at 256).

## `bitDepth` (type: `string`):

Bit depth for WAV and FLAC files.

## `maxMinutesPerFile` (type: `integer`):

Longer audio is not separated (free), so a long file by mistake can't run up a big bill. Raise it for DJ mixes or podcasts.

## `maxFiles` (type: `integer`):

Stop after this many files (links, folder files and dataset rows together).

## `maxFileSizeMb` (type: `integer`):

Bigger files are not downloaded (free). Lowered automatically to what the run's disk can hold (it grows with memory).

## `datasetId` (type: `string`):

A dataset from another run whose rows contain audio or video links. Only read access to this one dataset is requested.

## `datasetUrlFields` (type: `string`):

Field name(s), comma separated; nested paths work (media.url, audio.0.src). Empty = detect it (audioUrl, fileUrl, url…).

## Actor input object example

```json
{
  "fileUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/6/6b/Viva_la_FAI_%28piano-vocals%29.opus"
  ],
  "mode": "vocals-instrumental",
  "quality": "standard",
  "outputFormat": "mp3",
  "videoOutput": true,
  "mp3BitrateKbps": 320,
  "bitDepth": "16",
  "maxMinutesPerFile": 30,
  "maxFiles": 50,
  "maxFileSizeMb": 1024
}
```

# Actor output Schema

## `results` (type: `string`):

One row per input file: download links of each track (vocals, instrumental, drums, bass…), the video with the new audio, duration, vocals share, status and the reason when it failed.

## `files` (type: `string`):

Every track made in the run.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "fileUrls": [
        "https://upload.wikimedia.org/wikipedia/commons/6/6b/Viva_la_FAI_%28piano-vocals%29.opus"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tidydata/vocal-remover").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "fileUrls": ["https://upload.wikimedia.org/wikipedia/commons/6/6b/Viva_la_FAI_%28piano-vocals%29.opus"] }

# Run the Actor and wait for it to finish
run = client.actor("tidydata/vocal-remover").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "fileUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/6/6b/Viva_la_FAI_%28piano-vocals%29.opus"
  ]
}' |
apify call tidydata/vocal-remover --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tidydata/vocal-remover"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/P9KB8dYBdUY8TyJAV/builds/9G7uX14vy5HISx9oh/openapi.json
