alibaba/wan/3.0/prime/video
Wan 3.0 Prime by Alibaba - animate still images into dynamic videos with AI. Transform photos into cinematic clips with natural motion and camera movement.
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/prime/videoInput Schema
6 parameters · 2 required · 4 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
media | object[] | Required | — |
prompt | string | Required | Text prompt describing the motion to generate. · Max length: 5000 |
seed | integer | Optional | Min: 0 · Max: 2147483647 |
duration | integer | Optional | Output duration in seconds. Set to null for smart duration, which lets the model pick a length from the prompt and reference media. · Min: 2 · Max: 30 · Default: 5 |
resolution | string | Optional | Output video resolution tier. · Options: 480p, 720p, 1080p · Default: "1080p" 480p720p1080p |
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 |
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/prime/video",
"duration": 5,
"resolution": "1080p",
"prompt": "a beautiful sunset over mountains"
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"API README
Alibaba Wan 3.0 Prime Image-to-Video
Animate a still image with the Prime variant. Describe the motion and camera direction in text while the supplied frame anchors the subject, composition, and visual style.
Good fit
- Motion previews from product, character, or artwork stills
- First-frame/last-frame transitions and short loops
- Iterating on motion direction before a final render
Input guide
Provide prompt plus at least one typed media object {type, url}. Use first_frame or last_frame for frame control, or reference_image for looser visual guidance. Prompt the movement, expression, camera, and environment; do not rely on a bare “animate this” instruction. duration accepts 2–30 seconds (default 5), resolution is 480p/720p/1080p (default 1080p). prompt is a string and required, with a maximum of 5,000 characters. resolution is an enum: 480p, 720p, or 1080p (default 1080p). duration is an integer from 2 to 30 (default 5). aspect_ratio is an enum: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, or 9:16. seed is optional and must be an integer from 0 to 2,147,483,647.
Output and pricing
The asynchronous task returns a downloadable video URL and may include its content type. Prime is billed by output duration and tier: $0.075/second at 480p, $0.15 at 720p, or $0.30 at 1080p. The default 5-second 1080p result costs $1.50; aspect ratio.

