Process an audio file to extract specified stems (vocals, instrumental, or other components) with optional preprocessing. Supports file upload or URL with webhook callback.
| Parameter | Type | Required | Description |
|---|---|---|---|
audio_url | string | Optional | URL of the audio file to extract from. Either audio_url or audio_file must be provided. |
audio_file | UploadFile | Optional | Audio file to upload and process. Either audio_url or audio_file must be provided. |
stems | string | Optional | JSON string list of required stems. e.g., ["vocals", "drums"]. See all options below. |
preprocessing_options | string | Optional | JSON string list of preprocessing options. e.g., ["Denoise"]. See all options below. |
webhook_url | string | Optional | Callback URL to receive async processing results. |
content-type: multipart/form-data
vocals — All vocal content (combined)male_vocal — Male vocals onlyfemale_vocal — Female vocals onlylead_vocal — Lead singer’s voiceback_vocal — Backing vocalsguitar — All guitar soundsacoustic_guitar — Acoustic guitarelectric_guitar — Electric guitarrhythm_guitar — Rhythm guitar partssolo_guitar — Solo guitar partsdrums — All drum elementskick_drum — Kick or bass drumsnare_drum — Snare drumtoms — Tom drumshi_hat — Hi-hat cymbalsride — Ride cymbalcrash — Crash cymbalpiano — Piano onlykeys — Keyboard instruments (includes synths, organs, etc.)strings — String instruments (e.g., violin, cello)winds — Wind instruments (e.g., saxophone, flute)bass — Bassline instrumentsinstrumental — All non-vocal content (used to get instrumental version)drums, bass, piano, guitar — Common full-band instrumentationNote: If thestemsparameter is omitted or an empty list is supplied, this full band composite (["drums", "bass", "piano", "guitar"]) is used as the default.
Denoise — Reduces ambient or background noiseDeecho — Removes echo and early reflectionsDereverb — Reduces late reverberation from recordings🔐 Replacepath_to_audio.mp3,api_key, andwebhook_urlwith actual values.
audio_url nor audio_file is provided.The URL of the audio file to process.
"https://www.youtube.com/watch?v=jGflUbPQfW8"
Audio file to upload and process.
JSON string list of required output stems. Available options: vocals, instrumental, male_vocal, female_vocal, lead_vocal, back_vocal, bass, drums, guitar, piano, keys, strings, winds, rhythm_guitar, solo_guitar, acoustic_guitar, electric_guitar, kick_drum, snare_drum, toms, hi_hat, ride, crash.
"[\"vocals\", \"drums\"]"
JSON string list of preprocessing steps. Available options: Denoise, Deecho, Dereverb.
"[\"Denoise\", \"Dereverb\"]"
Callback URL for async processing.
"http://webhook.musicgpt.com"