audiostringzorunlu
Input audio URL.
sync/lipsync/3.0/video-to-videoSync 3 by sync. re-animates the speaker's lips in an existing video to match new audio, with studio-grade identity preservation.
Modeli deneyin
Sırada ne yapmak istersiniz?
Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
{
"audio": "https://static.sandbase.ai/examples/0041ca28-136b-4673-abf2-5f4b57e4650a/input/86f172e0-e9ae-4108-b088-b329646c8265.wav",
"video": "https://static.sandbase.ai/examples/0041ca28-136b-4673-abf2-5f4b57e4650a/input/857176e7-45a6-438a-b4d6-2a6c1c317efe.mp4"
}Sync 3 re-animates the speaker's lips in an existing video to match new audio, with strong identity preservation.
| Field | Type | Default | Notes |
|---|---|---|---|
video | video URL, required | — | Video with the speaker. |
audio | audio URL, required | — | Speech to sync. |
sync_mode | cut_off / loop / bounce / silence / remap | cut_off | What to do when audio and video lengths differ. |
$0.135 per output second. The quote before submission assumes 5 seconds; the final charge uses the measured length.
| Output | Price |
|---|---|
| 5s | $0.675 |
| 30s | $4.05 |
| 60s | $8.10 |
Failed runs are not charged.
Related: sync/lipsync/3.0/image-to-video.
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": "sync/lipsync/3.0/video-to-video",
"audio": "https://static.sandbase.ai/examples/sync/lipsync/v3/input_audio_1.wav",
"video": "https://static.sandbase.ai/examples/sync/lipsync/v3/output_url_0.mp4",
"sync_mode": "cut_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"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.
audiostringzorunluInput audio URL.
videostringzorunluInput video URL.
sync_modestringHow to handle audio/video length mismatch.
Varsayılan: "cut_off"
Olası değerler: "cut_off", "loop", "bounce", "silence", "remap"
{
"model": "sync/lipsync/3.0/video-to-video",
"audio": "https://static.sandbase.ai/examples/sync/lipsync/v3/input_audio_1.wav",
"video": "https://static.sandbase.ai/examples/sync/lipsync/v3/output_url_0.mp4",
"sync_mode": "cut_off"
}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/b0187c94cc69ba662540.jpg",
"source": "Self organization completed prediction",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/0041ca28-136b-4673-abf2-5f4b57e4650a/output/91d42a6e-fd3f-4ab4-aff9-f0032326b612.mp4"
}
]