seedinteger
Random seed for reproducibility. If None, a random seed is chosen.
alibaba/wan/2.6/reference-to-video/flashWan 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.
Try the model
PNG, JPEG, WebP, or GIF · 20 MiB maximum each
Your output will appear here
Complete the inputs, then click Run.
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.
| Duration | Audio | 720p | 1080p |
|---|---|---|---|
| 5 seconds | on | $0.250 | $0.375 |
| 5 seconds | off | $0.125 | $0.188 |
| 10 seconds | on | $0.500 | $0.750 |
| 10 seconds | off | $0.250 | $0.375 |
When reference videos are supplied, Alibaba also bills their duration (capped at 5 seconds), so 5 seconds are added to the billed duration.
| ✅ 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 |
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"
]
}
| 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 |
alibaba/wan/2.6/reference-to-video — Compare this concrete local family route.alibaba/wan/2.6/text-to-image — Compare this concrete local family route.Start building
Submit this model through the SandBase Unified Run API.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"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
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Create a SandBase API key and set it in your server environment. All requests use Bearer authentication.
export SANDBASE_API_KEY="YOUR_API_KEY"Keep the key on your server. Do not expose it in browser code or commit it to a repository.
POST to /v1/run with this model ID and its inputs. The request example above includes submission and polling.
Use the returned run ID to poll until the status is completed, failed or timeout. Read output only after completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Pass a publicly accessible file URL in the model’s image, video or audio field. Supported formats and limits are shown beside each Playground input.
Use the upload or replace control on supported image fields in the Playground. Video URL fields accept a hosted driving video; they do not imply video-upload support.
seedintegerRandom seed for reproducibility. If None, a random seed is chosen.
imagesarrayReference 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.
promptstringrequiredUse 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.
videosarrayReference 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.
durationintegerDuration of the generated video in seconds. R2V Flash supports only 5 or 10 seconds.
Default: 5
Possible values: 5, 10
resolutionstringVideo resolution tier. R2V Flash only supports 720p and 1080p.
Default: "1080p"
Possible values: "720p", "1080p"
multi_shotsbooleanWhen 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_ratiostringThe aspect ratio of the generated image.
Possible values: "21:9", "16:9", "3:2", "4:3", "5:4", "1:1", "4:5", "3:4", "2:3", "9:16"
enable_audiobooleanWhether 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
{
"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
}A completed run exposes its result in output. The following is the model’s saved example, not a new generation.
No example output has been published yet. Use Playground → Result → JSON after a completed run to inspect your response.