seedinteger
Random seed for reproducibility.
最小: 0
最大: 2147483647
alibaba/wan/2.2/animate/moveWan 2.2 Animate Move animates the character in the image with the motion of the reference video.
モデルを試す
PNG、JPEG、WebP、GIF · 最大 20 MiB
次に何をしますか?
例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
{
"image": "https://static.sandbase.ai/examples/ba85e11e-bed1-49d9-beef-110d08b1ba84/input/c7c1186b-1e49-4d8c-8e54-d630bc7fb8b1.png",
"video": "https://static.sandbase.ai/examples/ba85e11e-bed1-49d9-beef-110d08b1ba84/input/4dcec186-db5d-4690-bcf1-c6ecdfbbeecd.mp4"
}Make the character in image perform the motion of a reference video. The picture supplies identity and outfit; the video supplies body movement, expression, and timing.
| Field | Type | Default | Notes |
|---|---|---|---|
image | image URL, required | — | Character image. JPEG, PNG, or WebP URL. |
video | video URL, required | — | Reference video that supplies the motion. |
resolution | 480p / 580p / 720p | 720p | Sets the rate. |
use_turbo | boolean | false | Faster generation at some quality cost. |
seed | integer 0–2147483647 | random | Fix it to compare prompt changes. |
Billing follows the upstream unit: output seconds counted at 16 frames per second, so a 30fps output bills about 1.9× its wall-clock length. Rates per counted second: $0.04 at 480p, $0.06 at 580p, $0.08 at 720p. The quote before submission assumes a 5-second, 30fps result; the final charge uses the measured output.
| Output | 480p | 580p | 720p |
|---|---|---|---|
| 5s at 30fps | $0.375 | $0.5625 | $0.75 |
| 10s at 30fps | $0.75 | $1.125 | $1.50 |
| 10s at 16fps | $0.40 | $0.60 | $0.80 |
Failed runs are not charged.
Other Wan 2.2 endpoints: alibaba/wan/2.2/animate/replace, alibaba/wan/2.2/speech-to-video.
開発を始める
このモデルを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": "alibaba/wan/2.2/animate/move",
"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",
"use_turbo": false,
"resolution": "720p"
}
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フィールドはホストされたドライビング動画を受け付けますが、動画アップロード対応を意味するものではありません。
seedintegerRandom seed for reproducibility.
最小: 0
最大: 2147483647
imagestring必須Input image URL (face / character).
videostring必須Reference video.
use_turbobooleanFaster generation with quality enhancement.
デフォルト: false
resolutionstringOutput resolution.
デフォルト: "720p"
指定可能な値: "480p", "580p", "720p"
{
"model": "alibaba/wan/2.2/animate/move",
"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",
"use_turbo": false,
"resolution": "720p"
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
[
{
"poster": "https://static.sandbase.ai/examples/posters/663513712e8fa884eca6.jpg",
"source": "Alibaba Model Studio schema mirror",
"source_url": "https://www.alibabacloud.com/help/en/model-studio/",
"url": "https://static.sandbase.ai/examples/ba85e11e-bed1-49d9-beef-110d08b1ba84/output/6e9df488-5136-4ce0-bf4d-67b321142ee2.mp4"
}
]