videostringrequerido
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.
Probar el modelo
¿Qué le gustaría hacer después?
Seleccione un ejemplo para cargar sus entradas y el resultado en el 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.
Empiece a construir
Envíe este modelo a través de la API de ejecución unificada de SandBase.
# 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"Cree una clave de API de SandBase y configúrela en el entorno de su servidor. Todas las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve la clave en el servidor. No la exponga en código del navegador ni la confirme en un repositorio.
Haga un POST a /v1/run con este ID de modelo y sus entradas. El ejemplo de solicitud anterior incluye el envío y el sondeo.
Use el ID de ejecución devuelto para sondear hasta que el estado sea completed, failed o timeout. Lea la salida solo después de completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Proporcione una URL de archivo accesible públicamente en el campo de imagen, video o audio del modelo. Los formatos y límites admitidos se muestran junto a cada entrada de Playground.
Use el control de subir o reemplazar en los campos de imagen admitidos en Playground. Los campos de URL de video aceptan un video de conducción alojado; no implican compatibilidad con la subida de video.
videostringrequeridoURL 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_langstringrequeridoTarget language code for dubbing (ISO 639-1)
num_speakersintegerNumber of speakers in the audio. If not provided, will be auto-detected.
Mínimo: 1
Máximo: 50
highest_resolutionbooleanWhether to use the highest resolution for dubbing.
Valor predeterminado: 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
}Una ejecución completada expone su resultado en la salida. Lo siguiente es el ejemplo guardado del modelo, no una nueva generación.
[
{
"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"
}
]