Skip to content

ComfyUI Guide

rookiemann edited this page Mar 15, 2026 · 1 revision

Extension 3: ComfyUI (Image Generation)

ComfyUI is a powerful image generation system based on Stable Diffusion. It can create images, edit photos, generate video frames, and more using a visual workflow editor.

Management API port: 5000 ComfyUI instance ports: 8188+

Installation

  1. Go to Tools > Extensions
  2. Click Install next to "ComfyUI Image Generator"
  3. Wait for the installation to complete (downloads ~3-5 GB for base install)
  4. Click Start to launch the management server

Or install manually:

cd extensions/comfyui
install.bat
launcher.bat

How ComfyUI Works

ComfyUI has two layers:

  1. Management Server (port 5000) — manages instances, models, and custom nodes
  2. ComfyUI Instances (port 8188+) — the actual image generation servers

Each GPU can run its own instance. If you have two GPUs, you can have two instances generating images simultaneously.

Available Model Types

Category Examples What It Does
Checkpoints SD 1.5, SDXL, Flux Base image generation models
LoRAs Style LoRAs, Character LoRAs Fine-tuned additions for specific styles
VAEs SDXL VAE, SD VAE Encoder/decoder for better image quality
ControlNet Canny, Depth, Pose Guide generation with reference images
Upscalers RealESRGAN, SwinIR Increase image resolution

The model registry has 100+ pre-defined models you can download with one click.

How to Generate Images

Simple prompt: Say: "Generate an image of a sunset over mountains with dramatic clouds"

With settings: Say: "Generate a 1024x768 image of a cyberpunk city at night, 30 steps, high detail"

Through the web UI:

  1. Open your browser to http://localhost:8188
  2. You'll see the visual workflow editor
  3. Build or load a workflow
  4. Click "Queue Prompt" to generate

ComfyUI Tools Reference

Tool How to Use It
comfyui_status "Is ComfyUI running?"
comfyui_instances "List ComfyUI instances"
comfyui_instance_start "Start a ComfyUI instance on GPU 0"
comfyui_instance_stop "Stop the ComfyUI instance"
comfyui_generate "Generate an image: [description]"
comfyui_models "List available ComfyUI models"
comfyui_nodes "List installed ComfyUI nodes"

ComfyUI Troubleshooting

"ComfyUI unreachable":

  • Start the management server with launcher.bat in extensions/comfyui/
  • Check that ports 5000 and 8188 aren't in use

"No checkpoints installed":

  • You need to download at least one checkpoint model
  • Say "List ComfyUI models" to see what's available in the registry
  • Download via the management API or web UI

Images look bad or distorted:

  • Try different prompts — be more specific
  • Increase step count (20-30 is usually good)
  • Try a different checkpoint model
  • Adjust CFG scale (7-9 is typical)

Clone this wiki locally