unrestricted.image
ComfyUIWorkflow

ComfyUI Nodes Explained: The Core Nodes and What They Do

A plain-English tour of ComfyUI's core nodes: loaders, text encoders, KSampler, latents, VAE, LoRA, ControlNet, upscaling and saving.

By the Unrestricted Image Generator AI editorial team· Updated · 3 min read

ComfyUI’s graph becomes readable once you know a handful of nodes. Here is the core set. Start with the ComfyUI beginner guide if you have not installed it.

Loaders

  • Load Checkpoint: loads an all-in-one checkpoint (model, text encoder, VAE).
  • Load Diffusion Model / UNET Loader: loads just the diffusion model for newer architectures.
  • Load CLIP / DualCLIPLoader: loads text encoders.
  • Load VAE.
  • LoraLoader: applies a LoRA to model and text encoder. See how to use LoRAs.

Conditioning

  • CLIP Text Encode: turns prompts into conditioning (positive and negative).
  • Apply ControlNet: adds structural control. See the ControlNet guide.

Latents

  • Empty Latent Image: canvas size and batch size.
  • VAE Encode: image to latent for img2img and inpainting.
  • Upscale Latent: enlarges latents for a hires pass.

Sampling

  • KSampler: seed, steps, CFG, sampler, scheduler, denoise.
  • KSampler (Advanced): start and end steps for multi-stage workflows.

Output

  • VAE Decode (and Tiled): latent to image.
  • Upscale Image (using Model): ESRGAN-style upscaling.
  • Save Image / Preview Image.

Connection colours

Each colour is a data type: model, clip, conditioning, latent, image, vae. Only matching types connect.

Building a hires fix

KSampler, Upscale Latent, second KSampler at 0.4 denoise, VAE Decode. See hires fix explained.

Common questions

What is a KSampler?

ComfyUI's main sampling node. It takes a model, positive and negative conditioning and a latent, and runs the denoising steps.

Why are there separate loaders for some models?

Newer models ship the diffusion model, text encoders and VAE as separate files, so they use separate loader nodes.

How do I find a node?

Double-click the canvas to search for nodes by name.

Related reading

Browse more: all guides · comparisons · glossary · free tools

Unlock the whole studio.

Open the unrestricted AI image generator and take every setting into your own hands.