seedinteger
Random seed (0-2147483647) for reproducible results. Omit for a random seed; the same seed may still produce slightly different results.
Minimum: 0
Maksimum: 2147483647
alibaba/wan/3.0/pro/prime/image-to-videoWan 3.0 Pro Prime 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.
Wypróbuj model
PNG, JPEG, WebP lub GIF · maksymalnie 20 MiB
PNG, JPEG, WebP lub GIF · maksymalnie 20 MiB
Co chcesz zrobić dalej?
Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.
{
"duration": 8,
"image": "https://static.sandbase.ai/examples/a761faa7-f752-43af-8d43-4588574de333/input/5ae88495-e8ac-4b70-af16-e1f73a89e20d.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 Prime 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.
Pro Prime is the faster Wan 3.0 Pro tier: the same inputs and output quality as Wan 3.0 Pro, with significantly shorter end-to-end generation time and a higher per-second rate. Use Wan 3.0 Pro for batch or background jobs where turnaround does not matter.
| 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.26 at 1080p, $0.28 at 2K, $0.31 at 4K. Input images, audio, and video are not metered. The frame images are free.
| Output | Billed | 1080p | 2K | 4K |
|---|---|---|---|---|
| 2s | 2s | $0.52 | $0.56 | $0.62 |
| 5s (default) | 5s | $1.30 | $1.40 | $1.55 |
| 10s | 10s | $2.60 | $2.80 | $3.10 |
| 30s | 30s | $7.80 | $8.40 | $9.30 |
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 Prime endpoints: alibaba/wan/3.0/pro/prime/video (all modes in one schema), alibaba/wan/3.0/pro/prime/text-to-video, alibaba/wan/3.0/pro/prime/reference-to-video, alibaba/wan/3.0/pro/prime/video-edit, alibaba/wan/3.0/pro/prime/video-extend. Standard tier: alibaba/wan/3.0/pro/image-to-video.
Zacznij tworzyć
Prześlij ten model przez 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/prime/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"Utwórz klucz API SandBase i ustaw go w środowisku serwera. Wszystkie żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym ani nie commituj do repozytorium.
Wyślij POST do /v1/run z tym identyfikatorem modelu i jego danymi wejściowymi. Powyższy przykład żądania obejmuje wysyłanie i odpytywanie statusu.
Użyj zwróconego ID uruchomienia, aby odpytywać status do momentu completion, failed lub timeout. Odczytaj wynik dopiero po completion.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Przekaż publicznie dostępny URL pliku w polu image, video lub audio modelu. Obsługiwane formaty i limity są pokazane obok każdego pola wejściowego w Playground.
Użyj kontrolki upload lub replace w obsługiwanych polach image w Playground. Pola URL wideo akceptują hostowany film źródłowy; nie oznacza to obsługi przesyłania wideo.
seedintegerRandom seed (0-2147483647) for reproducible results. Omit for a random seed; the same seed may still produce slightly different results.
Minimum: 0
Maksimum: 2147483647
imagestringwymaganeURL of the image used as the first frame (JPEG, PNG, BMP, or WebP). Cannot be combined with `images`, `videos`, or `audios`.
promptstringwymaganeText prompt describing the motion to generate.
durationwartośćOutput 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.
Domyślnie: 5
Możliwe wartości: "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.
Domyślnie: "1080p"
Możliwe wartości: "1080p", "2k", "4k"
aspect_ratiostringOutput aspect ratio. Omit to match the input image.
Możliwe wartości: "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.
Domyślnie: true
generate_audiobooleanGenerate a synchronized audio track. Pricing is the same either way.
Domyślnie: true
{
"model": "alibaba/wan/3.0/pro/prime/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
}Zakończone uruchomienie udostępnia swój wynik w output. Poniżej znajduje się zapisany przykład modelu, a nie nowa generacja.
[
{
"url": "https://static.sandbase.ai/examples/a761faa7-f752-43af-8d43-4588574de333/output/0bf9010c-0d18-4b7f-a5d4-250bdab94758.mp4"
}
]