Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

SAM Audio Separate

meta/sam-audio/separate

SAM 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.

आधार मूल्य
$0.05USD / रन
निष्पादन
async
मॉडल प्रकार
audio
इनपुट फ़ील्ड
5
प्रोडक्शन रूट

model को आज़माएँ

प्लेग्राउंड

Playground खोलें
इनपुट
Audio file or URL to process (WAV, MP3, FLAC).
Text describing the sound to isolate.
Automatically predict the time spans where the target sound occurs.
17
Number of candidates to generate and rank (1–7). Higher improves quality but adds $0.025 per 30 s per extra candidate. सीमा: 1 से 7.
Output audio format.
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

मॉडल कार्ड

विनिर्देश

मूल्य निर्धारण

आधार मूल्य
$0.05 / रन

संदर्भ और modalities

इनपुट
Schema-परिभाषित
आउटपुट
audio

क्षमताएँ

चैट
समर्थित नहीं
विज़न
समर्थित नहीं
रीज़निंग
समर्थित नहीं
संरचित output
समर्थित नहीं
फ़ंक्शन कॉलिंग
समर्थित नहीं
ऑडियो इनपुट
समर्थित नहीं

पहुंच

प्रदाता
Meta
मॉडल ID
meta/sam-audio/separate
निष्पादन
async
बेस URL
https://api.sandbase.ai
API
Unified Run API
एंडपॉइंट
/v1/run

API README

SAM Audio Separate

SAM Audio isolates any sound you describe in text and returns it with the residual track.

Fields

FieldTypeDefaultNotes
audioaudio file or URL, required—Recording to separate (WAV, MP3, FLAC).
promptstring, required—Sound to isolate.
predict_spansbooleanfalseDetect where the target sound occurs before separating.
reranking_candidatesinteger 1–71Extra candidates improve quality; each adds $0.025 per 30 s.
output_formatwav / mp3wavOutput file format.

Output

FieldNotes
urlIsolated target sound.
residual_urlEverything else (the input minus the target).
durationOutput 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).

AudioPrice
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 singing or dog barking.

Also on SandBase

Related: meta/sam-audio/span-separate, meta/sam-audio/visual-separate.

बिल्डिंग शुरू करें

अपना पहला अनुरोध भेजें

एकीकृत authentication और usage tracking के साथ OpenAI-compatible endpoint.

Production API
Unified Run API एंडपॉइंट
https://api.sandbase.ai/v1/run
Model ID
meta/sam-audio/separate
# 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"
01

इनपुट स्कीमा

5 पैरामीटर · 2 आवश्यक · 3 वैकल्पिक

पैरामीटरप्रकारआवश्यकविवरण
audiostringआवश्यकAudio file or URL to process (WAV, MP3, FLAC).
promptstringआवश्यकText describing the sound to isolate.
output_formatstringवैकल्पिकOutput audio format. · विकल्प: wav, mp3 · डिफ़ॉल्ट: "wav"
wavmp3
predict_spansbooleanवैकल्पिकAutomatically predict the time spans where the target sound occurs. · डिफ़ॉल्ट: false
reranking_candidatesintegerवैकल्पिकNumber of candidates to generate and rank (1–7). Higher improves quality but adds $0.025 per 30 s per extra candidate. · न्यूनतम: 1 · अधिकतम: 7 · डिफ़ॉल्ट: 1
02

आउटपुट स्कीमा

फ़ील्डप्रकारविवरण
idstringgeneration task के लिए विशिष्ट पहचानकर्ता
statusstringकार्य की स्थिति: pending, running, completed, failed, timeout
modelstringgeneration के लिए उपयोग किया गया model
outputsarrayoutput items की array
outputs[].urlstringजनरेट किए गए artifact का URL
outputs[].content_typestringMIME type (जैसे image/png, video/mp4)
errorobject | nullयदि failed हो तो error details, success पर null
error.typestringmachine-readable error type code
error.messagestringमानव-पठनीय error विवरण

असिंक्रोनस वर्कफ़्लो

यह model asynchronously चलता है। अनुरोध सबमिट करें, फिर परिणाम के लिए poll करें।

  1. सबमिट करें: /v1/run पर POST करें और लौटाए गए id को पढ़ें।
  2. Poll करें: status completed, failed या timeout होने तक /v1/run/{id} पर GET करें।
  3. Retrieve करें: completed response से outputs पढ़ें।

अपना मॉडल चुनें

मॉडलों की तुलना करें

सभी इमेज और वीडियो मॉडल
मॉडलप्रकारडिफ़ॉल्ट कीमतरिलीज़
SAM Audio Separateयह मॉडल
Meta
ऑडियो$0.05 / रन30 दिस॰ 2025
Metaऑडियो$0.05 / रन30 दिस॰ 2025
Metaऑडियो$0.05 / रन30 दिस॰ 2025
Metaऑडियो$0.04 / रन27 अक्तू॰ 2025

प्रश्न

FAQ

SandBase के माध्यम से Meta SAM Audio Separate को कैसे कॉल करें?

एक SandBase API key बनाएं, फिर model ID "meta/sam-audio/separate" के साथ requests को https://api.sandbase.ai पर Unified Run API (/v1/run) भेजें। इस पेज पर दिए गए request examples exact payload दिखाते हैं।

क्या मुझे एक अलग Meta account चाहिए?

नहीं। एक SandBase API key और balance आपको Meta SAM Audio Separate और catalog के अन्य models तक access देता है; आपको अलग से Meta पर sign up करने की आवश्यकता नहीं है।