alibaba/wan/3.0/video
Alibaba Wan 3.0 Video generates videos up to 30 seconds from text and unified image, video, audio, file, or link media inputs.
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/3.0/videoInput Schema
8 parameters · 1 required · 7 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Required | Text instruction for the generated video. · Min length: 3 · Max length: 50000 · Default: "A cinematic tracking shot of a sailboat crossing a glowing sea at sunset" |
seed | integer | Optional | Random seed for reproducible generation. · Min: 0 · Max: 2147483647 |
audio | boolean | Optional | Generate synchronized audio with the video. · Default: true |
media | object[] | Optional | Optional unified media inputs. Alibaba accepts prompt or media; prompt remains required in this schema for compatibility. |
duration | integer | Optional | Output duration in seconds, from 2 to 30 seconds. · Min: 2 · Max: 30 · Default: 5 |
watermark | boolean | Optional | Add an Alibaba watermark to the output. · Default: false |
resolution | string | Optional | Output video resolution. · Options: 480p, 720p, 1080p · Default: "720p" 480p720p1080p |
aspect_ratio | string | Optional | Output ratio; adaptive lets the model choose from the inputs. · Options: adaptive, 16:9, 9:16, 1:1, 4:3, 3:4 · Default: "adaptive" adaptive16:99:161:14:33:4 |
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/3.0/video",
"audio": true,
"prompt": "A cinematic tracking shot of a sailboat crossing a glowing sea at sunset",
"duration": 5,
"watermark": false,
"resolution": "720p",
"aspect_ratio": "adaptive"
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"API README
Wan 3.0 Video
alibaba/wan/3.0/video is Alibaba's generally available Wan 3.0 video generation model. It accepts a prompt and an optional unified media array containing typed image, video, audio, file, or link URLs, and generates video from 2 to 30 seconds.
Request
Required by the SandBase compatibility schema: prompt. Alibaba accepts at least one of prompt or media. Optional fields are media, resolution, aspect_ratio, duration, audio, seed, and watermark; all are forwarded to the official DashScope contract.
Pricing
Alibaba's official Beijing-region price is CNY 0.30/second at 480P, CNY 0.60/second at 720P, and CNY 1.20/second at 1080P. SandBase model-card prices are denominated in USD, so this card uses an explicit fixed conversion of CNY 7.20 = USD 1.00: USD 0.0416666667/second at 480p, USD 0.0833333333/second at 720p, and USD 0.1666666667/second at 1080p. The 5-second default at 720p is USD 0.4166666665.
Formula: (duration ?? 5) * (resolution == 1080p ? 0.1666666667 : resolution == 480p ? 0.0416666667 : 0.0833333333).
Technical Specs
- Upstream model:
wan3.0-video - Media types: first_frame, last_frame, reference_image, reference_video, reference_audio, file, link
- Resolution: 480p, 720p, 1080p
- Aspect ratio: adaptive, 16:9, 9:16, 1:1, 4:3, 3:4
- Duration: 2–30 seconds
- Audio generation: enabled by default
- Execution: asynchronous submit and poll via official DashScope URLs

