videostringobbligatorio
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.
Prova il modello
Cosa vuoi fare dopo?
Seleziona un esempio per caricare i suoi input e il risultato nel 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:
Inizia a costruire
Invia questo modello tramite la 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"Crea una SandBase API key e impostala nell'ambiente del server. Tutte le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la key sul server. Non esporla nel codice del browser né committarla in un repository.
Esegui POST su /v1/run con questo ID modello e i relativi input. L'esempio di richiesta sopra include invio e polling.
Usa il run ID restituito per fare polling finché lo stato non è completed, failed o timeout. Leggi l'output solo dopo completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passa un URL di file accessibile pubblicamente nel campo image, video o audio del modello. I formati supportati e i limiti sono mostrati accanto a ciascun input del Playground.
Usa il controllo upload o replace sui campi immagine supportati nel Playground. I campi URL video accettano un video di driving ospitato; non implicano il supporto al caricamento video.
videostringobbligatorioSource 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).
Valori possibili: 8000, 16000, 24000, 32000, 44100, 48000
output_formatstringOutput audio format.
Predefinito: "mp3"
Valori possibili: "mp3", "wav", "pcm", "ogg_opus"
target_languagestringobbligatorioLanguage to dub the video into.
Valori possibili: "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.
Predefinito: "off"
Valori possibili: "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"
}Un run completato espone il risultato in output. Quanto segue è l'esempio salvato del modello, non una nuova generazione.
[
{
"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"
}
]