Interface & Core Concepts
ComfyUI is a visual node-graph editor for AI pipelines. Instead of hiding steps behind tabs and checkboxes, every step (loading a model, encoding text, sampling noise, decoding pixels) is an explicit node wired left to right.
#Anatomy of a node
Every node has three parts:
- Inputs (left sockets): data entering the node (
MODEL,CLIP,LATENT,IMAGE). - Widgets (inside the card): inline parameters like
steps,cfg,seed,width, andheight. Right-click a widget and choose Convert to input to drive it from another node. - Outputs (right sockets): data produced by the node for downstream nodes.
#Data types and wire colors
ComfyUI prevents invalid connections automatically: you can only connect sockets of the same type. Dragging from a socket into empty canvas space opens a filtered menu of nodes that accept that exact type.
| Color / Type | What it carries | Common producer -> consumer |
|---|---|---|
Lavender (MODEL) |
Diffusion weights | Load Checkpoint / Load Diffusion Model -> Load LoRA -> KSampler |
Yellow (CLIP) |
Text encoder weights | Load Checkpoint / Load CLIP -> CLIP Text Encode (Prompt) |
Orange (CONDITIONING) |
Encoded prompt guidance | CLIP Text Encode (Prompt) -> Apply ControlNet -> KSampler |
Pink (LATENT) |
Compressed latent tensor | Empty Latent Image / VAE Encode -> KSampler -> VAE Decode |
Blue (IMAGE) |
Decoded RGB pixel tensor | VAE Decode -> Upscale Image -> Save Image |
Red (VAE) |
Variational autoencoder | Load Checkpoint / Load VAE -> VAE Decode / VAE Encode |
Green (MASK) |
Grayscale selection mask | Load Image (MaskEditor) -> Set Latent Noise Mask |
Beyond image sockets, multimodal ComfyUI workflows also pass typed AUDIO, VIDEO, and 3D mesh or point-cloud sockets between loaders, samplers, and savers.
#Nodes 2.0, Subgraphs, and App Mode
ComfyUI's frontend has evolved beyond static canvas cards:
- Nodes 2.0: ComfyUI's web-native Vue component renderer replaces legacy canvas drawing with interactive controls, inline error badges, curve and crop widgets, and smoother panning on large graphs (a toggle for the legacy renderer remains in Settings).
- Subgraphs (
Ctrl + Shift + E): collapse a cluster of nodes into a single modular node with clean exposed inputs and outputs, then save reusable patterns as blueprints across projects. - App Mode (
Alt + M): hides the node graph behind a clean form view showing only the prompts, sliders, and upload widgets a workflow author chooses to expose. - Partner Nodes and offline mode: ComfyUI includes optional paid cloud Partner Nodes alongside local open-source nodes. Launch with
--disable-partner-nodesto hide paid API nodes, or--offlineto disable Partner Nodes and lock down frontend network requests with a strict Content Security Policy.
#Embedded workflows in outputs
By default, ComfyUI's saver nodes embed the full workflow JSON graph inside generated images, videos, audio, and 3D output files.
- Reload any output: drag and drop a ComfyUI-generated image, video, audio, or 3D file directly onto the ComfyUI canvas to recreate the exact graph, prompts, seeds, and model names.
- JSON export: use Workflow > Export (or Export (API) for headless scripts) to save lightweight
.jsongraphs without media payloads. - Privacy note: pass
--disable-metadataat launch if you want to turn off metadata embedding globally, or strip metadata before posting publicly so prompts and local filenames are not shared.
#Organizing large graphs
As workflows grow beyond 10 nodes, keep them readable:
- Groups (
Ctrl + G): wrap related nodes (Model Loader, Prompting, Upscaler) in a labeled container you can drag as one unit. - Subgraphs (
Ctrl + Shift + E): turn a multi-node branch into a clean reusable sub-node instead of leaving wires tangled across the canvas. - Bypass vs Mute:
- Bypass (
Ctrl + B): passes compatible inputs straight through the node as if it were skipped (ideal for toggling an Upscale or ControlNet branch without rewiring). - Mute (
Ctrl + M): stops the node and everything downstream from executing at all.
- Bypass (
- Collapse, Pin, and Reroute: collapse noisy cards with
Alt + C, pin key nodes in place withP, and insert Reroute dots to keep long wires neat.
#Essential keyboard shortcuts
Check or customize all bindings anytime in Settings (Ctrl + ,) > Keybinding or open the shortcuts drawer with Ctrl + Shift + K.
| Shortcut | Action |
|---|---|
Double-click canvas |
Open quick node search box |
Ctrl + Enter / Ctrl + Shift + Enter |
Queue workflow / queue at front of queue |
Ctrl + Alt + Enter |
Interrupt current generation |
R |
Refresh node definitions and newly added model files |
W / N / M / A |
Toggle Workflows / Node Library / Model Library / Assets sidebar tabs |
Ctrl + G / Ctrl + Shift + E |
Group selected nodes / convert selected nodes to Subgraph |
Ctrl + B / Ctrl + M |
Bypass / Mute selected node(s) |
Alt + C / P |
Collapse / Pin selected node(s) |
Alt + M / Alt + Shift + M |
Toggle App Mode / toggle Minimap |
. / Alt + = / Alt + - |
Fit workflow to screen / Zoom in / Zoom out |
Ctrl + ` |
Toggle bottom Logs / Terminal panel |
Ctrl + S / Ctrl + O |
Save / Open workflow .json |
Next: wire your first complete pipeline in Your First Workflow.