Model Details
SAM Audio (Separate) performs text-guided audio source separation: give it a mixed recording and a short natural-language description of the sound you want, and it isolates that sound into its own track. Describe the target however you'd say it — "dog barking", "lead vocals", "speech", "rain", "electric guitar" — and it returns the isolated target as a hosted audio file. Its strength is open-vocabulary targeting: you are not limited to a fixed set of stems, so it works for voices, instruments, environmental sounds, and effects alike. The model also computes a residual (everything except the target), but this endpoint returns the isolated target track as its result.
## Best for - Pulling a single voice, instrument, or sound effect out of a noisy or layered mixture - Isolating an arbitrary sound described in words rather than a preset stem (e.g. "a barking dog", "crowd applause") - Cleaning up field recordings, podcasts, and interviews by extracting just the sound you care about - Prepping audio for editing, sampling, or accessibility work where you need one element on its own
## Choose another model when - You only need to strip background noise/music to recover clean speech — a dedicated voice-isolation model is simpler - You want a fixed multi-stem split (vocals/drums/bass/other) returned all at once rather than one described target - You need to generate or transform audio rather than separate an existing recording — use a text-to-audio or audio-to-audio synthesis model
## Tips - Keep the `prompt` short and concrete; name the sound the way you'd describe it out loud - Supply `audio_url` as a WAV, MP3, or FLAC file - `acceleration` trades speed for quality (`fast`, `balanced`, `quality`); the default `balanced` is a good starting point - `reranking_candidates` generates and ranks multiple separations to improve quality — note that values above 1 incur an additional charge per extra candidate - For long files, `max_chunk_duration` and `chunk_overlap` control how the audio is split and crossfaded across passes
## Limitations - Heavily overlapping or spectrally similar sounds can bleed between the target and residual - The endpoint returns the isolated target only; the residual is computed but not returned as the result
To run via the ModelRunner JavaScript client: ```js import { modelrunner } from "@modelrunner/client";
const result = await modelrunner.subscribe("meta/sam-audio/separate", { input: { audio_url: "https://media.modelrunner.ai/JbyO9TzNupSFoqNrlmaWe.mp3", prompt: "dog barking", acceleration: "balanced", }, }); ```
