SAM Audio Separate
meta/sam-audio/separateSAM Audio by Meta isolates any sound in a recording from a text description, such as a voice, an instrument or a dog barking. It returns the isolated target and the residual audio as separate files.
- Grundpreis
- $0.05USD / Ausführung
- Ausführung
- async
- Modelltyp
- audio
- Eingabefelder
- 5
Modell testen
Playground
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
Modellkarte
Spezifikationen
Preisgestaltung
- Basispreis
- $0.05 / Ausführung
Kontext & Modalitäten
- Eingabe
- Schema-definiert
- Ausgabe
- audio
Funktionen
- Chat
- Nicht unterstützt
- Vision
- Nicht unterstützt
- Reasoning
- Nicht unterstützt
- Strukturierte Ausgabe
- Nicht unterstützt
- Function Calling
- Nicht unterstützt
- Audioeingabe
- Nicht unterstützt
Zugriff
- Anbieter
- Meta
- Modell-ID
- meta/sam-audio/separate
- Ausführung
- async
- Basis-URL
- https://api.sandbase.ai
- API
- Unified Run API
- Endpunkt
- /v1/run
API-README
SAM Audio Separate
SAM Audio isolates any sound you describe in text and returns it with the residual track.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
audio | audio file or URL, required | — | Recording to separate (WAV, MP3, FLAC). |
prompt | string, required | — | Sound to isolate. |
predict_spans | boolean | false | Detect where the target sound occurs before separating. |
reranking_candidates | integer 1–7 | 1 | Extra candidates improve quality; each adds $0.025 per 30 s. |
output_format | wav / mp3 | wav | Output file format. |
Output
| Field | Notes |
|---|---|
url | Isolated target sound. |
residual_url | Everything else (the input minus the target). |
duration | Output length in seconds. |
Billing
$0.05 per started 30 seconds of output audio, plus $0.025 per 30 seconds for each extra reranking candidate. The final charge uses the measured output length; the quote uses the input length (10 minutes if it cannot be read).
| Audio | Price |
|---|---|
| 30 s, 1 candidate | $0.05 |
| 2 min, 1 candidate | $0.20 |
| 2 min, 3 candidates | $0.40 |
Failed runs are not charged.
Prompting
- Name the sound plainly, for example
man singingordog barking.
Also on SandBase
Related: meta/sam-audio/span-separate, meta/sam-audio/visual-separate.
Jetzt loslegen
Senden Sie Ihre erste Anfrage
OpenAI-kompatibler Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "meta/sam-audio/separate",
"audio": "https://v3b.fal.media/files/b/0a88511f/tUUCI9eDmeC2RqJEOXrZk_assets_avatar_multi_sing_woman.WAV",
"prompt": "piano playing",
"output_format": "wav",
"predict_spans": false,
"reranking_candidates": 1
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Eingabeschema
5 Parameter · 2 erforderlich · 3 optional
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
audio | string | Erforderlich | Audio file or URL to process (WAV, MP3, FLAC). |
prompt | string | Erforderlich | Text describing the sound to isolate. |
output_format | string | Optional | Output audio format. · Optionen: wav, mp3 · Standard: "wav" wavmp3 |
predict_spans | boolean | Optional | Automatically predict the time spans where the target sound occurs. · Standard: false |
reranking_candidates | integer | Optional | Number of candidates to generate and rank (1–7). Higher improves quality but adds $0.025 per 30 s per extra candidate. · Min.: 1 · Max.: 7 · Standard: 1 |
Ausgabeschema
| Feld | Typ | Beschreibung |
|---|---|---|
id | string | Eindeutige Kennung für den Generierungsauftrag |
status | string | Status des Auftrags: pending, running, completed, failed, timeout |
model | string | Verwendetes Modell für die Generierung |
outputs | array | Array von Ausgabeelementen |
outputs[].url | string | URL des generierten Artefakts |
outputs[].content_type | string | MIME-Typ (z. B. image/png, video/mp4) |
error | object | null | Fehlerdetails bei Fehlschlag, bei Erfolg null |
error.type | string | Maschinenlesbarer Fehler-Typcode |
error.message | string | Menschenlesbare Fehlerbeschreibung |
Asynchroner Workflow
Dieses Modell läuft asynchron. Senden Sie eine Anfrage und pollen Sie dann das Ergebnis.
- Senden: Per POST an /v1/run senden und das zurückgegebene
idlesen. - Pollen: GET /v1/run/{id}, bis der Status
completed,failedodertimeoutist. - Abrufen:
outputsaus der abgeschlossenen Antwort lesen.
Wählen Sie Ihr Modell
Modelle vergleichen
| Modell | Typ | Standardpreis | Veröffentlicht |
|---|---|---|---|
SAM Audio SeparateDieses Modell Meta | Audio | $0.05 / Lauf | 30. Dez. 2025 |
Meta | Audio | $0.05 / Lauf | 30. Dez. 2025 |
Meta | Audio | $0.05 / Lauf | 30. Dez. 2025 |
Meta | Audio | $0.04 / Lauf | 27. Okt. 2025 |
Fragen
FAQ
Wie rufe ich Meta SAM Audio Separate über SandBase auf?
Erstellen Sie einen SandBase API-Schlüssel und senden Sie dann Anfragen mit der Modell-ID "meta/sam-audio/separate" an Unified Run API (/v1/run) unter https://api.sandbase.ai. Die Anfragebeispiele auf dieser Seite zeigen die exakte Nutzlast.
Benötige ich ein separates Meta-Konto?
Nein. Mit einem SandBase API-Schlüssel und Guthaben erhalten Sie Zugriff auf Meta SAM Audio Separate und die anderen Modelle im Katalog; Sie müssen sich nicht separat bei Meta registrieren.
