alibaba/wan/2.6/reference-to-video/flash
Wan 2.6 Flash by Alibaba - AI-powered video editing and transformation. Apply style transfer, motion control, lip-sync, and visual effects to existing videos with natural language instructions.
PNG, JPEG, WebP, or GIF · 20 MiB maximum each
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/reference-to-video/flashInput Schema
9 parameters · 1 required · 8 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Required | Use Character1, Character2, etc. to reference subjects from your reference files. Works for people, animals, or objects. For multi-shot prompts: '[0-3s] Shot 1. [3-6s] Shot 2.' Max 1500 characters. Reference order: video_urls first, then image_urls. · Min length: 1 |
seed | integer | Optional | Random seed for reproducibility. If None, a random seed is chosen. |
images | string[] | Optional | Reference images for subject consistency (0-5 images). Combined with video_urls, total references cannot exceed 5. Formats: JPEG, JPG, PNG (no alpha), BMP, WEBP. Resolution: 240-5000px. Max 10MB each. Reference order: image_urls continue numbering after video_urls. |
videos | string[] | Optional | Reference videos for subject consistency (0-3 videos). Videos' FPS must be at least 16 FPS. Combined with image_urls, total references cannot exceed 5. Reference order: video_urls are numbered first (Character1, Character2...), then image_urls continue the sequence. |
duration | integer | Optional | Duration of the generated video in seconds. R2V Flash supports only 5 or 10 seconds. · Options: 5, 10 · Default: 5 510 |
resolution | string | Optional | Video resolution tier. R2V Flash only supports 720p and 1080p. · Options: 720p, 1080p · Default: "1080p" 720p1080p |
multi_shots | boolean | Optional | When true (default), enables intelligent multi-shot segmentation for coherent narrative videos with multiple shots. When false, generates single continuous shot. Only active when enable_prompt_expansion is True. · Default: true |
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 |
enable_audio | boolean | Optional | Whether to generate a video with audio. Set to false for silent video generation. Silent videos are faster and cost 25% of the audio version price. · Default: true |
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/reference-to-video/flash",
"images": [
"https://static.sandbase.ai/examples/alibaba/wan/2.6/reference-to-video/flash/input_images_0.png"
],
"prompt": "Dance battle between Character1 and Character2.",
"videos": [
"https://static.sandbase.ai/examples/alibaba/wan/2.6/reference-to-video/flash/input_videos_1.mp4"
],
"duration": 5,
"resolution": "1080p",
"multi_shots": true,
"enable_audio": true
}'
# 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 Reference to Video Flash
Wan 2.6 Reference to Video Flash delivers the faster Wan 2.6 character-reference workflow for short-form production. It preserves the core multi-character reference behavior while prioritizing turnaround, making repeated casting, staging, and interaction experiments practical before a slower final render is selected.
Use clear single-subject references, identify them consistently in the brief, and keep the interaction easy to stage. The Flash model suits social clips, dialogue blocking, mascot variations, and high-volume tests where subject identity matters but creative teams need more iterations within the same review window.
Highlights
- Rapid reference-character generation. Produces multi-character reference-led clips through a speed-optimized inference path.
- Mixed image and video casting. Accepts visual references that define the protagonists appearing in a new scene.
- Fast interaction prototyping. Lets teams compare actions, staging, and camera ideas without a long generation cycle.
- Optional silent creation. Can generate without sound when the moving picture will enter a separate audio workflow.
Pricing
| Duration | 720p | 1080p |
|---|---|---|
| 5 seconds | $0.500 | $0.750 |
| 10 seconds | $1.000 | $1.500 |
When to Use
| ✅ Good fit | ❌ Consider alternatives |
|---|---|
| The project needs this exact reference-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.
{
"images": [
"https://example.com/reference-1.png",
"https://example.com/reference-2.png"
],
"prompt": "A cinematic scene with clearly directed subject action, camera movement, lighting, pacing, and atmosphere",
"seed": 1,
"videos": [
"https://example.com/reference.mp4"
]
}
Technical Specs
| Spec | Value |
|---|---|
| Model ID | alibaba/wan/2.6/reference-to-video/flash |
| Input fields | seed (integer)<br>images (array)<br>prompt (string)<br>videos (array)<br>duration (integer; 5, 10)<br>resolution (string; 720p, 1080p)<br>multi_shots (boolean)<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>enable_audio (boolean) |
| Required input | prompt |
| Output fields | url, content_type |
| Execution | Asynchronous job |
Related Models
alibaba/wan/2.6/reference-to-video— Compare this concrete local family route.alibaba/wan/2.6— Compare this concrete local family route.alibaba/wan/2.6/edit— Compare this concrete local family route.

