← All models
Wan 2.2's 5B model produces up to 5 seconds of video 720p at 24FPS with fluid motion and powerful prompt understanding
Example
Details
- Accepts
- text + image
Pricing
- Price
- 18.75 cr / video
Prices in credits (1 credit = $0.01).
Data schema
Input
| Field | Type | Description |
|---|---|---|
| seed | — | Random seed for reproducibility. If None, a random seed is chosen. |
| shift | number | Shift value for the video. Must be between 1.0 and 10.0. |
| promptrequired | string | The text prompt to guide video generation. |
| image_url | string | URL of the input image. If the input image does not match the chosen aspect ratio, it is resized and center cropped. |
| num_frames | integer | Number of frames to generate. Must be between 17 to 161 (inclusive). |
| resolution | stringenum: 580p, 720p | Resolution of the generated video (580p or 720p). |
| aspect_ratio | stringenum: auto, 16:9, 9:16, 1:1 | Aspect ratio of the generated video. If 'auto', the aspect ratio will be determined automatically based on the input image. |
| video_quality | stringenum: low, medium, high, maximum | The quality of the output video. Higher quality means better visual quality but larger file size. |
| guidance_scale | number | Classifier-free guidance scale. Higher values give better adherence to the prompt but may decrease quality. |
| negative_prompt | string | Negative prompt for video generation. |
| video_write_mode | stringenum: fast, balanced, small | The write mode of the output video. Faster write mode means faster results but larger file size, balanced write mode is a good compromise between speed and quality, and small write mode is the slowest but produces the smallest file size. |
| frames_per_second | — | Frames per second of the generated video. Must be between 4 to 60. When using interpolation and `adjust_fps_for_interpolation` is set to true (default true,) the final FPS will be multiplied by the number of interpolated frames plus one. For example, if the generated frames per second is 16 and the … |
| interpolator_model | stringenum: none, film, rife | The model to use for frame interpolation. If None, no interpolation is applied. |
| num_inference_steps | integer | Number of inference steps for sampling. Higher values give better quality but take longer. |
| enable_safety_checker | boolean | If set to true, input data will be checked for safety before processing. Disabling it requires account authorization; unauthorized requests are always checked. |
| enable_prompt_expansion | boolean | Whether to enable prompt expansion. This will use a large language model to expand the prompt with additional details while maintaining the original meaning. |
| num_interpolated_frames | integer | Number of frames to interpolate between each pair of generated frames. Must be between 0 and 4. |
| adjust_fps_for_interpolation | boolean | If true, the number of frames per second will be multiplied by the number of interpolated frames plus one. For example, if the generated frames per second is 16 and the number of interpolated frames is 1, the final frames per second will be 32. If false, the passed frames per second will be used as-… |
| enable_output_safety_checker | boolean | If set to true, output video will be checked for safety after generation. |
Output
| Field | Type | Description |
|---|---|---|
| seed | integer | The seed used for generation. |
| video | — | The generated video file. |
| prompt | string | The text prompt used for video generation. |