infery
← All models

Wan v2.2 5B

wan-v2.2-5b-text-to-video

Video generationby Alibaba

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

FieldTypeDescription
seedRandom seed for reproducibility. If None, a random seed is chosen.
shiftnumberShift value for the video. Must be between 1.0 and 10.0.
promptrequiredstringThe text prompt to guide video generation.
image_urlstringURL of the input image. If the input image does not match the chosen aspect ratio, it is resized and center cropped.
num_framesintegerNumber of frames to generate. Must be between 17 to 161 (inclusive).
resolutionstringenum: 580p, 720pResolution of the generated video (580p or 720p).
aspect_ratiostringenum: auto, 16:9, 9:16, 1:1Aspect ratio of the generated video. If 'auto', the aspect ratio will be determined automatically based on the input image.
video_qualitystringenum: low, medium, high, maximumThe quality of the output video. Higher quality means better visual quality but larger file size.
guidance_scalenumberClassifier-free guidance scale. Higher values give better adherence to the prompt but may decrease quality.
negative_promptstringNegative prompt for video generation.
video_write_modestringenum: fast, balanced, smallThe 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_secondFrames 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_modelstringenum: none, film, rifeThe model to use for frame interpolation. If None, no interpolation is applied.
num_inference_stepsintegerNumber of inference steps for sampling. Higher values give better quality but take longer.
enable_safety_checkerbooleanIf set to true, input data will be checked for safety before processing. Disabling it requires account authorization; unauthorized requests are always checked.
enable_prompt_expansionbooleanWhether 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_framesintegerNumber of frames to interpolate between each pair of generated frames. Must be between 0 and 4.
adjust_fps_for_interpolationbooleanIf 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_checkerbooleanIf set to true, output video will be checked for safety after generation.

Output

FieldTypeDescription
seedintegerThe seed used for generation.
videoThe generated video file.
promptstringThe text prompt used for video generation.