Wan Flf2v

Wan Flf2v

Playground

Try it on WavespeedAI!

Wan-2.1 FLF2V converts a start and end frame into a smooth, coherent video sequence, bridging frames with realistic motion transitions. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

Features

Wan FLF2V — wavespeed-ai/wan-flf2v

Wan FLF2V is a first-last-frame-to-video model that generates a short video by interpolating a coherent motion path between a first_image and a last_image, guided by an optional text prompt. Provide the starting frame and the ending frame, then describe what happens in between (e.g., a transformation, assembly, reveal, or scene change). The model produces a smooth transition clip while keeping the beginning and ending states aligned with your provided frames.

Key capabilities

  • First-last-frame guided video generation (first_image → last_image)
  • Prompt-guided in-between action and transformation logic
  • Supports negative_prompt to reduce artifacts and unwanted motion
  • Size selection for different output resolutions
  • Seed control for reproducible results

Use cases

  • Transformation sequences (frame → completed object, sketch → final render)
  • Product assembly and reveal animations (parts → finished product)
  • Before/after transitions (makeover, restoration, environment change)
  • Visual storytelling between two keyframes for ads and social
  • Storyboard “in-betweening” from a first and last shot

Pricing

ModeSize tier5s10s
StandardNon-720p size$0.30$0.45
FastNon-720p size$0.15$0.225
Standard720p size (1280×720 / 720×1280)$0.40$0.60
Fast720p size (1280×720 / 720×1280)$0.25$0.375

Inputs

  • first_image (required): starting frame
  • last_image (required): ending frame
  • prompt (optional): describe the transition and what happens in between
  • negative_prompt (optional): what to avoid (blur, jitter, distortion, artifacts)

Parameters

  • duration: video length in seconds
  • size: output resolution selection (e.g., 832×480)
  • num_inference_steps: sampling steps
  • guidance_scale: prompt adherence strength
  • seed: random seed (-1 for random; fixed value for reproducible results)

Prompting guide (FLF2V)

A good prompt explains how the first becomes the last:

Template: Fixed camera. Start exactly from the first image and end exactly at the last image. In between, show [mechanism] smoothly and coherently. No flicker, no warping.

Example prompts

  • Transform the car frame into a complete vehicle. Parts assemble step-by-step, bolts tighten, panels slide into place, paint and reflections appear gradually, cinematic lighting, smooth motion, fixed camera.
  • A rough clay sculpture becomes a polished ceramic statue, cracks heal, glaze forms, subtle dust motes, steady camera, seamless transition.
  • A bare room becomes fully furnished, objects slide into place naturally, lighting stays consistent, no jitter.

Authentication

For authentication details, please refer to the Authentication Guide.

API Endpoints

Submit Task & Query Result


# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/wan-flf2v" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
    "duration": 5,
    "size": "832*480",
    "num_inference_steps": 30,
    "guidance_scale": 5,
    "seed": -1
}'

# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"

Parameters

Task Submission Parameters

Request Parameters

ParameterTypeRequiredDefaultRangeDescription
first_imagestringYes--URL of the starting image.
last_imagestringYes--URL of the ending image.
promptstringNo-
negative_promptstringNo-The negative prompt for the generation.
durationintegerNo55 ~ 10The duration of the generated media in seconds.
sizestringNo832*480832*480, 480*832, 1280*720, 720*1280The size of the generated media in pixels (width*height).
num_inference_stepsintegerNo301 ~ 40The number of inference steps to perform.
guidance_scalenumberNo50.00 ~ 20.00The guidance scale to use for the generation.
seedintegerNo-1-1 ~ 2147483647The random seed to use for the generation. -1 means a random seed will be used.

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
data.idstringUnique identifier for the prediction, Task Id
data.modelstringModel ID used for the prediction
data.outputsarrayArray of URLs to the generated content (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.has_nsfw_contentsarrayArray of boolean values indicating NSFW detection for each output
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds

Result Request Parameters

ParameterTypeRequiredDefaultDescription
idstringYes-Task ID

Result Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
dataobjectThe prediction data object containing all details
data.idstringUnique identifier for the prediction, the ID of the prediction to get
data.modelstringModel ID used for the prediction
data.outputsstringArray of URLs to the generated content (empty when status is not completed).
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds
© 2025 WaveSpeedAI. All rights reserved.