Sand AISand AI MAGI-2ตอนนี้ MAGI-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
เส้นทางโปรดักชัน

ลองใช้โมเดล

Playground

เปิด 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

อินพุต
กำหนดตามสคีมา
เอาต์พุต
audio

ความสามารถ

แชท
ไม่รองรับ
วิชัน
ไม่รองรับ
การให้เหตุผล
ไม่รองรับ
เอาต์พุตแบบมีโครงสร้าง
ไม่รองรับ
การเรียกใช้ฟังก์ชัน
ไม่รองรับ
อินพุตเสียง
ไม่รองรับ

การเข้าถึง

ผู้ให้บริการ
Meta
รหัสโมเดล
meta/sam-audio/visual-separate
การทำงาน
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/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.

เริ่มสร้าง

ส่งคำขอแรกของคุณ

เอ็นด์พอยต์ที่ใช้งานร่วมกับ OpenAI ได้ พร้อมการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์

Production API
เอ็นด์พอยต์ Unified Run API
https://api.sandbase.ai/v1/run
รหัสโมเดล
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

สคีมาเอาต์พุต

ฟิลด์ประเภทคำอธิบาย
idstringตัวระบุเฉพาะสำหรับงาน generation
statusstringสถานะงาน: pending, running, completed, failed, timeout
modelstringโมเดลที่ใช้สำหรับ generation
outputsarrayอาร์เรย์ของรายการเอาต์พุต
outputs[].urlstringURL ของอาร์ติแฟกต์ที่สร้างขึ้น
outputs[].content_typestringประเภท MIME (เช่น image/png, video/mp4)
errorobject | nullรายละเอียดข้อผิดพลาดหากล้มเหลว, เป็น null เมื่อสำเร็จ
error.typestringรหัสประเภทข้อผิดพลาดที่เครื่องอ่านได้
error.messagestringคำอธิบายข้อผิดพลาดที่มนุษย์อ่านได้

เวิร์กโฟลว์แบบอะซิงก์

โมเดลนี้ทำงานแบบอะซิงโครนัส ส่งคำขอแล้วคอยตรวจผลลัพธ์

  1. ส่ง: POST ไปที่ /v1/run แล้วอ่าน id ที่ส่งกลับมา
  2. คอยตรวจ: GET /v1/run/{id} จนกว่าสถานะจะเป็น completed, failed หรือ timeout
  3. ดึงข้อมูล: อ่าน outputs จากการตอบกลับที่เสร็จสมบูรณ์

เลือกโมเดลของคุณ

เปรียบเทียบโมเดล

โมเดลภาพและวิดีโอทั้งหมด
โมเดลประเภทราคามาตรฐานเปิดตัว
SAM Audio Visual Separateโมเดลนี้
Meta
เสียง$0.05 / ครั้ง30 ธ.ค. 2568
Metaเสียง$0.05 / ครั้ง30 ธ.ค. 2568
Metaเสียง$0.05 / ครั้ง30 ธ.ค. 2568
Metaเสียง$0.04 / ครั้ง27 ต.ค. 2568

คำถาม

คำถามที่พบบ่อย

ฉันจะเรียก Meta SAM Audio Visual Separate ผ่าน SandBase ได้อย่างไร?

สร้าง SandBase API key แล้วส่งคำขอด้วย model ID "meta/sam-audio/visual-separate" ไปที่ Unified Run API (/v1/run) ที่ https://api.sandbase.ai ตัวอย่างคำขอบนหน้านี้แสดง payload ที่ถูกต้องทั้งหมด

ฉันจำเป็นต้องมีบัญชี Meta แยกต่างหากไหม?

ไม่จำเป็น SandBase API key และยอดคงเหลือหนึ่งชุดให้คุณเข้าถึง Meta SAM Audio Visual Separate และโมเดลอื่น ๆ ในแค็ตตาล็อกได้ คุณไม่ต้องสมัครใช้งานกับ Meta แยกต่างหาก