Skip to content

Wan-2.1 First-Last-Frame-to-Video

Integrate

Model id wan-flf2v
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/wan-flf2v?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "end_image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.40 400 API credits Run it on this page

Get API key
Alibaba Image to Video up to 720p #image-to-video#motion

Wan 2.1 video generator that animates between a given first image and a last image

Made on Doitong

Public works made with Wan 2.1 by the Doitong community. Reuse a prompt in one click.

Public works shown: 2
Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scen... Video

Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scene takes place inside a modern passenger airplane during a daytime flight. Natural smartphone-like cinematography, realistic airplane cabin, authentic passengers, natural lighting, realistic skin...

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кух... Video

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кухне, мужчина — в комнате и прихожей. Атмосфера обычной советской семьи перед приходом гостей. Голоса: все персонажи говорят по-русски с естественным, выразительным одесским говором. Характерная...

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required

Text instructions that guide video generation.

•required start_image_url
Drop a file, or

Provide the starting image by URL; matching the selected aspect ratio requires resizing and cropping around the center whenever the image's ratio differs.

•required end_image_url
Drop a file, or

Provide the ending image by URL; matching the selected aspect ratio requires resizing and cropping around the center whenever the image's ratio differs.

resolution default 720p

Output video resolution, either 480p or 720p.

aspect_ratio default auto

Generated-video proportions, selected automatically from the input image when set to 'auto'.

default 81

Frame count for generation, ranging from 81 through 100 inclusive.

Advanced negative_prompt · acceleration · frames_per_second · num_inference_steps · guide_scale · shift · seed · enable_safety_checker · enable_prompt_expansion · loras
default bright colors, overex...

Negative prompt applied when generating a video.

acceleration default regular

Acceleration setting, with 'regular' as the recommended choice. Increasing acceleration sacrifices quality to shorten generation time.

default 16

Generated video's frame rate in frames per second, ranging from 5 to 24.

default 30

Sampling step count, trading longer processing time for better quality as the count increases.

default 5

Classifier-free guidance strength, trading possible quality loss for closer prompt matching as the scale increases.

default 5

Shift setting applied when generating video.

Seed that makes generation reproducible. Setting it to None selects a seed randomly.

default []

LoRA weights applied during inference.

POST /run/wan-flf2v?wait=20 quote → $0.40
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/wan-flf2v?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "end_image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Wan-2.1 First-Last-Frame-to-Video

Creates a clip that moves from `start_image_url` to `end_image_url`, guided by a `prompt`. Resolution is 480p or 720p, aspect ratio auto, 16:9, 9:16 or 1:1. `num_frames` is 81-100 and `frames_per_second` 5-24. Supports a `negative_prompt`, `seed`, guidance and step controls, and LoRA weights through `loras`.

Parameters

Send either the canonical name or the native name, not both. Canonical names

NameType DefaultAllowed Description
promptrequired
Typestring
Text instructions that guide video generation.
negative_promptoptional
Typestring
Defaultbright colors, overexposed, static, blurred details, subtitles, style, artwork, painting, picture, still, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, malformed limbs, fused fingers, still picture, cluttered background, three legs, many people in the background, walking backwards
Negative prompt applied when generating a video.
start_image_urlrequired image
Typeurl · image
Provide the starting image by URL; matching the selected aspect ratio requires resizing and cropping around the center whenever the image's ratio differs.
end_image_urlrequired end_image
Typeurl · image
Provide the ending image by URL; matching the selected aspect ratio requires resizing and cropping around the center whenever the image's ratio differs.
num_framesoptional
Typeinteger | null
Default81
81 – 100
Frame count for generation, ranging from 81 through 100 inclusive.
frames_per_secondoptional
Typeinteger | null
Default16
5 – 24
Generated video's frame rate in frames per second, ranging from 5 to 24.
seedoptional
Typeinteger | null
Seed that makes generation reproducible. Setting it to None selects a seed randomly.
resolutionoptional
Typeenum
Default720p
480p720p
Output video resolution, either 480p or 720p.
num_inference_stepsoptional
Typeinteger
Default30
2 – 40
Sampling step count, trading longer processing time for better quality as the count increases.
guide_scaleoptional
Typenumber
Default5
1 – 10
Classifier-free guidance strength, trading possible quality loss for closer prompt matching as the scale increases.
shiftoptional
Typenumber
Default5
1 – 10
Shift setting applied when generating video.
enable_safety_checkeroptional
Typeboolean
Defaultfalse
Safety-checking switch whose off setting requires account authorization. Without that authorization, every request is checked regardless of the setting; true enables the checker.
enable_prompt_expansionoptional
Typeboolean
Defaultfalse
Controls whether prompt expansion is enabled.
accelerationoptional
Typeenum
Defaultregular
noneregular
Acceleration setting, with 'regular' as the recommended choice. Increasing acceleration sacrifices quality to shorten generation time.
aspect_ratiooptional
Typeenum
Defaultauto
auto16:99:161:1
Generated-video proportions, selected automatically from the input image when set to 'auto'.
lorasoptional
Typeobject[]
Default[]
LoRA weights applied during inference.
loras[].pathrequired
Typestring
Location of the LoRA weights, specified as a URL or path.
loras[].weight_nameoptional
Typestring | null
LoRA weight name, required only when a Hugging Face repository contains more than 1 safetensors file. This name is used only when `path` identifies such a repository.
loras[].scaleoptional
Typenumber
Default1
0 – 4
Multiplier applied to the LoRA weight before it is merged into the base model.
required Canonical name, also accepted

File parameters take a public https:// URL, a data: URI up to 10 MB, or the file_url of an upload. Files

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-flf2v",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 400,
    "usd": "0.40",
    "charged": 400,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "start_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "end_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "seed": 42
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
video
object {url, content_type, file_name, file_size}Video file produced by generation.
seed
integerSeed value applied during generation.

More models: Image to Video

For AI agents: this page as Markdown is at https://doitong.com/developers/models/wan-flf2v.md. All models and guides: https://doitong.com/developers/llms.txt