by Alibaba

Wan 2.6 Flash reference to video API: cast people and objects from up to 5 photos or short clips into a new 2 to 10 s scene, 720p or 1080p, optional audio.

alibaba/wan-2.6-flash/reference-to-video
Wan 2.6 Flash Image to Video AI online
  • Up to 1080p
  • 2–10s clips
  • Sound included
  • Up to 5 reference images
  • 5 aspect ratios
  • Image to Video
  • Reference to Video

About Wan 2.6 Flash

Wan 2.6 Flash reference to video casts up to five references, no more than three of them clips, into a new scene with a required prompt.

Call it with the model name alibaba/wan-2.6-flash/reference-to-video on POST /jobs/createTask, from $0.1125.

Introduction

Send up to five references, up to three of them short clips and the rest still images, or stills alone; location, action, camera and light all come from the prompt. The result runs any whole number of seconds from 2 to 10, at 720p or 1080p, in one of five aspect ratios, as one continuous take or a multi-shot edit. Clips are silent by default; switch generate_audio on when the scene needs its own soundtrack.

Choose a Wan 2.6 Flash mode by starting material

What you have at the startMode
an approved opening frameWan 2.6 Flash Image to video
photos or short clips of the people and objects to castWan 2.6 Flash Reference to video

Key features

Cast from stills, clips, or both

reference_image_urls takes up to five stills and reference_video_urls up to three short clips, five references in total.

The prompt names the cast

Wan identifies each reference only through the names character1, character2 and so on, in order: clips first, then stills. Name each one before describing what they do, for example character1 dancing with character2, and the model knows who is who. Everything else — the set, the action, the camera and the light — is written, so a person photographed once can be placed on a rooftop at night or a rain-soaked quay without a second shoot.

Sound as a switch, shape as a parameter

generate_audio is off by default and returns picture only; on, the clip comes back with generated voices, effects and ambience at twice the per-second rate. aspect_ratio is chosen per request: 16:9, 9:16, 1:1, 4:3 or 3:4 at either resolution. 720p returns 1280×720, 720×1280, 960×960, 1088×832 or 832×1088; 1080p returns 1920×1080, 1080×1920, 1440×1440, 1632×1248 or 1248×1632. Nothing is inherited from the references, so a vertical delivery does not need vertical sources.

Request parameters

ParameterRequiredDescription
aspect_ratioNoThe shape of the frame: wide, square or tall. 16:9 · 9:16 · 1:1 · 4:3 · 3:4 · Default: 16:9
duration_secondsNoLength of the generated clip. ≥ 2 · ≤ 10 · Default: 5
enable_prompt_expansionNoLets the model add detail to a short prompt. Default: false
generate_audioNoAdds sound made to match the picture: voices, ambience and effects. Default: false
negative_promptNoThings you don't want to see.
promptYesDescribe what you want to make.
reference_image_urlsNoPictures of the people, outfits or places the result should keep.
reference_video_urlsNoClips whose motion, camera or style the result should follow.
resolutionNoChoose an available output size. 720p · 1080p · Default: 720p
seedNoUse the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647
shot_typeNoOne continuous shot, or let the model cut it into several shots. single · multi · Default: single

Pricing

Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

OptionUSD per second
generate_audio false · resolution 720p$0.0225
generate_audio false · resolution 1080p$0.03375
generate_audio true · resolution 720p$0.045
generate_audio true · resolution 1080p$0.0675

Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.

Use cases

Put two people in one scene

A portrait of each person, then a prompt for where they are and what passes between them.

Move a subject into a new location

A short clip or a still of the person, then the new set, the light and the camera move. The look comes from the reference while the location is written, so one shoot supplies footage for places that were never available on the day.

Prompt guide & pro tips

Name every reference before the action

Name each reference in the prompt, then describe the action, camera and light. Re-describing what the references already show takes up space and can compete with them. Use negative_prompt for what keeps turning up and should not: extra people, captions, or a prop that follows a subject into the new scene.

Pick references the model can read

Stills and clips where the subject is large in frame and well lit transfer best; a subject that stays small or backlit tends to come back only approximately. Stills carry colour and look well, while shape and motion come through more faithfully from a clip. Send images as JPEG, PNG without transparency, BMP or WEBP, 240 to 8,000 pixels on each side and up to 20 MB, and clips as MP4 or MOV.

Budget the seconds before you submit

Billable seconds are the output duration plus the reference clips, each rounded up to whole seconds and at least one second per clip, with the clips counted up to five seconds in total; still images add nothing. The rate follows the resolution and doubles with generate_audio on.

Adapt the included example

Start from the rooftop example: two stills in reference_image_urls, aspect_ratio 16:9, duration_seconds 5, resolution 720p and generate_audio on. Replace the cast and the staging while keeping that input contract intact.

Check the result before iterating

Play the whole clip rather than the first second: likeness tends to drift towards the end of the longer durations. multi mostly pays off from about 6 seconds upward, and choosing it also switches enable_prompt_expansion on for that request. Hold the seed and swap one reference at a time when comparing; it keeps the random draw constant without promising a frame-identical rerun.

API quick start

Call the Wan 2.6 Flash API in three steps

  1. Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
  2. Send the request. POST /jobs/createTask with model alibaba/wan-2.6-flash/reference-to-video and an input object that follows the parameter table. The response returns a task ID straight away.
  3. Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
  "model": "alibaba/wan-2.6-flash/reference-to-video",
  "input": {
    "prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
    "reference_video_urls": [
      "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4"
    ],
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "duration_seconds": 5,
    "shot_type": "single"
  }
}'

# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.

About the Wan 2.6 Flash Reference to Video endpoint

It takes an aspect_ratio, unlike image to video, and supports multi-shot.

Use it to put two people from two separate portraits into one setting.

Wan 2.6 Flash API questions

How much does the Wan 2.6 Flash API cost?

Wan 2.6 Flash starts at $0.1125 for a 5-second clip with Reference to Video, its lowest-priced task. Prices by option: false · 720p $0.0225 per second, false · 1080p $0.03375 per second, true · 720p $0.045 per second, true · 1080p $0.0675 per second. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

What are the limits of the Wan 2.6 Flash · Reference to Video API?

Clip length: 2–10 s; Resolutions: 720p · 1080p; Aspect ratios: 16:9 · 9:16 · 1:1 · 4:3 · 3:4; Reference images: 5; Reference videos: 3. Requests outside these limits are rejected before anything is charged.

More about Wan 2.6 Flash