audiostringобязательно
Input audio URL.
sync/lipsync/3.0/image-to-videoSync 3 animates the face in a still image so it speaks the provided audio; the output matches the audio length.
Попробовать модель
PNG, JPEG, WebP или GIF · максимум 20 MiB
Что вы хотите сделать дальше?
Выберите пример, чтобы загрузить его входные данные и результат в playground.
{
"audio": "https://static.sandbase.ai/examples/561589e7-7f64-4b10-8636-6a598fd9b9b8/input/b3a8612b-d1e8-4efb-97c0-34d3cd05a581.wav",
"image": "https://static.sandbase.ai/examples/561589e7-7f64-4b10-8636-6a598fd9b9b8/input/0b00a2c7-affa-4bef-9e70-4f1526d9579a.png"
}Sync 3 Avatar animates the face in a still image so it speaks the provided audio.
| Field | Type | Default | Notes |
|---|---|---|---|
image | image URL, required | — | Face to animate. JPEG, PNG, or WebP URL. |
audio | audio URL, required | — | Speech to sync. |
$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/video-to-video.
Начните разработку
Отправьте эту модель через 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": "sync/lipsync/3.0/image-to-video",
"audio": "https://static.sandbase.ai/examples/sync/lipsync/v3/input_audio_1.wav",
"image": "https://storage.googleapis.com/falserverless/example_inputs/echo-mimic-input-image.png"
}
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"Создайте ключ SandBase API и задайте его в окружении сервера. Все запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера и не коммитьте в репозиторий.
Отправьте POST на /v1/run с этим ID модели и её входными данными. Пример запроса выше включает отправку и опрос.
Используйте возвращённый ID запуска, чтобы опрашивать статус до завершения, ошибки или таймаута. Читайте вывод только после завершения.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Передайте публично доступный URL файла в поле image, video или audio модели. Поддерживаемые форматы и лимиты показаны рядом с каждым полем Playground.
Используйте управление загрузкой или заменой в поддерживаемых полях изображений в Playground. Поля URL видео принимают размещённое видео для вождения; это не означает поддержку загрузки видео.
audiostringобязательноInput audio URL.
imagestringобязательноInput image URL (face / character).
{
"model": "sync/lipsync/3.0/image-to-video",
"audio": "https://static.sandbase.ai/examples/sync/lipsync/v3/input_audio_1.wav",
"image": "https://storage.googleapis.com/falserverless/example_inputs/echo-mimic-input-image.png"
}В завершённом запуске результат доступен в output. Ниже приведён сохранённый пример модели, а не новая генерация.
[
{
"poster": "https://static.sandbase.ai/examples/posters/19c92891b3818512c38a.jpg",
"source": "Self organization completed prediction",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/561589e7-7f64-4b10-8636-6a598fd9b9b8/output/b534df76-6cef-44da-b823-b8bc128ebadb.mp4"
}
]