Wan2.6
Wan2.6 is a multimodal video model for text to video and image to video generation with support for multi-shot sequencing and native sound. It emphasizes temporal stability, consistent visual structure across shots, and reliable alignment between visuals and audio in short form video generation.
API Options
Platform-level options for task execution and delivery.
-
taskType
string required value: videoInference -
Identifier for the type of task being performed
-
taskUUID
string required UUID v4 -
UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.
-
outputType
string default: URL -
Video output type.
Allowed values 1 value
-
outputFormat
string default: MP4 -
Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.
- `MP4`: Widely supported video container (H.264), recommended for general use.
- `WEBM`: Optimized for web delivery.
- `MOV`: QuickTime format, common in professional workflows (Apple ecosystem).
Allowed values 3 values
-
outputQuality
integer min: 20 max: 99 default: 95 -
Compression quality of the output. Higher values preserve quality but increase file size.
-
webhookURL
string URI -
Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.
Learn more 1 resource
- Webhooks PLATFORM
- Webhooks
-
deliveryMethod
string default: async -
Determines how the API delivers task results.
Allowed values 1 value
- Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse. Required for long-running tasks like video generation.
Learn more 1 resource
- Task Polling PLATFORM
-
uploadEndpoint
string URI -
Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.
Common use cases:
- Cloud storage: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- CDN integration: Upload to content delivery networks for immediate distribution.
// S3 presigned URL for secure upload https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600 // Google Cloud Storage presigned URL https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789 // Custom storage endpoint https://storage.example.com/uploads/generated-image.jpgThe content data will be sent as the request body to the specified URL when generation is complete.
-
safety
object -
Content safety checking configuration for video generation.
Properties 2 properties
-
safety»checkContentcheckContent
boolean default: false -
Enable or disable content safety checking. When enabled, defaults to
fastmode.
-
safety»modemode
string default: none -
Safety checking mode for video generation.
Allowed values 3 values
- Disables checking.
- Checks key frames.
- Checks all frames.
-
-
ttl
integer min: 60 -
Time-to-live (TTL) in seconds for generated content. Only applies when
outputTypeisURL.
-
includeCost
boolean default: false -
Include task cost in the response.
-
numberResults
integer min: 1 max: 4 default: 1 -
Number of results to generate. Each result uses a different seed, producing variations of the same parameters.
Inputs
Input resources for the task (images, audio, etc). These must be nested inside the inputs object.
inputs object.-
inputs»frameImagesframeImages
array of strings or objects items: 1 -
An array of frame-specific image inputs to guide video generation. Each item can be either a plain image input (UUID, URL, Data URI, or Base64) or an object that pairs an image with a target frame position.
The
frameImagesparameter allows you to constrain specific frames within the video sequence, ensuring that particular visual content appears at designated points. This is different fromreferenceImages, which provide overall visual guidance without constraining specific timeline positions.When the
frameparameter is omitted, automatic distribution rules apply:- 1 image: Used as the first frame.
Examples 2 examples
Shorthand format: When you don't need to specify a frame position, you can pass a plain image input directly.
"frameImages": [ "aac49721-1964-481a-ae78-8a4e29b91402" ]Object format: When you need to specify a frame position, use an object with
imageandframe."frameImages": [ { "image": "aac49721-1964-481a-ae78-8a4e29b91402", "frame": "first" } ]Format 1: string[]
-
Image input (UUID, URL, Data URI, or Base64).
Format 2: object[] 2 properties
-
inputs»referenceVideosreferenceVideos
array of strings min items: 1max items: 3 -
List of reference videos (UUID, URL).
-
inputs»audioaudio
string -
Audio input (UUID or URL).
Generation Parameters
Core parameters for controlling the generated content.
-
model
string required value: alibaba:wan@2.6 -
Identifier of the model to use for generation.
Learn more 3 resources
-
positivePrompt
string required min: 1 max: 1500 -
Text prompt describing elements to include in the generated output.
Learn more 2 resources
-
negativePrompt
string min: 1 max: 500 -
Prompt to guide what to exclude from generation. Ignored when guidance is disabled (CFGScale ≤ 1).
Learn more 1 resource
-
width
integer paired with height -
Width of the generated media in pixels.
Learn more 2 resources
-
height
integer paired with width -
Height of the generated media in pixels.
Learn more 2 resources
-
resolution
string -
Resolution preset for the output. When used with input media, automatically matches the aspect ratio from the input.
Allowed values 2 values
-
duration
float default: 5 -
Length of the generated video in seconds. The total number of frames produced is determined by duration multiplied by the model's frame rate (fps).
Allowed values 3 values
-
seed
integer min: 0 max: 2147483647 -
Random seed for reproducible generation. When not provided, a random seed is generated in the unsigned 32-bit range.
Provider Settings
Parameters specific to this model provider. These must be nested inside the providerSettings.alibaba object.
providerSettings.alibaba object.-
providerSettings»alibaba»audioaudio
boolean default: true -
Generate native audio aligned with visual content.
-
providerSettings»alibaba»promptExtendpromptExtend
boolean default: true -
Enable LLM-based prompt rewriting to expand and clarify inputs. Affects reproducibility.
-
providerSettings»alibaba»shotTypeshotType
string default: single -
Shot composition style.
Allowed values 2 values
- Continuous shot without transitions.
- Multiple shots with transitions.
Bioluminescent Cliffside Night Market
{
"taskType": "videoInference",
"taskUUID": "ab963ffc-af6b-4837-8428-d35d25105958",
"model": "alibaba:wan@2.6",
"positivePrompt": "A cinematic fantasy night market carved into steep ocean cliffs under a moonlit sky, glowing blue bioluminescent tide pools below, silk lanterns swaying in sea wind, vendors selling glass fish charms, steaming tea, and luminous coral crafts. Start with a wide aerial establishing shot drifting along the cliffside terraces and crashing waves, then transition to a medium shot moving through the crowd past hanging banners and wet stone steps, then a close-up of a young cartographer in a dark indigo coat opening a brass compass that projects a tiny holographic star map, then a final wider overlook revealing the entire market mirrored in the water. Highly detailed textures, stable character design, coherent geography between shots, natural motion, atmospheric mist, reflections, cinematic lighting, magical realism, immersive environmental audio with waves, distant chatter, soft chimes, footsteps on stone, fluttering fabric, and gentle market ambience.",
"negativePrompt": "low detail, blurry faces, extra limbs, duplicated people, distorted hands, inconsistent character appearance, chaotic camera motion, flicker, text overlays, subtitles, watermark, logo, frame glitches, harsh cuts, overexposed lighting, flat audio",
"width": 1920,
"height": 1080,
"duration": 10,
"seed": 52917,
"providerSettings": {
"alibaba": {
"promptExtend": true,
"audio": true,
"shotType": "multi"
}
}
}{
"taskType": "videoInference",
"taskUUID": "ab963ffc-af6b-4837-8428-d35d25105958",
"videoUUID": "05eca0b7-decf-4e1b-b194-0f38674fc6d8",
"videoURL": "https://vm.runware.ai/video/os/a18d05/ws/5/vi/05eca0b7-decf-4e1b-b194-0f38674fc6d8.mp4",
"seed": 52917,
"cost": 1.5033
}Moonlit Lantern Market Chase
{
"taskType": "videoInference",
"taskUUID": "f4ef18d8-d951-40d2-944a-58ed86955c4f",
"model": "alibaba:wan@2.6",
"positivePrompt": "Use the provided frame image as the opening frame. Create a tense, cinematic night-market pursuit sequence in an old riverside town. The courier in the crimson rain cape darts through the lantern-lit alley, weaving past food stalls and pedestrians as steam curls into the air. Keep the courier's appearance, cape color, parcel, and the striped cat consistent with the first frame. Begin with a close tracking shot from behind, then transition to a low angle side shot of splashing footsteps on wet stone, then a wider shot revealing the canal bridge and glowing lantern canopy. Fabric flutters, lanterns sway, puddles ripple, reflections shimmer, steam drifts naturally, and background figures react subtly. The striped cat briefly dashes across the path near the noodle cart. End on a dramatic pause beneath the bridge with distant footsteps echoing. Natural camera motion, strong temporal stability, coherent scene geography, realistic motion, cinematic contrast, suspenseful mood. Include native environmental audio: light rain, footsteps on wet stone, market chatter, sizzling food, fluttering fabric, clinking dishes, and soft lantern creaks.",
"negativePrompt": "flicker, identity drift, extra limbs, duplicate people, deformed hands, broken anatomy, warped faces, text, watermark, logo, jittery camera, abrupt scene changes, low detail, oversaturated colors, cartoon style, frozen motion, inconsistent lighting",
"width": 1280,
"height": 720,
"duration": 10,
"seed": 55007,
"providerSettings": {
"alibaba": {
"promptExtend": true,
"audio": true,
"shotType": "multi"
}
},
"inputs": {
"frameImages": [
{
"image": "https://assets.runware.ai/assets/inputs/ca6302bd-0242-4947-b632-b169b41ca0ee.jpg",
"frame": "first"
}
]
}
}{
"taskType": "videoInference",
"taskUUID": "f4ef18d8-d951-40d2-944a-58ed86955c4f",
"videoUUID": "bbca7f3f-225a-49b1-8f01-3bebbc8621eb",
"videoURL": "https://vm.runware.ai/video/os/a12d13/ws/5/vi/bbca7f3f-225a-49b1-8f01-3bebbc8621eb.mp4",
"seed": 55007,
"cost": 1.0022
}Rainy Neon Bazaar Chase
{
"taskType": "videoInference",
"taskUUID": "43de9fd6-1ada-42aa-8321-b928f5d8e92a",
"model": "alibaba:wan@2.6",
"positivePrompt": "Transform the reference motion into a vivid futuristic night bazaar in a monsoon-soaked megacity. Glowing teal and magenta shop lights reflect across wet stone, steam rises from food stalls, holographic fabric banners ripple overhead, a masked courier in a silver rain cape weaves through the crowd carrying a small luminous parcel. Preserve the forward momentum and realistic crowd flow from the reference video while restyling the environment into a dense cinematic sci-fi marketplace. Include layered depth, puddle splashes, drifting vapor, subtle lens bloom, expressive faces glimpsed in passing, and a tense but elegant atmosphere. Multi-shot feeling with clean transitions, consistent subject appearance, believable environmental motion, immersive native market ambience with footsteps, rain, distant voices, humming signage, and soft electronic music.",
"negativePrompt": "blurry subject, flicker, frame warping, duplicated people, deformed hands, unreadable faces, abrupt camera jumps, text overlays, subtitles, logos, watermark, low detail, oversaturated highlights, broken reflections, static scene",
"width": 1280,
"height": 720,
"duration": 10,
"seed": 76848,
"providerSettings": {
"alibaba": {
"promptExtend": true,
"audio": true,
"shotType": "multi"
}
},
"inputs": {
"referenceVideos": [
"https://assets.runware.ai/assets/inputs/822f2568-492c-48e7-a87e-cf69960644a3.mp4"
]
}
}{
"taskType": "videoInference",
"taskUUID": "43de9fd6-1ada-42aa-8321-b928f5d8e92a",
"videoUUID": "ac143936-e845-4c48-8805-10761b6754fc",
"videoURL": "https://vm.runware.ai/video/os/a16d07/ws/5/vi/ac143936-e845-4c48-8805-10761b6754fc.mp4",
"seed": 76848,
"cost": 1
}Steam-Era Clockwork Conservatory
{
"taskType": "videoInference",
"taskUUID": "518e65d1-6f7b-4381-8272-a855c9bdd643",
"model": "alibaba:wan@2.6",
"positivePrompt": "Inside a vast glass-roof conservatory filled with towering brass clockwork trees and suspended irrigation pipes, tiny mechanical birds flutter between hanging ferns while a young botanist in a weathered teal coat tends to a glowing amber seed pod. Multi-shot cinematic sequence: opening wide shot reveals the entire greenhouse with drifting steam and rotating gear assemblies; medium tracking shot follows the botanist walking along a narrow grated bridge above misty planters; close shot of gloved hands adjusting valves as droplets patter onto metal leaves; upward angle as the clockwork canopy slowly opens and warm morning sunlight pours through dusty glass; final wide shot of the whole conservatory awakening as birds chirp, gears turn, water hisses, and leaves unfurl in synchronized motion. Rich tactile detail, elegant mechanical design, believable physics, atmospheric depth, subtle lens behavior, cohesive color palette of brass, verdigris, fern green, and honey gold, emotionally wondrous and serene, highly stable character appearance and environment continuity.",
"negativePrompt": "text overlays, subtitles, watermark, logo, low detail, flicker, jitter, distorted anatomy, duplicate subjects, broken machinery, chaotic motion, horror, dark grim tone, oversaturated colors",
"width": 1920,
"height": 1080,
"duration": 10,
"seed": 92837,
"providerSettings": {
"alibaba": {
"promptExtend": true,
"audio": true,
"shotType": "multi"
}
}
}{
"taskType": "videoInference",
"taskUUID": "518e65d1-6f7b-4381-8272-a855c9bdd643",
"videoUUID": "6fd9bfda-dd41-4b45-aa70-bf0fca6a1d34",
"videoURL": "https://vm.runware.ai/video/os/a12d13/ws/5/vi/6fd9bfda-dd41-4b45-aa70-bf0fca6a1d34.mp4",
"seed": 92837,
"cost": 1.5033
}