SuperAPIAI Directory

Wan2.1

github.com · AI video

Alibaba's open-source video generation model — 14B parameters, self-hostable, Apache 2.0

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Wan2.1 is a set of open-source video foundation models from Alibaba, positioned as an open and advanced large-scale video generation tool. Its code, weights, and inference code are all publicly available, under the Apache 2.0 license, and it can be self-hosted. Its core capabilities include text-to-video, image-to-video, first-and-last-frame-to-video, video editing, text-to-image, and video-to-audio. It is officially claimed to consistently outperform existing open-source models and leading commercial solutions on multiple benchmarks.

In terms of model specifications, Wan2.1 offers multiple parameter versions such as 14B and 1.3B, and supports 480P and 720P resolutions. T2V-1.3B requires only 8.19 GB of VRAM and can generate a 5-second 480P video on an RTX 4090 in about 4 minutes (without using optimization methods such as quantization), making it relatively friendly to consumer-grade GPUs. Wan2.1 is the first video model capable of generating Chinese and English text. Its accompanying Wan-VAE can encode and decode 1080P videos of arbitrary length while preserving temporal information.

In terms of functions and tasks, text-to-video supports the 1.3B and 14B models; image-to-video supports the 14B model; first-and-last-frame-to-video supports the 14B model, currently only supports 720P, and because training is mainly based on Chinese text-video pairs, the official recommendation is to use Chinese prompts for better results. In terms of video editing, Wan2.1 VACE was released in May 2025 as an integrated video creation and editing model, providing inference code, weights, and a technical report, and supporting the 1.3B and 14B models and 480P and 720P resolutions. In addition, Wan2.1 has been integrated into Diffusers and ComfyUI, and a Gradio demo is provided.

In terms of usage, you first need to clone the repository and install dependencies, then download the model via huggingface-cli or modelscope-cli. For single-GPU inference, if you encounter insufficient VRAM, you can use the --offload_model True and --t5_cpu options to reduce VRAM usage. For T2V-1.3B, it is recommended to set --sample_guide_scale 6, and --sample_shift can be adjusted between 8 and 12. Multi-GPU inference uses FSDP and xDiT USP acceleration, supporting the Ulysses strategy (--ulysses_size) and the Ring strategy (--ring_size), and the two can also be combined; because the 1.3B model has num_heads of 12, which is not divisible by 8, the official recommendation is to use the Ring strategy.

Prompt extension can enrich the details of generated videos and improve quality. The official provides two methods: use the Dashscope API for extension, which requires applying for dashscope.api_key and configuring the environment variable DASH_API_KEY. International site users also need to set DASH_API_URL to https://dashscope-intl.aliyuncs.com/api/v1,文本生成视频使用 the qwen-plus model; image-to-video uses the qwen-vl-max model; local model extension can also be used, and by default it uses the Qwen model on HuggingFace. For text-to-video, you can use Qwen/Qwen2.5-14B-Instruct, Qwen/Qwen2.5-7B-Instruct, or Qwen/Qwen2.5-3B-Instruct. For image-to-video or first-and-last-frame-to-video, you can use Qwen/Qwen2.5-VL-7B-Instruct or Qwen/Qwen2.5-VL-3B-Instruct. Larger models provide better extension results but require more VRAM, and the model can be specified via --prompt_extend_model.

Applicable scenarios include research and development that requires self-hosted video generation capabilities, running text-to-video on consumer-grade GPUs, and needs for video editing and multi-task video generation. In terms of limitations, the 1.3B model has limited training at 720P, and result stability is usually not as good as at 480P, so the official recommendation is to use 480P; first-and-last-frame-to-video currently only supports 720P, and Chinese prompts are recommended; VACE input supports arbitrary resolutions, but for optimal results the video size needs to fall within a specific range; the Diffusers examples have not yet integrated prompt extension and distributed inference. Other information on fees, pricing, or platforms not explained in the materials is not currently provided.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools