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

SAM Audio Visual Separate

meta/sam-audio/visual-separate

SAM Audio by Meta isolates the sound of an object or person in a video, guided by an optional mask video and text description. It returns the isolated target and the residual audio as separate files.

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

model को आज़माएँ

प्लेग्राउंड

Playground खोलें
इनपुट
Video file or URL to process (MP4, MOV, etc.).
Optional text describing the target sound or object.
Optional mask video file or URL marking the target object (black = target, white = background).
14
Number of candidates to generate and rank (1–4). Higher improves quality but adds $0.025 per 30 s per extra candidate. सीमा: 1 से 4.
Output audio format.
आउटपुटतैयार

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

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

मॉडल कार्ड

विनिर्देश

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

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

संदर्भ और modalities

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

क्षमताएँ

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

पहुंच

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

API README

SAM Audio Visual Separate

SAM Audio isolates the sound made by an object or person in a video, guided by an optional mask video and prompt.

Fields

FieldTypeDefaultNotes
videovideo file or URL, required—Source video (MP4, MOV).
promptstringemptyHint about the target, for example man on the left.
mask_videovideo file or URL—Binary mask video: black is the target, white the background.
reranking_candidatesinteger 1–41Extra 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 video length (10 minutes if it cannot be read).

VideoPrice
30 s, 1 candidate$0.05
2 min, 1 candidate$0.20
2 min, 4 candidates$0.50

Failed runs are not charged.

Prompting

  • Describe the target by position or appearance, for example woman in the red jacket.

Also on SandBase

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

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

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

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

Production API
Unified Run API एंडपॉइंट
https://api.sandbase.ai/v1/run
Model ID
meta/sam-audio/visual-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/visual-separate",
  "video": "https://v3b.fal.media/files/b/0a8850d1/gff7zKI-6XwIbBBip4946_office.mp4",
  "prompt": "man on the left",
  "output_format": "wav",
  "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 पैरामीटर · 1 आवश्यक · 4 वैकल्पिक

पैरामीटरप्रकारआवश्यकविवरण
videostringआवश्यकVideo file or URL to process (MP4, MOV, etc.).
promptstringवैकल्पिकOptional text describing the target sound or object. · डिफ़ॉल्ट: ""
mask_videostringवैकल्पिकOptional mask video file or URL marking the target object (black = target, white = background).
output_formatstringवैकल्पिकOutput audio format. · विकल्प: wav, mp3 · डिफ़ॉल्ट: "wav"
wavmp3
reranking_candidatesintegerवैकल्पिकNumber of candidates to generate and rank (1–4). Higher improves quality but adds $0.025 per 30 s per extra candidate. · न्यूनतम: 1 · अधिकतम: 4 · डिफ़ॉल्ट: 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 Visual 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 Visual Separate को कैसे कॉल करें?

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

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

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