videostringобязательно
Source video with Chinese or English speech (mp4 or mov, 4-360 s, 12-60 fps, up to 200 MB).
bytedance/seed-audio/1.5/video-translationSeed Audio 1.5 Video Translation by ByteDance translates Chinese or English speech in a video into one of 30 languages and returns the dubbed video, the dubbed audio track, and target and source subtitles, keeping the original timing and voice.
Попробовать модель
Что вы хотите сделать дальше?
Выберите пример, чтобы загрузить его входные данные и результат в playground.
{
"target_language": "es-ES",
"video": "https://static.sandbase.ai/examples/e78354ab-8789-47c1-95db-ad648bb9eaaf/input/b6620cc0-4b46-46e6-9165-76ae63bcb22e.mp4"
}{
"dialogue_enhancement": "medium",
"glossaries": [
{
"source": "OmniHuman",
"target": "OmniHuman"
}
],
"target_language": "ja",
"video": "https://static.sandbase.ai/examples/61558c72-966a-46d6-844e-06b3550f9f3c/input/6b559b19-aa43-48f7-a24f-a62d781e4015.mp4"
}Seed Audio 1.5 Video Translation by ByteDance translates Chinese or English speech in a video into one of 30 languages and returns the dubbed video, the dubbed audio track, and target and source subtitles, keeping the original timing and voice.
| Field | Type | Default | Notes |
|---|---|---|---|
video | file or URL, required | — | Input video file or URL. |
target_language | zh / en / ja / ko / de / fr / pt-BR / th / id / vi / ms / fil / it / ru / nl / pl / tr / sv / es-ES / es-MX / ar / pt-PT / fi / da / no / cs / hu / el / ro / hi, required | — | Language to dub into. |
subtitle | string | — | Target-language SRT URL; skips machine translation. |
glossaries | array | — | {source, target} term pairs. |
dialogue_enhancement | offlowmediumhigh | off | Dialogue enhancement level. |
output_format | mp3wavpcmogg_opus | mp3 | Output audio format. |
sample_rate | 80001600024000320004410048000 | — | Output sample rate in Hz; unset means 44100 (48000 for ogg_opus). |
$0.90 per minute of input video, prorated by the second. Target language, glossaries, subtitles, and audio format do not change the price. The estimate before the run assumes 1 minute if the video length cannot be read.
| Input video | Price |
|---|---|
| 10 s | $0.15 |
| 1 min | $0.90 |
| 6 min | $5.40 |
Failed runs are not charged.
Related:
Начните разработку
Отправьте эту модель через SandBase Unified Run API.
# 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": "bytedance/seed-audio/1.5/video-translation",
"video": "https://storage.googleapis.com/falserverless/example_outputs/omnihuman_output.mp4",
"output_format": "mp3",
"target_language": "es-ES",
"dialogue_enhancement": "off"
}
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"Создайте ключ SandBase API и задайте его в окружении сервера. Все запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера и не коммитьте в репозиторий.
Отправьте POST на /v1/run с этим ID модели и её входными данными. Пример запроса выше включает отправку и опрос.
Используйте возвращённый ID запуска, чтобы опрашивать статус до завершения, ошибки или таймаута. Читайте вывод только после завершения.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Передайте публично доступный URL файла в поле image, video или audio модели. Поддерживаемые форматы и лимиты показаны рядом с каждым полем Playground.
Используйте управление загрузкой или заменой в поддерживаемых полях изображений в Playground. Поля URL видео принимают размещённое видео для вождения; это не означает поддержку загрузки видео.
videostringобязательноSource video with Chinese or English speech (mp4 or mov, 4-360 s, 12-60 fps, up to 200 MB).
subtitlestringOptional UTF-8 SRT subtitle file URL in the target language. When provided, machine translation is skipped and the video is dubbed from these subtitles (each segment at most 15 s). Cannot be combined with glossaries.
glossariesarrayFixed translations for specific terms, as {source, target} pairs. Cannot be combined with subtitle.
sample_rateintegerSample rate of the output audio in Hz. Leave unset for 44100 (48000 for ogg_opus, the only rate ogg_opus supports).
Возможные значения: 8000, 16000, 24000, 32000, 44100, 48000
output_formatstringOutput audio format.
По умолчанию: "mp3"
Возможные значения: "mp3", "wav", "pcm", "ogg_opus"
target_languagestringобязательноLanguage to dub the video into.
Возможные значения: "zh", "en", "ja", "ko", "de", "fr", "pt-BR", "th", "id", "vi", "ms", "fil", "it", "ru", "nl", "pl", "tr", "sv", "es-ES", "es-MX", "ar", "pt-PT", "fi", "da", "no", "cs", "hu", "el", "ro", "hi"
dialogue_enhancementstringDialogue enhancement level applied to the dubbed audio.
По умолчанию: "off"
Возможные значения: "off", "low", "medium", "high"
{
"model": "bytedance/seed-audio/1.5/video-translation",
"video": "https://storage.googleapis.com/falserverless/example_outputs/omnihuman_output.mp4",
"output_format": "mp3",
"target_language": "es-ES",
"dialogue_enhancement": "off"
}В завершённом запуске результат доступен в output. Ниже приведён сохранённый пример модели, а не новая генерация.
[
{
"audio_url": "https://static.sandbase.ai/examples/e78354ab-8789-47c1-95db-ad648bb9eaaf/output/d41bb325-e3ad-4ac2-8f43-401168ee697e.mp3",
"source_subtitles_url": "https://static.sandbase.ai/examples/e78354ab-8789-47c1-95db-ad648bb9eaaf/output/efd72d7f-89b1-4820-8b25-86cd4e3fa0dd.bin",
"subtitles_url": "https://static.sandbase.ai/examples/e78354ab-8789-47c1-95db-ad648bb9eaaf/output/0d6dcebe-fd01-4408-979d-a74aba09e6a6.bin",
"url": "https://static.sandbase.ai/examples/e78354ab-8789-47c1-95db-ad648bb9eaaf/output/a82e7987-cab1-4e83-a548-7f4d98fb0519.mp4"
}
]