videostringzorunlu
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.
Modeli deneyin
Sırada ne yapmak istersiniz?
Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
{
"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.
Geliştirmeye başlayın
Bu modeli SandBase Unified Run API üzerinden gönderin.
# 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"Bir SandBase API anahtarı oluşturun ve sunucu ortamınıza ayarlayın. Tüm istekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın veya bir depoya commit etmeyin.
Bu model kimliği ve girdileriyle /v1/run adresine POST gönderin. Yukarıdaki istek örneği gönderme ve yoklamayı içerir.
Durum completed, failed veya timeout olana kadar verilen run ID ile yoklama yapın. Çıktıyı yalnızca completed olduktan sonra okuyun.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Modelin image, video veya audio alanına herkese açık erişilebilir bir dosya URL'si verin. Desteklenen formatlar ve sınırlar her Playground girişinin yanında gösterilir.
Playground'daki desteklenen image alanlarında yükleme veya değiştirme kontrolünü kullanın. Video URL alanları barındırılan bir sürüş videosu kabul eder; video yükleme desteği anlamına gelmez.
videostringzorunluURL 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_langstringzorunluTarget language code for dubbing (ISO 639-1)
num_speakersintegerNumber of speakers in the audio. If not provided, will be auto-detected.
Minimum: 1
Maksimum: 50
highest_resolutionbooleanWhether to use the highest resolution for dubbing.
Varsayılan: 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
}Tamamlanan bir run, sonucunu output içinde gösterir. Aşağıdaki, modelin kaydedilmiş örneğidir; yeni bir üretim değildir.
[
{
"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"
}
]