audiostringобязательно
Speech or song that drives the performance. WAV or MP3, 4-300 seconds, up to 15 MB.
bytedance/omnihuman/2.0OmniHuman 2.0 by ByteDance turns a single image and an audio track into a talking or performing video that follows the audio.
Попробовать модель
PNG, JPEG, WebP или GIF · максимум 20 MiB
Что вы хотите сделать дальше?
Выберите пример, чтобы загрузить его входные данные и результат в playground.
{
"audio": "https://static.sandbase.ai/examples/4e4bda6c-b42a-40d2-8777-ec0c9dc7ca6b/input/8f429735-ac39-48b6-aa3c-360f822d11fa.mp3",
"image": "https://static.sandbase.ai/examples/4e4bda6c-b42a-40d2-8777-ec0c9dc7ca6b/input/117a23db-2541-4338-a76a-11206be9e9e7.png",
"prompt": "She speaks warmly to the camera with natural hand gestures."
}{
"audio": "https://static.sandbase.ai/examples/4b4402b0-ac66-4de9-89d0-c6dadd102228/input/2280d23d-3ccc-4b1f-a855-c799ca34804a.mp3",
"image": "https://static.sandbase.ai/examples/4b4402b0-ac66-4de9-89d0-c6dadd102228/input/d3699201-5618-49d9-91d0-d7a8f340865f.png",
"prompt": "He speaks confidently to the camera in Times Square at night, small natural head movements."
}OmniHuman 2.0 turns a single image and an audio track into a talking or performing video, with lip sync, gestures and expressions that follow the audio.
| Field | Type | Default | Notes |
|---|---|---|---|
image | image URL, required | — | Person or character to animate. 300–6000 px per side, aspect ratio 0.4–2.5, up to 30 MB. |
audio | audio URL, required | — | Speech or song, WAV or MP3, 4–300 seconds, up to 15 MB. |
prompt | string | — | Optional direction for scene, gestures and camera. |
$0.105 per output second; the output is as long as the audio. The quote before submission assumes 5 seconds when the audio length cannot be read.
| Audio | Price |
|---|---|
| 5s audio | $0.525 |
| 30s audio | $3.15 |
| 60s audio | $6.30 |
| Failed runs are not charged. |
Previous version: bytedance/omnihuman/1.5.
Начните разработку
Отправьте эту модель через 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": "bytedance/omnihuman/2.0",
"audio": "https://storage.googleapis.com/falserverless/example_inputs/omnihuman_v15_input_audio.mp3",
"image": "https://storage.googleapis.com/falserverless/example_inputs/omnihuman_v15_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обязательноSpeech or song that drives the performance. WAV or MP3, 4-300 seconds, up to 15 MB.
imagestringобязательноPerson or character to animate. 300-6000 px per side, aspect ratio 0.4-2.5, up to 30 MB.
promptstringOptional direction for scene, gestures and camera.
{
"model": "bytedance/omnihuman/2.0",
"audio": "https://storage.googleapis.com/falserverless/example_inputs/omnihuman_v15_input_audio.mp3",
"image": "https://storage.googleapis.com/falserverless/example_inputs/omnihuman_v15_input_image.png"
}В завершённом запуске результат доступен в output. Ниже приведён сохранённый пример модели, а не новая генерация.
[
{
"url": "https://static.sandbase.ai/examples/4e4bda6c-b42a-40d2-8777-ec0c9dc7ca6b/output/678ef1e5-25c7-4172-bccd-e5456509e237.mp4"
}
]