imagestring必須
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.
モデルを試す
PNG、JPEG、WebP、GIF · 最大 20 MiB
次に何をしますか?
例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
{
"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).
開発を始める
このモデルを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"SandBaseのAPIキーを作成し、サーバー環境に設定してください。すべてのリクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開したり、リポジトリにコミットしたりしないでください。
このモデルIDと入力を使って /v1/run にPOSTしてください。上のリクエスト例には送信とポーリングが含まれています。
返されたrun IDを使って、ステータスがcompleted、failed、timeoutになるまでポーリングしてください。出力はcompleted後にのみ読み取ってください。
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"モデルのimage、video、またはaudioフィールドに、公開アクセス可能なファイルURLを指定してください。対応形式と制限は各Playground入力の横に表示されます。
Playgroundの対応する画像フィールドでアップロードまたは置換を使用してください。video URLフィールドはホストされたドライビング動画を受け付けますが、動画アップロード対応を意味するものではありません。
imagestring必須Input image URL (face / character).
videostring必須Driving video providing motion, expressions and lip movement.
trim_first_secondbooleanCrop the 1-second transition at the start of the output.
デフォルト: 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
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
[
{
"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"
}
]