Skip to content

Wan v2.2 5B · Text to Video

Integrate

Model id wan/v2.2-5b/text-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/text-to-video?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"
  }'

# 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 Text to Video up to 720p

Text-to-video with the 5B model: 580p or 720p, 16:9, 9:16 or 1:1, optional 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.

resolution default 720p

Output video resolution, either 580p or 720p.

aspect_ratio default 16:9

Output video's aspect ratio, either 16:9 or 9:16.

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/text-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/text-to-video?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"
  }'

# 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 · Text to Video

Creates a video clip from a text `prompt`. Length is set by `num_frames` (17 to 161) and `frames_per_second` (4 to 60), with `resolution` of 580p or 720p and aspect ratios 16:9, 9:16 or 1:1. Frame interpolation with film or rife can be enabled, and output quality and file write mode are adjustable. This is the standard-guidance variant with up to 50 inference steps.

Parameters

NameType DefaultAllowed Description
promptrequired
Typestring
Text instructions that guide video generation.
negative_promptoptional
Typestring
Default
Negative prompt applied when generating a video.
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.
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
Default16:9
16:99:161:1
Output video's aspect ratio, either 16:9 or 9:16.
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

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan/v2.2-5b/text-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"
  },
  "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": "A medium shot establishes a modern, minimalist office setting: clean lines, muted grey walls, and polished wood surfaces. The focus shifts to a close-up on a woman in sharp, navy blue business attire. Her crisp white blouse contrasts with the deep blue of her tailored suit jacket. The subtle texture of the fabric is visible—a fine weave with a slight sheen. Her expression is serious, yet engaging, as she speaks to someone unseen just beyond the frame. Close-up on her eyes, showing the intensity of her gaze and the fine lines around them that hint at experience and focus. Her lips are slightly parted, as if mid-sentence. The light catches the subtle highlights in her auburn hair, meticulously styled. Note the slight catch of light on the silver band of her watch. High resolution 4k",
    "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: Text to Video

For AI agents: this page as Markdown is at https://doitong.com/developers/models/wan/v2.2-5b/text-to-video.md. All models and guides: https://doitong.com/developers/llms.txt