seedinteger
Random seed (0-2147483647) for reproducible results. Omit for a random seed; the same seed may still produce slightly different results.
Mínimo: 0
Máximo: 2147483647
alibaba/wan/3.0/pro/image-to-videoWan 3.0 Pro by Alibaba - animate still images into dynamic videos with AI. Transform photos into cinematic clips with natural motion, camera movement, and optional audio generation, upscaled to 1080p, 2K, or 4K.
Testar o modelo
PNG, JPEG, WebP ou GIF · máximo de 20 MiB
PNG, JPEG, WebP ou GIF · máximo de 20 MiB
O que você gostaria de fazer em seguida?
Selecione um exemplo para carregar as entradas e o resultado no playground.
{
"duration": 8,
"image": "https://static.sandbase.ai/examples/76c23e41-3f4a-4f96-8aac-529ecd3e58a9/input/1f94a80c-705e-425c-8b62-68a154e6cbd8.png",
"prompt": "(0:00 - 0:03) Camera: Medium shot. Scene: A ink-wash bamboo forest scene from Image 1. A swordsman wearing a bamboo hat and dressed in a dark robe, his silhouette standing in the center surrounded by thick fog and swaying bamboo shadows. Action: The swordsman's left hand lightly rests on the sword hilt, bamboo leaves fall with the wind. Atmosphere: Silent, oppressive, with clearly visible ink-wash grain texture. (0:03 - 0:08) Plot introduction. Camera: Close-up. Plot: The swordsman senses killing intent. Scene: The camera rapidly pushes in to a close-up beneath the swordsman's bamboo hat. Detail: Beneath the hat brim, a pair of sharp, resolute eyes appear, gaze like a blade. Ink-wash \"sweat drops\" slide down from the forehead. Action: The swordsman's right hand slowly grips the sword hilt, knuckles turning white. The bamboo leaves fall faster. Style note: Throughout, maintain the highly black-and-white, ink-wash painting style of Image 1 . Actions must have a calligraphic brush feel, speed must be fast, details must be rich (ink drops, sparks, ink crack marks)."
}Start a clip from your own picture. image becomes the exact first frame; add end_image and the model interpolates the motion between the two. Clips run 2–30 seconds with native audio. Pro runs the same Wan 3.0 model, then upscales the result with FlashVSR, so output comes back at 1080p, 2K, or 4K. For 480p or 720p use the non-Pro endpoints.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 5,000 characters. |
image | image URL, required | — | First frame. JPEG/PNG/BMP/WebP, 240–8000px per side, ≤20MB, no transparency. |
end_image | image URL | — | Last frame; needs image. |
duration | 2–30 or auto | 5 | auto lets the model pick the length. |
resolution | 1080p / 2k / 4k | 1080p | Output tier after FlashVSR super-resolution; sets the per-second rate. |
aspect_ratio | adaptive / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 | adaptive | adaptive follows the prompt and inputs. |
generate_audio | boolean | true | Native dialogue, music, and effects. Same price on or off. |
seed | integer 0–2147483647 | random | Fix it to compare prompt changes. |
prompt_extend | boolean | true | LLM rewrites the prompt before generating. Set false to keep it verbatim. |
You pay for output seconds only: $0.18 at 1080p, $0.20 at 2K, $0.23 at 4K. Input images, audio, and video are not metered. The frame images are free.
| Output | Billed | 1080p | 2K | 4K |
|---|---|---|---|---|
| 2s | 2s | $0.36 | $0.40 | $0.46 |
| 5s (default) | 5s | $0.90 | $1.00 | $1.15 |
| 10s | 10s | $1.80 | $2.00 | $2.30 |
| 30s | 30s | $5.40 | $6.00 | $6.90 |
With duration: "auto" the run is pre-authorized at 30 seconds, then settled on the length that was actually generated. Failed runs are not charged. Output files are copied to SandBase storage and the returned URL stays valid for 7 days; download anything you need to keep.
aspect_ratio on adaptive to keep the image's own proportions.The subject slowly turns toward the camera as a breeze moves the fabric; subtle handheld push-in, natural daylight, no dialogue.
Other Wan 3.0 Pro endpoints: alibaba/wan/3.0/pro/video (all modes in one schema), alibaba/wan/3.0/pro/text-to-video, alibaba/wan/3.0/pro/reference-to-video, alibaba/wan/3.0/pro/video-edit, alibaba/wan/3.0/pro/video-extend.
Comece a construir
Envie este modelo pela 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/3.0/pro/image-to-video",
"image": "https://static.sandbase.ai/samples/image-to-video/i2v-black-cat-sky-img0.png",
"duration": 5,
"resolution": "1080p",
"prompt_extend": true,
"generate_audio": 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"Crie uma chave da API SandBase e defina-a no ambiente do seu servidor. Todas as requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha a chave no servidor. Não a exponha em código do navegador nem a comite em um repositório.
Faça POST para /v1/run com este ID de modelo e suas entradas. O exemplo de requisição acima inclui envio e polling.
Use o ID de execução retornado para fazer polling até que o status seja completed, failed ou timeout. Leia a saída somente após completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passe uma URL de arquivo acessível publicamente no campo de imagem, vídeo ou áudio do modelo. Os formatos e limites suportados são mostrados ao lado de cada entrada do Playground.
Use o controle de upload ou substituição nos campos de imagem suportados no Playground. Campos de URL de vídeo aceitam um vídeo de condução hospedado; isso não implica suporte a upload de vídeo.
seedintegerRandom seed (0-2147483647) for reproducible results. Omit for a random seed; the same seed may still produce slightly different results.
Mínimo: 0
Máximo: 2147483647
imagestringobrigatórioURL of the image used as the first frame (JPEG, PNG, BMP, or WebP). Cannot be combined with `images`, `videos`, or `audios`.
promptstringobrigatórioText prompt describing the motion to generate.
durationvalorOutput duration in seconds (2-30), or `auto` to let the model pick a length from the prompt and inputs. `auto` is pre-authorized at 30 seconds and billed on the actual output length.
Padrão: 5
Valores possíveis: "auto", 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
end_imagestringURL of the image used as the last frame (JPEG, PNG, BMP, or WebP). Cannot be combined with `images`, `videos`, or `audios`.
resolutionstringOutput resolution tier after FlashVSR super-resolution.
Padrão: "1080p"
Valores possíveis: "1080p", "2k", "4k"
aspect_ratiostringOutput aspect ratio. Omit to match the input image.
Valores possíveis: "16:9", "4:3", "1:1", "3:4", "9:16"
prompt_extendbooleanLet the model rewrite your prompt with an LLM before generating. Helps short prompts but adds latency. Set false to use the prompt exactly as written.
Padrão: true
generate_audiobooleanGenerate a synchronized audio track. Pricing is the same either way.
Padrão: true
{
"model": "alibaba/wan/3.0/pro/image-to-video",
"image": "https://static.sandbase.ai/samples/image-to-video/i2v-black-cat-sky-img0.png",
"duration": 5,
"resolution": "1080p",
"prompt_extend": true,
"generate_audio": true
}Uma execução concluída expõe seu resultado em output. O texto a seguir é o exemplo salvo do modelo, não uma nova geração.
[
{
"url": "https://static.sandbase.ai/examples/76c23e41-3f4a-4f96-8aac-529ecd3e58a9/output/d16ae256-796c-4ec5-93e4-e8ac62e88c86.mp4"
}
]