Episode 20: Use Wan 2.2, ComfyUI and n8n to generate videos for free
In this video, we show you how you can run Wan 2.2 from Alibaba on modal.com using ComfyUI and n8n. You can use your $30 free credits you receive every month to generate stunning AI videos.
|
📚 Join our Skool community for support, premium content and more!
Be part of a growing community and help us create more content like this |
|
Watch the video
Free n8n JSON workflows
- Wan 2.2 5b Image to Video n8n workflow
- Wan 2.2 5b Text to Video n8n workflow
- Wan 2.2 14b Image to Video n8n workflow
- Wan 2.2 14b Text to Video n8n workflow
Modal application
- python modal application to run Wan 2.2 5b with ComfyUI
- python modal application to run Wan 2.2 14b Text to Video with ComfyUI
- python modal application to run Wan 2.2 14b Image to Video with ComfyUI
Instructions
Pre-requisites
- Watch the video!
- Have a Modal account (you can sign up for free)
- Have an n8n setup
Windows setup
- Install Python 3.10+ from the official website
- Install the Windows Subsystem for Linux (WSL) and set up a Linux distribution (like Ubuntu)
- Install Python venv in WSL with
sudo apt install python3-venv
MacOS + Linux setup
- Make sure you have Python 3.10+ installed
- Make sure you have Python venv installed
Steps to run the application
- Copy the modal file you want to run (e.g.,
modal_wan_comfyui_5b.py) to your local machine - Open a terminal and navigate to the directory where you copied the file
- Create a virtual environment with
python3 -m venv .venv - Activate the virtual environment with
source .venv/bin/activate - Install the modal package with
pip install modal - Run
modal setupto configure your Modal account and approve it on the Modal website - Run
modal serve {THE_MODAL_PYTHON_FILE}to start the Modal application (replace{THE_MODAL_PYTHON_FILE}with the name of the file you copied, e.g.,modal_wan_comfyui_5b.py) - (optional) Deploy the application with
modal deploy {THE_MODAL_PYTHON_FILE}
