Node-based diffusion workflows for images and videos with FLUX, Wan, HunyuanVideo, and Stable Diffusion
ComfyUI is an open-source, node-based web application for AI image and video generation with diffusion models. Instead of a single text box, you connect processing nodes — model loaders, text encoders, samplers, decoders — into a graph that gives full control over every generation step.
Install and run ComfyUI on your hardware platform, then generate images (and optionally video) from a browser UI on port 8188.
Start with the Image Gen Quick Start tab for a lighter host Python install with Z-Image-Turbo. Use the Video Gen Workflow tab for container-based FLUX / Wan / HunyuanVideo / Cosmos / ControlNet workflows.
Required:
Optional:
Use the matrix below to confirm your hardware platform, OS, memory, and whether multi-node applies.
| Hardware platform | OS | Memory | Multi-node capable hardware |
|---|---|---|---|
| DGX Spark | DGX OS (Linux) | 64GB or 128GB Unified Memory | — |
| DGX Station | DGX OS (Linux) | Large HBM + Grace DRAM | — |
Hardware requirements
Software requirements
8188 on the hardware platformPlaybook assets (Video Gen Workflow) live under assets/ in this repository:
assets/Dockerfile — Builds the ComfyUI container image from an NGC PyTorch baseassets/scripts/download-models.sh — Downloads model weights from Hugging Face (hf CLI)assets/workflows/*.json — UI workflows for Load in the web UIassets/workflow_api/*.api.json — Same graphs in API format for /prompt and automationassets/scripts/api_to_ui_workflow.py — Regenerates UI JSON from API JSON if you edit a graph programmaticallyFor Image Gen Quick Start, clone ComfyUI on GitHub directly (requirements.txt, main.py, and checkpoint directories).
models/ (Video Gen Workflow) — non-destructive to the host OS--disable-dynamic-vram workaround for the HiDream-I1 VBAR allocation error on DGX Station WSL2