SAM Audio Visual Separate
meta/sam-audio/visual-separateSAM 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 को आज़माएँ
प्लेग्राउंड
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर 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
| Field | Type | Default | Notes |
|---|---|---|---|
video | video file or URL, required | — | Source video (MP4, MOV). |
prompt | string | empty | Hint about the target, for example man on the left. |
mask_video | video file or URL | — | Binary mask video: black is the target, white the background. |
reranking_candidates | integer 1–4 | 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 video length (10 minutes if it cannot be read).
| Video | Price |
|---|---|
| 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.
# 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"इनपुट स्कीमा
5 पैरामीटर · 1 आवश्यक · 4 वैकल्पिक
| पैरामीटर | प्रकार | आवश्यक | विवरण |
|---|---|---|---|
video | string | आवश्यक | Video file or URL to process (MP4, MOV, etc.). |
prompt | string | वैकल्पिक | Optional text describing the target sound or object. · डिफ़ॉल्ट: "" |
mask_video | string | वैकल्पिक | Optional mask video file or URL marking the target object (black = target, white = background). |
output_format | string | वैकल्पिक | Output audio format. · विकल्प: wav, mp3 · डिफ़ॉल्ट: "wav" wavmp3 |
reranking_candidates | integer | वैकल्पिक | 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 |
आउटपुट स्कीमा
| फ़ील्ड | प्रकार | विवरण |
|---|---|---|
id | string | generation task के लिए विशिष्ट पहचानकर्ता |
status | string | कार्य की स्थिति: pending, running, completed, failed, timeout |
model | string | generation के लिए उपयोग किया गया model |
outputs | array | output items की array |
outputs[].url | string | जनरेट किए गए artifact का URL |
outputs[].content_type | string | MIME type (जैसे image/png, video/mp4) |
error | object | null | यदि failed हो तो error details, success पर null |
error.type | string | machine-readable error type code |
error.message | string | मानव-पठनीय error विवरण |
असिंक्रोनस वर्कफ़्लो
यह model asynchronously चलता है। अनुरोध सबमिट करें, फिर परिणाम के लिए poll करें।
- सबमिट करें: /v1/run पर POST करें और लौटाए गए
idको पढ़ें। - Poll करें: status
completed,failedयाtimeoutहोने तक /v1/run/{id} पर GET करें। - 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 करने की आवश्यकता नहीं है।
