SandBase is live — $1 in free credits on signupStart free ›

Alibaba modelsvideo generation api

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.

Input
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.

PNG, JPEG, WebP, or GIF · 20 MiB maximum each

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.
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.
Video resolution tier. R2V Flash only supports 720p and 1080p. Allowed values: 720p, 1080p.
Duration of the generated video in seconds. R2V Flash supports only 5 or 10 seconds. Allowed values: 5, 10.
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.
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.
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16.
Random seed for reproducibility. If None, a random seed is chosen.
Idle

Example output — click Run to generate your own

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

Duration720p1080p
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 workflowThe intended task belongs to a different media route
Available source media matches every required fieldRequired assets or usage rights are unavailable
The brief can define subject, action, camera, and styleOutput must be deterministic at frame or pixel level
Supported duration, resolution, and framing fit deliveryFinal placement requires unsupported specifications
An asynchronous generation job fits productionA 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

SpecValue
Model IDalibaba/wan/2.6/reference-to-video/flash
Input fieldsseed (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 inputprompt
Output fieldsurl, content_type
ExecutionAsynchronous job

Related Models

Related Models