seedinteger
Random seed (0-2147483647) for reproducible results. Omit for a random seed; the same seed may still produce slightly different results.
Minimo: 0
Massimo: 2147483647
alibaba/wan/3.0/pro/text-to-videoWan 3.0 Pro by Alibaba turns a text prompt into a video of up to 30 seconds at 30fps, with native dialogue, music, and sound effects, upscaled to 1080p, 2K, or 4K.
Prova il modello
Cosa vuoi fare dopo?
Seleziona un esempio per caricare i suoi input e il risultato nel playground.
{
"aspect_ratio": "16:9",
"duration": 8,
"prompt": "An 8-second ultra-widescreen plush universe adventure clip, featuring ultra-fine plush textures throughout, cinematic space scale, a contrast between cute appearances and intense action, exaggerated FPV camera movements, and realistic soft-body physics. A spaceship made of plush fabric, buttons, zippers, and stuffing cotton carries three small plush animals — a rabbit, a fox, and a crow — fleeing at high speed through a universe composed of giant yarn planets, fluffy nebulae, and puppet giant beasts. A massive interstellar whale beast covered in deep blue long fur with eyes like two glass buttons chases the ship from within the nebula. The dynamics include the zipper ship launching via catapult, high-speed orbiting around a yarn planet, the giant whale bursting out from behind, navigating through a button asteroid belt, being swallowed by the whale beast, escaping through a golden zipper on its back, the whale slowly deflating as if losing its stuffing cotton, and finally flying through a pink-purple fluffy nebula toward a colorful button sun."
}{
"aspect_ratio": "16:9",
"duration": 8,
"prompt": "3D animated short film, 8 seconds, dark fantasy theme, single shot, dimly lit stone-brick interior scene. A cold and strikingly handsome man with violet eyes, ink-blue hair with silver-streaked highlights in disarray, dark crystalline horns, pale cold skin, and dark purple astral magic runes covering his forehead and temples. He wears a polar-night blue brocade stand-collar trench coat over a black silk shirt, with a dark silver amethyst ear cuff on his left ear. Scene: Nighttime cold white moonlight as the dominant hard key light, high-contrast low-key lighting, front-side lighting effect. In the background, two blurry figures and warm yellow firelight flicker, with ethereal blue dust particles floating in the air. Camera: Medium close-up with a slight high-angle, shallow depth of field locked on the figure on the left, slowly tilting up to eye level during the monologue. Action: The man stands at an angle, head lowered with a contemptuous smile, glances at his palm then turns toward the camera, raises his head and speaks in a cold, magnetic voice: \"Ripe enough for the void.\" His left hand opens with five fingers spread, a dark shadow nebula vortex coalesces in his palm, and he says: \"Your soul, a mere spark for me to extinguish.\" He suddenly clenches his fist, the nebula explodes and dissipates into dark purple mist and ethereal blue star fragments, finally revealing a cruel smile as his dark-purple gradient fingernails subtly extend. Accompanied by void resonance sound effects and energy burst sounds, with a young English-speaking villain voice throughout."
}Write a scene and get back a 2–30 second, 30fps clip with matching dialogue, music, and sound effects. No images or reference media are needed. 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. |
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.
| 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.
At night a kitten trots along a wet rooftop; neon signs flicker across the city behind it. Low tracking shot that rises as it leaps a gap, soft rain and distant traffic.
Other Wan 3.0 Pro endpoints: alibaba/wan/3.0/pro/video (all modes in one schema), alibaba/wan/3.0/pro/image-to-video, alibaba/wan/3.0/pro/reference-to-video, alibaba/wan/3.0/pro/video-edit, alibaba/wan/3.0/pro/video-extend.
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": "alibaba/wan/3.0/pro/text-to-video",
"prompt": "A red panda walking through a bamboo forest at sunrise",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9",
"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"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.
seedintegerRandom seed (0-2147483647) for reproducible results. Omit for a random seed; the same seed may still produce slightly different results.
Minimo: 0
Massimo: 2147483647
promptstringobbligatorioText prompt for the generated video.
durationvaloreOutput 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.
Predefinito: 5
Valori possibili: "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
resolutionstringOutput resolution tier after FlashVSR super-resolution.
Predefinito: "1080p"
Valori possibili: "1080p", "2k", "4k"
aspect_ratiostringOutput aspect ratio. Defaults to 16:9.
Predefinito: "16:9"
Valori possibili: "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.
Predefinito: true
generate_audiobooleanGenerate a synchronized audio track. Pricing is the same either way.
Predefinito: true
{
"model": "alibaba/wan/3.0/pro/text-to-video",
"prompt": "A red panda walking through a bamboo forest at sunrise",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9",
"prompt_extend": true,
"generate_audio": true
}Un run completato espone il risultato in output. Quanto segue è l'esempio salvato del modello, non una nuova generazione.
[
{
"url": "https://static.sandbase.ai/examples/167cbca5-2467-4000-a5a2-6dc85346f7b4/output/52f06cd3-f757-4984-bf2e-146d4a7a72d5.mp4"
}
]