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
Попробовать модель
Песочница
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
Карточка модели
Характеристики
Цены
- Базовая цена
- $0.05 / запуск
Контекст и модальности
- Вход
- Определяется схемой
- Выход
- audio
Возможности
- Чат
- Не поддерживается
- Зрение
- Не поддерживается
- Рассуждение
- Не поддерживается
- Структурированный вывод
- Не поддерживается
- Вызов функций
- Не поддерживается
- Аудиовход
- Не поддерживается
Доступ
- Провайдер
- Meta
- ID модели
- meta/sam-audio/visual-separate
- Выполнение
- async
- Базовый URL
- https://api.sandbase.ai
- API
- Unified Run API
- Эндпоинт
- /v1/run
README по API
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.
Начните разработку
Отправьте свой первый запрос
Совместимая с OpenAI конечная точка с единообразной аутентификацией и учётом использования.
# 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 | Уникальный идентификатор задачи генерации |
status | string | Статус задачи: pending, running, completed, failed, timeout |
model | string | Модель, использованная для генерации |
outputs | array | Массив элементов вывода |
outputs[].url | string | URL сгенерированного артефакта |
outputs[].content_type | string | MIME-тип (например, image/png, video/mp4) |
error | object | null | Сведения об ошибке, если не удалось; null при успехе |
error.type | string | Код ошибки для машинной обработки |
error.message | string | Описание ошибки, понятное человеку |
Асинхронный workflow
Эта модель работает асинхронно. Отправьте запрос, затем опрашивайте результат.
- Отправка: выполните POST на /v1/run и прочитайте возвращаемое
id. - Опрос: выполняйте GET /v1/run/{id}, пока статус не станет
completed,failedилиtimeout. - Получение: прочитайте
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
Как вызвать Meta SAM Audio Visual Separate через SandBase?
Создайте API key SandBase, затем отправляйте запросы с идентификатором модели "meta/sam-audio/visual-separate" на Unified Run API (/v1/run) по адресу https://api.sandbase.ai. Примеры запросов на этой странице показывают точный payload.
Нужен ли мне отдельный аккаунт Meta?
Нет. Один API key SandBase и один баланс дают вам доступ к Meta SAM Audio Visual Separate и другим моделям в каталоге; отдельно регистрироваться в Meta не нужно.
