Skip to main content

wan2video

Generate videos using Wan2.2 TI2V (Text+Image to Video) 5B model with GGUF quantization and GPU acceleration.

Quick Start

# Install and run (requires sd-cli in PATH)
uvx wan2video "a cat walking on the grass, sunny day"

# Or install first
pip install wan2video
wan2video "a beautiful sunset over the ocean"

Prerequisites

  • NVIDIA GPU with CUDA support (12GB+ VRAM recommended)
  • stable-diffusion.cpp compiled with CUDA (sd-cli in PATH)
  • ffmpeg (for mp4 output)

Setup sd-cli

wan2video setup

Or compile manually:

git clone --recurse-submodules https://github.com/leejet/stable-diffusion.cpp
cd stable-diffusion.cpp && mkdir build && cd build
cmake .. -DSD_CUBLAS=ON -DGGML_CUDA=ON
make -j
# Add build/bin/sd-cli to your PATH

Usage

# Text to video (480x320, 2 seconds)
wan2video "your prompt here"

# 720p video
wan2video "prompt" -W 1280 -H 720

# 1080p video
wan2video "prompt" -W 1920 -H 1080

# Image to video
wan2video "prompt describing motion" -i input.jpg

# More frames (5 seconds)
wan2video "prompt" -f 81

# Custom output
wan2video "prompt" -o my_video.mp4 --steps 30 --seed -1

Options

Option Default Description
-W/--width 480 Video width
-H/--height 320 Video height
-f/--frames 33 Frames (33≈2s, 81≈5s)
-s/--steps 20 Sampling steps
--cfg-scale 7.0 CFG guidance scale
--seed 42 Random seed (-1 for random)
-i/--image None Input image for I2V
-o/--output output.mp4 Output file path

Performance (RTX 4070 Ti 12GB)

Resolution Frames Time
480x320 33 ~16s
1280x720 33 ~2.5min
1920x1080 33 ~9min

License

MIT

Metadata

Release files for wan2video 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wan2video 0.1.1
File Size Uploaded Provenance
wan2video-0.1.1.tar.gz 20.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for wan2video 0.1.1
File Interpreter ABI Platform
wan2video-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 27.5 kB

Release files / wan2video-0.1.1.tar.gz

Download URL wan2video-0.1.1.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e4ea944e9bd9372cc271cbc5f778a99d2eeed5fa881395f21939a7f46304a482
BLAKE2b-256 checksum
How to use checksums
e50951896cf072bb7451fab1e7c19a09d4b8cbf4b028aa9d51efc6ad12343033
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / wan2video-0.1.1-py3-none-any.whl

Download URL wan2video-0.1.1-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7e13c4a3ea0cc16881d7a5af12b162f1006202397813ce0d84fef99ea59613e
BLAKE2b-256 checksum
How to use checksums
cf0a8d5f4d747c90b9a43a6050774bed72394032c8713526768a00612618ea48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for wan2video 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page