videostringwymagane
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.
Wypróbuj model
Co chcesz zrobić dalej?
Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.
{
"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:
Zacznij tworzyć
Prześlij ten model przez 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"Utwórz klucz API SandBase i ustaw go w środowisku serwera. Wszystkie żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym ani nie commituj do repozytorium.
Wyślij POST do /v1/run z tym identyfikatorem modelu i jego danymi wejściowymi. Powyższy przykład żądania obejmuje wysyłanie i odpytywanie statusu.
Użyj zwróconego ID uruchomienia, aby odpytywać status do momentu completion, failed lub timeout. Odczytaj wynik dopiero po completion.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Przekaż publicznie dostępny URL pliku w polu image, video lub audio modelu. Obsługiwane formaty i limity są pokazane obok każdego pola wejściowego w Playground.
Użyj kontrolki upload lub replace w obsługiwanych polach image w Playground. Pola URL wideo akceptują hostowany film źródłowy; nie oznacza to obsługi przesyłania wideo.
videostringwymaganeSource 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).
Możliwe wartości: 8000, 16000, 24000, 32000, 44100, 48000
output_formatstringOutput audio format.
Domyślnie: "mp3"
Możliwe wartości: "mp3", "wav", "pcm", "ogg_opus"
target_languagestringwymaganeLanguage to dub the video into.
Możliwe wartości: "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.
Domyślnie: "off"
Możliwe wartości: "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"
}Zakończone uruchomienie udostępnia swój wynik w output. Poniżej znajduje się zapisany przykład modelu, a nie nowa generacja.
[
{
"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"
}
]