alibaba/wan/alpha
Wan Alpha is Alibaba's text-to-video AI model. Turn written scripts and prompts into professional-quality video clips with realistic motion, lighting, and scene composition.
Example output — click Run to generate your own
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
https://api.sandbase.ai/v1/runalibaba/wan/alphaInput Schema
10 parameters · 1 required · 9 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Required | The prompt to guide the video generation. |
fps | integer | Optional | The frame rate of the generated video. · Min: 1 · Max: 60 · Default: 16 |
seed | integer | Optional | The seed for the random number generator. |
resolution | string | Optional | The resolution of the generated video. · Options: 240p, 360p, 480p, 720p · Default: "480p" 240p360p480p720p |
aspect_ratio | string | Optional | The aspect ratio of the generated image. · Options: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16 21:916:93:24:35:41:14:53:42:39:16 |
binarize_mask | boolean | Optional | Whether to binarize the mask. · Default: false |
mask_clamp_lower | number | Optional | The lower bound of the mask clamping. · Min: 0 · Max: 1 · Default: 0.1 |
mask_clamp_upper | number | Optional | The upper bound of the mask clamping. · Min: 0 · Max: 1 · Default: 0.75 |
video_output_type | string | Optional | The output type of the generated video. · Options: X264 (.mp4), VP9 (.webm), PRORES4444 (.mov), GIF (.gif) · Default: "VP9 (.webm)" X264 (.mp4)VP9 (.webm)PRORES4444 (.mov)GIF (.gif) |
mask_binarization_threshold | number | Optional | The threshold for mask binarization. When binarize_mask is True, this threshold will be used to binarize the mask. This will also be used for transparency when the output type is `.webm`. · Min: 0 · Max: 1 · Default: 0.8 |
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
Code Examples
Ready-to-run snippets
# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "alibaba/wan/alpha",
"fps": 16,
"prompt": "Medium shot. A little girl holds a bubble wand and blows out colorful bubbles that float and pop in the air. The background of this video is transparent. Realistic style.",
"resolution": "480p",
"binarize_mask": false,
"mask_clamp_lower": 0.1,
"mask_clamp_upper": 0.75,
"video_output_type": "VP9 (.webm)",
"mask_binarization_threshold": 0.8
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"API README
Wan Alpha
Wan Alpha creates professional text-to-video clips from scripts and descriptive prompts, emphasizing realistic motion, lighting, and scene composition. It serves as an exploratory Wan generation model for converting narrative ideas into moving visual concepts without requiring a source image or reference clip.
Use a complete scene description with subject, action, environment, camera position, movement, time of day, lighting, and mood. It works best for concept development and cinematic ideation where the creator wants the model to invent the full visual world rather than preserve an existing asset.
Highlights
- Script-to-scene translation. Turns written narrative direction into a staged moving sequence.
- Realistic motion rendering. Produces subject and environmental movement intended to feel physically connected.
- Lighting-aware cinematography. Builds illumination and atmosphere into the generated scene rather than adding them as flat style labels.
- Composed visual storytelling. Coordinates subject placement, background, camera, and action into a readable shot.
Pricing
| Resolution | Price per generated second |
|---|---|
| 240p | $0.010 |
| 360p | $0.010 |
| 480p | $0.020 |
| 720p | $0.040 |
When to Use
| ✅ Good fit | ❌ Consider alternatives |
|---|---|
| The project needs this exact multimodal creation workflow | The intended task belongs to a different media route |
| Available source media matches every required field | Required assets or usage rights are unavailable |
| The brief can define subject, action, camera, and style | Output must be deterministic at frame or pixel level |
| Supported duration, resolution, and framing fit delivery | Final placement requires unsupported specifications |
| An asynchronous generation job fits production | A live or frame-synchronous response is mandatory |
Prompt Guide
Describe the result as a shot or design brief: identify subjects and references, state the action or transformation, specify environment and composition, then add camera behavior, lighting, pacing, style, sound, and preservation constraints where relevant. Use exact reference identifiers exposed by the local schema.
{
"fps": 16,
"prompt": "A cinematic scene with clearly directed subject action, camera movement, lighting, pacing, and atmosphere",
"resolution": "240p",
"seed": 1
}
Technical Specs
| Spec | Value |
|---|---|
| Model ID | alibaba/wan/alpha |
| Input fields | fps (integer; 1–60)<br>seed (integer)<br>prompt (string)<br>resolution (string; 240p, 360p, 480p, 720p)<br>aspect_ratio (string; 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16)<br>binarize_mask (boolean)<br>mask_clamp_lower (number; 0–1)<br>mask_clamp_upper (number; 0–1)<br>video_output_type (string; X264 (.mp4), VP9 (.webm), PRORES4444 (.mov), GIF (.gif))<br>mask_binarization_threshold (number; 0–1) |
| Required input | prompt |
| Output fields | url, content_type |
| Execution | Asynchronous job |
Related Models
alibaba/wan/2.1/flf-to-video— Compare this concrete local family route.alibaba/wan/2.1/image-to-video— Compare this concrete local family route.alibaba/wan/2.1/image-to-video/lora— Compare this concrete local family route.

