Full access is free during Beta. A paid subscription will be offered after Beta.

ComfyUI — User Guide

Node-based SD workflows—flexible for power users.

Strengths
  • Node-based workflow to visually build complex generation processes
  • Completely free and open source, runs locally
  • Supports all Stable Diffusion models and LoRA
  • Workflows can be saved and shared
  • The community provides a large number of ready-made workflows
Best for
  • Construct a complex image generation process (picture drawing + partial redrawing)
  • Automate batch image generation
  • Professional AI image creation workflow
  • Learn the underlying principles of Stable Diffusion
  • Develop custom AI image processing pipelines

Installation and basic use

ComfyUI requires a certain technical foundation, but it is extremely powerful after installation.

Scenario

Install ComfyUI

Prompt example
# Prerequisite: Python 3.10+ and NVIDIA GPU installed (recommended)

# 1. Clone the repository
git clone https://github.com/comfyanonymous/ComfyUI
cdComfyUI

# 2. Install dependencies
pip install -r requirements.txt

# 3. Download the model (put into models/checkpoints/)
# Recommended: SDXL Base 1.0 or SD 1.5

# 4. Start
python main.py

# 5. Browser access http://127.0.0.1:8188
Output / what to expect
Open the browser and see the node editing interface. By default, there is a basic Vincent diagram workflow. Prompt can be modified directly and pictures generated.
Tips

It is recommended to use the ComfyUI Manager plug-in, which can install custom nodes and workflows with one click.

Scenario

Understand node workflow

Prompt example
Nodes of basic Vincent diagram workflow:

1. Load Checkpoint (load model)
   ↓
2. CLIP Text Encode (forward Prompt)
3. CLIP Text Encode (negative Prompt)
   ↓
4. KSampler (sampler, controls the generation process)
   ↓
5. VAE Decode (decoded into pictures)
   ↓
6. Save Image

Each node has adjustable parameters,
Data is transferred between nodes through connections.
Output / what to expect
After understanding the node process, New functionality can be inserted between any nodes, Such as adding ControlNet, LoRA, amplification nodes, etc.
Tips

Download the ready-made workflow JSON file from the community and drag it directly into ComfyUI to use it without building it from scratch.

Starter & above

The rest of this guide

Additional scenarios and the full comparison table are included with Starter and above. Sign in with an eligible account to load them.

You're on the Free plan. Upgrade to Starter or higher to unlock the rest of this guide—additional scenarios and the full comparison table.

Loading full guide…