Skip to content

Wan v2.2 5B · Image to Video

Integrate

Model id wan/v2.2-5b/image-to-video
# 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/v2.2-5b/image-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# 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.15 150 API credits Run it on this page

Get API key
Alibaba Image to Video up to 720p

Wan 2.2 5B image-to-video with flexible frame counts, 580p or 720p, and frame interpolation

Made on Doitong

Public works made with Wan v22 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 image_url
Drop a file, or

Source image URL, with the selected aspect ratio determining whether preprocessing is needed: a mismatch triggers resizing followed by a center crop.

resolution default 720p

Output video resolution, either 580p or 720p.

aspect_ratio default auto

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

Advanced negative_prompt · interpolator_model · video_quality · video_write_mode · num_frames · frames_per_second · num_inference_steps · guidance_scale · shift · num_interpolated_frames · seed · enable_safety_checker · enable_output_safety_checker · enable_prompt_expansion · adjust_fps_for_interpolation
default

Negative prompt applied when generating a video.

interpolator_model default film

Frame interpolation setting: choose None to skip interpolation, or specify the model to perform it.

video_quality default high

Output video quality setting that trades larger files for improved visuals as the setting increases.

video_write_mode default balanced

Video writing mode, with balanced offering a compromise between speed and quality. Choose small for the smallest files and slowest writing; faster writing returns results sooner but creates larger files.

default 81

Frame count for generation, with an inclusive range of 17–161.

default 24

Generated video frame rate, accepting values from 4 to 60; setting `adjust_fps_for_interpolation` to false preserves this rate unchanged. With interpolation in use and `adjust_fps_for_interpolation` true (its default), multiply this rate by one plus the interpolated frame count to obtain the final FPS. For example, 16 FPS with 1 interpolated frame becomes 32 FPS.

default 40

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

default 3.5

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

default 5

Video shift setting, with an allowed range of 1.0–10.0.

default 0

Insert 0–4 interpolated frames into every gap between two generated frames.

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

POST /run/wan/v2.2-5b/image-to-video?wait=20 quote → $0.15
# 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/v2.2-5b/image-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# 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 v2.2 5B · Image to Video

Animates an image (`image_url`) from a text `prompt`. `num_frames` ranges from 17 to 161 and `frames_per_second` from 4 to 60, at 580p or 720p. Aspect ratio can be auto, 16:9, 9:16 or 1:1. Frame interpolation uses film or rife, adding 0 to 4 frames between each pair, and `video_quality` and `video_write_mode` control encoding.

Parameters

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

NameType DefaultAllowed Description
image_urlrequired image
Typeurl · image
Source image URL, with the selected aspect ratio determining whether preprocessing is needed: a mismatch triggers resizing followed by a center crop.
promptrequired
Typestring
Text instructions that guide video generation.
num_framesoptional
Typeinteger
Default81
17 – 161
Frame count for generation, with an inclusive range of 17–161.
frames_per_secondoptional
Typeinteger | null
Default24
4 – 60
Generated video frame rate, accepting values from 4 to 60; setting `adjust_fps_for_interpolation` to false preserves this rate unchanged. With interpolation in use and `adjust_fps_for_interpolation` true (its default), multiply this rate by one plus the interpolated frame count to obtain the final FPS. For example, 16 FPS with 1 interpolated frame becomes 32 FPS.
negative_promptoptional
Typestring
Default
Negative prompt applied when generating a video.
seedoptional
Typeinteger | null
Seed that makes generation reproducible. Setting it to None selects a seed randomly.
resolutionoptional
Typeenum
Default720p
580p720p
Output video resolution, either 580p or 720p.
aspect_ratiooptional
Typeenum
Defaultauto
auto16:99:161:1
Generated-video proportions, selected automatically from the input image when set to 'auto'.
num_inference_stepsoptional
Typeinteger
Default40
2 – 50
Sampling step count, trading longer processing time for better quality as the count increases.
enable_safety_checkeroptional
Typeboolean
Defaultfalse
Input safety screening before processing, which only authorized accounts may turn off. Requests lacking authorization are always screened; otherwise, true enables screening.
enable_output_safety_checkeroptional
Typeboolean
Defaultfalse
Controls safety screening of the generated video; setting true enables a check after generation.
enable_prompt_expansionoptional
Typeboolean
Defaultfalse
Allow a large language model to enrich the prompt with details. Enabling this expansion leaves the prompt's meaning unchanged.
guidance_scaleoptional
Typenumber
Default3.5
1 – 10
Classifier-free guidance strength, trading possible quality loss for closer prompt matching as the scale increases.
shiftoptional
Typenumber
Default5
1 – 10
Video shift setting, with an allowed range of 1.0–10.0.
interpolator_modeloptional
Typeenum
Defaultfilm
nonefilmrife
Frame interpolation setting: choose None to skip interpolation, or specify the model to perform it.
num_interpolated_framesoptional
Typeinteger
Default0
0 – 4
Insert 0–4 interpolated frames into every gap between two generated frames.
adjust_fps_for_interpolationoptional
Typeboolean
Defaulttrue
Frame-rate adjustment toggle: false preserves the supplied FPS, whereas true scales it by one plus the interpolated frame count. Thus, 16 FPS becomes 32 FPS when 1 frame is interpolated and adjustment is enabled.
video_qualityoptional
Typeenum
Defaulthigh
lowmediumhighmaximum
Output video quality setting that trades larger files for improved visuals as the setting increases.
video_write_modeoptional
Typeenum
Defaultbalanced
fastbalancedsmall
Video writing mode, with balanced offering a compromise between speed and quality. Choose small for the smallest files and slowest writing; faster writing returns results sooner but creates larger files.
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/v2.2-5b/image-to-video",
  "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": 150,
    "usd": "0.15",
    "charged": 150,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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
    },
    "prompt": "The white dragon warrior stands still, eyes full of determination and strength. The camera slowly moves closer or circles around the warrior, highlighting the powerful presence and heroic spirit of the character.",
    "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.
prompt
stringText prompt used to generate the video.
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/v2.2-5b/image-to-video.md. All models and guides: https://doitong.com/developers/llms.txt