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
| Mode | Size tier | 5s | 10s |
|---|---|---|---|
| Standard | Non-720p size | $0.30 | $0.45 |
| Fast | Non-720p size | $0.15 | $0.225 |
| Standard | 720p size (1280×720 / 720×1280) | $0.40 | $0.60 |
| Fast | 720p 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
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| first_image | string | Yes | - | - | URL of the starting image. |
| last_image | string | Yes | - | - | URL of the ending image. |
| prompt | string | No | - | ||
| negative_prompt | string | No | - | The negative prompt for the generation. | |
| duration | integer | No | 5 | 5 ~ 10 | The duration of the generated media in seconds. |
| size | string | No | 832*480 | 832*480, 480*832, 1280*720, 720*1280 | The size of the generated media in pixels (width*height). |
| num_inference_steps | integer | No | 30 | 1 ~ 40 | The number of inference steps to perform. |
| guidance_scale | number | No | 5 | 0.00 ~ 20.00 | The guidance scale to use for the generation. |
| seed | integer | No | -1 | -1 ~ 2147483647 | The random seed to use for the generation. -1 means a random seed will be used. |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Array of URLs to the generated content (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.has_nsfw_contents | array | Array of boolean values indicating NSFW detection for each output |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction, the ID of the prediction to get |
| data.model | string | Model ID used for the prediction |
| data.outputs | string | Array of URLs to the generated content (empty when status is not completed). |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |