imagestringobbligatorio
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.
Prova il modello
PNG, JPEG, WebP o GIF · massimo 20 MiB
Cosa vuoi fare dopo?
Seleziona un esempio per caricare i suoi input e il risultato nel 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).
Inizia a costruire
Invia questo modello tramite la 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"Crea una SandBase API key e impostala nell'ambiente del server. Tutte le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la key sul server. Non esporla nel codice del browser né committarla in un repository.
Esegui POST su /v1/run con questo ID modello e i relativi input. L'esempio di richiesta sopra include invio e polling.
Usa il run ID restituito per fare polling finché lo stato non è completed, failed o timeout. Leggi l'output solo dopo completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passa un URL di file accessibile pubblicamente nel campo image, video o audio del modello. I formati supportati e i limiti sono mostrati accanto a ciascun input del Playground.
Usa il controllo upload o replace sui campi immagine supportati nel Playground. I campi URL video accettano un video di driving ospitato; non implicano il supporto al caricamento video.
imagestringobbligatorioInput image URL (face / character).
videostringobbligatorioDriving video providing motion, expressions and lip movement.
trim_first_secondbooleanCrop the 1-second transition at the start of the output.
Predefinito: 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
}Un run completato espone il risultato in output. Quanto segue è l'esempio salvato del modello, non una nuova generazione.
[
{
"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"
}
]