imagestringbắt buộc
Input image URL (face / character).
bytedance/dreamactor/2.0DreamActor 2.0 by ByteDance transfers motion, facial expressions and lip movement from a driving video to the character in a reference image.
Thử model
PNG, JPEG, WebP hoặc GIF · tối đa 20 MiB
Bạn muốn làm gì tiếp theo?
Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
{
"image": "https://static.sandbase.ai/examples/1668055b-f263-449e-a2b0-64ce4b82aba2/input/e2db078d-d0b4-4317-bf55-9372a99f8359.png",
"video": "https://static.sandbase.ai/examples/1668055b-f263-449e-a2b0-64ce4b82aba2/input/df52f6c5-d3e1-4bd2-8348-a8f1ab03ac18.mp4"
}DreamActor 2.0 transfers body motion, facial expression, and lip movement from a driving video to the character in image.
| Field | Type | Default | Notes |
|---|---|---|---|
image | image URL, required | — | Character to animate. JPEG, PNG, or WebP URL. |
video | video URL, required | — | Driving video that supplies motion and expression. |
trim_first_second | boolean | true | Drop the first second, which is often used for alignment. |
$0.05 per output second. The quote before submission assumes 5 seconds; the final charge uses the measured length.
| Output | Price |
|---|---|
| 5s | $0.25 |
| 10s | $0.50 |
| 30s | $1.50 |
Failed runs are not charged.
Related: bytedance/omnihuman/1.5 (audio-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/dreamactor/2.0",
"image": "https://static.sandbase.ai/examples/alibaba/wan/2.2/animate/move/input_image_1.png",
"video": "https://static.sandbase.ai/examples/alibaba/wan/2.2/animate/move/input_video_0.mp4",
"trim_first_second": 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"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.
imagestringbắt buộcInput image URL (face / character).
videostringbắt buộcDriving video providing motion, expressions and lip movement.
trim_first_secondbooleanCrop the 1-second transition at the start of the output.
Mặc định: true
{
"model": "bytedance/dreamactor/2.0",
"image": "https://static.sandbase.ai/examples/alibaba/wan/2.2/animate/move/input_image_1.png",
"video": "https://static.sandbase.ai/examples/alibaba/wan/2.2/animate/move/input_video_0.mp4",
"trim_first_second": true
}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.
[
{
"poster": "https://static.sandbase.ai/examples/posters/75b7435157e8b8167bf1.jpg",
"source": "Self organization completed prediction",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/1668055b-f263-449e-a2b0-64ce4b82aba2/output/12b99cff-c2ad-4774-b236-da1077703b6f.mp4"
}
]