videostringobbligatorio
URL of the video file to dub (MP4 / MOV). The dubbed result is returned as a video.
elevenlabs/dubbingElevenLabs Dubbing translates the speech in a video into another language while preserving each speaker's voice, timing, and background audio.
Prova il modello
Cosa vuoi fare dopo?
Seleziona un esempio per caricare i suoi input e il risultato nel playground.
{
"target_lang": "es",
"video": "https://static.sandbase.ai/examples/8f64921f-0d6e-4239-a36a-7419390685bc/input/2515467e-312a-4f21-a8e1-763533464bb3.mp4"
}ElevenLabs Dubbing translates the speech in a video into another language while keeping each speaker's voice, timing, and the background audio.
| Field | Type | Default | Notes |
|---|---|---|---|
video | video URL, required | — | Video to dub. |
source_lang | string | — | Source language; omit to detect. |
num_speakers | integer 1–50 | — | Speaker count; omit to detect. |
target_lang | string, required | — | Language to dub into. |
highest_resolution | boolean | true | Keep the source resolution. |
$0.60 per started minute of video. The quote before submission assumes 1 minute; the final charge uses the measured length.
| Video | Price |
|---|---|
| 1 min | $0.60 |
| 5 min | $3.00 |
| 15 min | $9.00 |
Failed runs are not charged.
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": "elevenlabs/dubbing",
"video": "https://static.sandbase.ai/examples/elevenlabs/dubbing/input_video_0.mp4",
"source_lang": "en",
"target_lang": "es",
"highest_resolution": true
}
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.
videostringobbligatorioURL of the video file to dub (MP4 / MOV). The dubbed result is returned as a video.
source_langstringSource language code. If not provided, will be auto-detected.
target_langstringobbligatorioTarget language code for dubbing (ISO 639-1)
num_speakersintegerNumber of speakers in the audio. If not provided, will be auto-detected.
Minimo: 1
Massimo: 50
highest_resolutionbooleanWhether to use the highest resolution for dubbing.
Predefinito: true
{
"model": "elevenlabs/dubbing",
"video": "https://static.sandbase.ai/examples/elevenlabs/dubbing/input_video_0.mp4",
"source_lang": "en",
"target_lang": "es",
"highest_resolution": true
}Un run completato espone il risultato in output. Quanto segue è l'esempio salvato del modello, non una nuova generazione.
[
{
"poster": "https://static.sandbase.ai/examples/posters/5539d010229053c2251d.jpg",
"source": "ElevenLabs schema mirror",
"source_url": "https://elevenlabs.io/docs",
"url": "https://static.sandbase.ai/examples/8f64921f-0d6e-4239-a36a-7419390685bc/output/2e522cf6-5580-4ef4-b959-c0aa4f6b8d1c.mp4"
}
]