alibaba/wan/2.6/text-to-video
Alibaba Wan 2.6 text-to-video model with cinematic visuals, configurable duration (5 or 10 seconds) and resolution.
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/2.6/text-to-videoInput Schema
5 parameters · 1 required · 4 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Required | The text prompt to generate a video from. · Min length: 3 · Max length: 50000 · Default: "Rim light, low contrast, medium close-up, daylight, left-weighted composition, clean single-person shot, warm tones, soft light, sunny day, side light, daytime. A young girl sits in a field of tall grass, with two fluffy little donkeys standing behind her. The girl is about eleven or twelve, wearing a simple floral dress, hair in two braids, with an innocent smile. She sits cross-legged, gently playing with wildflowers beside her. The donkeys are sturdy with perked ears, curiously looking toward the camera. Sunlight bathes the field, creating a warm and natural atmosphere." |
audio | string | Optional | The URL of an audio file to guide video generation. |
duration | integer | Optional | The duration of the generated video in seconds. Valid values are 5 and 10. · Options: 5, 10 · Default: 5 510 |
resolution | string | Optional | The resolution of the video to generate. · Options: 720p, 1080p · Default: "720p" 720p1080p |
aspect_ratio | string | Optional | The aspect ratio of the generated video. · Options: 1:1, 4:3, 3:4, 16:9, 9:16 · Default: "16:9" 1:14:33:416:99: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/2.6/text-to-video",
"prompt": "Rim light, low contrast, medium close-up, daylight, left-weighted composition, clean single-person shot, warm tones, soft light, sunny day, side light, daytime. A young girl sits in a field of tall grass, with two fluffy little donkeys standing behind her. The girl is about eleven or twelve, wearing a simple floral dress, hair in two braids, with an innocent smile. She sits cross-legged, gently playing with wildflowers beside her. The donkeys are sturdy with perked ears, curiously looking toward the camera. Sunlight bathes the field, creating a warm and natural atmosphere.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9"
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"API README
Wan 2.6 Text to Video
Wan 2.6 Text to Video turns a written production brief into a complete Wan 2.6 audiovisual scene. The model handles subject motion, environmental action, camera language, shot progression, and sound together, allowing a script-like prompt to guide both what happens and how the sequence is presented.
Write the prompt as a timed scene rather than a list of visual nouns: establish the subject and location, then specify action beats, shot changes, camera movement, dialogue or effects, lighting, and emotional arc. It is well suited to concept trailers, advertising scenes, narrative inserts, and cinematic previsualization.
Highlights
- Audio-synchronized scene generation. Creates visible action and a coordinated soundtrack within the same video synthesis process.
- Multi-shot narrative reasoning. Interprets a sequence of shots and transitions as one connected creative idea.
- Natural subject interaction. Models people, objects, and environment participating in physically plausible movement.
- Cinematic prompt interpretation. Responds to framing, lens behavior, camera motion, pacing, lighting, and atmosphere.
Pricing
| Configuration | Billing unit | Price |
|---|---|---|
| 5 seconds | 720p | $0.500 |
| 5 seconds | 1080p | $0.750 |
| 10 seconds | 720p | $1.000 |
| 10 seconds | 1080p | $1.500 |
When to Use
| ✅ Good fit | ❌ Consider alternatives |
|---|---|
| The project needs this exact text-to-video 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.
{
"audio": "example",
"duration": 5,
"prompt": "Rim light, low contrast, medium close-up, daylight, left-weighted composition, clean single-person shot, warm tones, soft light, sunny day, side light, daytime. A young girl sits in a field of tall grass, with two fluffy little donkeys standing behind her. The girl is about eleven or twelve, wearing a simple floral dress, hair in two braids, with an innocent smile. She sits cross-legged, gently playing with wildflowers beside her. The donkeys are sturdy with perked ears, curiously looking toward the camera. Sunlight bathes the field, creating a warm and natural atmosphere.",
"resolution": "720p"
}
Technical Specs
| Spec | Value |
|---|---|
| Model ID | alibaba/wan/2.6/text-to-video |
| Input fields | audio (string)<br>prompt (string)<br>duration (integer; 5, 10)<br>resolution (string; 720p, 1080p)<br>aspect_ratio (string; 1:1, 4:3, 3:4, 16:9, 9:16) |
| Required input | prompt |
| Output fields | url, content_type |
| Execution | Asynchronous job |
Related Models
alibaba/wan/2.6— Compare this concrete local family route.alibaba/wan/2.6/edit— Compare this concrete local family route.alibaba/wan/2.6/image-to-video— Compare this concrete local family route.

