maskstring
The URL of the mask image to apply to the image. Only the person in the white area of the mask will speak.
bytedance/omnihuman/1.5Omnihuman 1.5 is Bytedance's image-to-video AI model. Bring static images to life with fluid animation, consistent character motion, and professional-grade video output.
Thử model
PNG, JPEG, WebP hoặc GIF · tối đa 20 MiB
PNG, JPEG, WebP hoặc GIF · tối đa 20 MiB
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
OmniHuman 1.5 turns a single image and an audio track into a talking or performing video, with lip sync, gestures, and expressions that follow the audio and the prompt.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Optional direction for gestures and camera. |
image | image URL, required | — | Person or character to animate. JPEG, PNG, or WebP URL. |
mask | image URL | — | Optional mask to choose which person speaks. |
audio | audio URL, required | — | Speech or song that drives the performance. |
resolution | 720p / 1080p | 720p | Output resolution. |
turbo_mode | boolean | false | Faster generation at some quality cost. |
$0.16 per output second; the output is as long as the audio. The quote before submission assumes 5 seconds.
| Audio | Price |
|---|---|
| 5s audio | $0.80 |
| 15s audio | $2.40 |
| 30s audio | $4.80 |
Failed runs are not charged.
Related: bytedance/dreamactor/2.0 (video-driven).
Bắt đầu xây dựng
Gửi model này qua 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/1.5",
"audio": "https://static.sandbase.ai/examples/bytedance/omnihuman/1.5/input_audio_0.mp3",
"image": "https://static.sandbase.ai/examples/bytedance/omnihuman/1.5/input_image_1.png",
"resolution": "720p",
"turbo_mode": false
}
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"Tạo một SandBase API key và đặt nó trong môi trường máy chủ của bạn. Tất cả request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key trên máy chủ. Không hiển thị trong mã trình duyệt hoặc commit vào repository.
POST tới /v1/run với model ID này và các đầu vào của nó. Ví dụ request ở trên bao gồm cả bước gửi và polling.
Dùng run ID được trả về để poll cho đến khi trạng thái là completed, failed hoặc timeout. Chỉ đọc đầu ra sau khi completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Cung cấp một URL tệp có thể truy cập công khai trong trường image, video hoặc audio của model. Các định dạng và giới hạn được hỗ trợ hiển thị bên cạnh từng input trong Playground.
Dùng điều khiển upload hoặc replace trên các trường image được hỗ trợ trong Playground. Trường URL video chấp nhận một video driving được host; điều này không đồng nghĩa hỗ trợ tải lên video.
maskstringThe URL of the mask image to apply to the image. Only the person in the white area of the mask will speak.
audiostringbắt buộcThe URL of the audio file to generate the video. Audio must be under 30s long for 1080p generation and under 60s long for 720p generation.
imagestringbắt buộcThe URL of the image used to generate the video
promptstringbắt buộcThe text prompt used to guide the video generation.
resolutionstringThe resolution of the generated video. Defaults to 1080p. 720p generation is faster and higher in quality. 1080p generation is limited to 30s audio and 720p generation is limited to 60s audio.
Mặc định: "720p"
Giá trị có thể dùng: "720p", "1080p"
turbo_modebooleanGenerate a video at a faster rate with a slight quality trade-off.
Mặc định: false
{
"model": "bytedance/omnihuman/1.5",
"audio": "https://static.sandbase.ai/examples/bytedance/omnihuman/1.5/input_audio_0.mp3",
"image": "https://static.sandbase.ai/examples/bytedance/omnihuman/1.5/input_image_1.png",
"resolution": "720p",
"turbo_mode": false
}Một run đã hoàn tất sẽ hiển thị kết quả trong output. Phần sau là ví dụ đã lưu của model, không phải một lần tạo mới.
Chưa có đầu ra ví dụ nào được công bố. Dùng Playground → Result → JSON sau khi run hoàn tất để xem phản hồi của bạn.