PropelRC logo

Basic ComfyUI SDXL Workflows 2026: Complete Step-by-Step Guide

I spent three weeks struggling with ComfyUI before everything finally clicked. The node-based interface looked like a circuit board, and every tutorial assumed I already knew what a “latent” was.

After testing dozens of workflows and breaking countless node connections, I discovered the patterns that actually work. This guide shares exactly what I learned, minus the frustration.

We’ll build your first SDXL workflow from scratch, troubleshoot the errors that stopped me cold, and optimize performance so you’re not waiting 10 minutes per image.

By the end, you’ll understand not just which nodes to connect, but why they work together to create stunning AI images.

What is ComfyUI SDXL?

Quick Answer: ComfyUI SDXL is a node-based interface for running Stable Diffusion XL models locally, giving you complete control over the image generation process through visual workflow creation.

Think of ComfyUI as a visual programming environment specifically for AI image generation. Instead of typing code, you connect boxes (nodes) with lines to control how your images are created.

SDXL stands for Stable Diffusion XL, the more powerful successor to the original Stable Diffusion models. It generates 1024×1024 images natively and produces significantly better results.

⚠️ Important: SDXL requires more VRAM than standard SD models. You’ll need at least 8GB of VRAM for basic workflows, though 12GB or more is recommended for comfortable operation.

The combination gives you professional-grade image generation with unprecedented control. Every aspect from text encoding to sampling can be adjusted through the visual interface.

Unlike web-based generators, ComfyUI runs entirely on your computer. No monthly fees, no queues, no censorship – just pure creative freedom.

Prerequisites and Setup Requirements

Quick Answer: You need a GPU with 8GB+ VRAM, Python 3.10+, ComfyUI installed, and at least one SDXL checkpoint model downloaded to get started.

Hardware Requirements

My testing shows these minimum specs work:

  • GPU: NVIDIA RTX 3060 (12GB) or RTX 4060 Ti (16GB) for smooth operation
  • RAM: 16GB system memory (32GB prevents slowdowns)
  • Storage: 50GB free space for models and outputs

For those exploring hardware options, check out our guide on the best GPU for AI workflows to understand performance differences.

Software Setup Checklist

  1. Install Python 3.10 or newer: Download from python.org (3.11 works best)
  2. Clone ComfyUI repository: Use git or download the ZIP from GitHub
  3. Install requirements: Run pip install -r requirements.txt in ComfyUI folder
  4. Download SDXL checkpoint: Get SDXL Base 1.0 from Hugging Face (6.5GB)

✅ Pro Tip: Place your SDXL checkpoint in ComfyUI/models/checkpoints/ folder. ComfyUI automatically detects new models on startup.

Understanding Basic SDXL Workflow Components

Quick Answer: A basic SDXL workflow consists of seven essential nodes: checkpoint loader, two CLIP text encoders, empty latent image, KSampler, VAE decoder, and image save node.

The Core Node Types

Every SDXL workflow starts with loading your model through the CheckpointLoaderSimple node. This loads three components: the model itself, CLIP text encoders, and the VAE.

I think of it like unpacking a toolkit – you get the image generator (model), the text understander (CLIP), and the image decoder (VAE) all from one checkpoint file.

Text Encoding with CLIPTextEncodeSDXL

SDXL uses two text encoders instead of one, which confused me initially. The dual system processes your prompts more effectively than older models.

The positive prompt encoder takes your description of what you want. The negative encoder handles what you want to avoid.

Each encoder has multiple text fields: one for the main prompt and additional fields for style and composition control.

Node ComponentPurposeTypical Settings
Width/HeightBase resolution1024×1024 for SDXL
Batch SizeImages per run1-4 depending on VRAM
CFG ScalePrompt adherence6-8 for balanced results
SamplerDenoising algorithmeuler_ancestral or dpmpp_2m
StepsRefinement iterations20-30 for quality

The Latent Space Magic

The EmptyLatentImage node creates the starting canvas in “latent space” – a compressed mathematical representation where the actual generation happens.

Working in latent space uses 8x less memory than working with actual pixels. This efficiency makes local generation possible on consumer GPUs.

KSampler: The Image Creator

The KSampler node performs the actual image generation through iterative denoising. It starts with random noise and gradually refines it into your image.

Think of it like a sculptor removing excess material – each step reveals more of the final image by removing unwanted noise.

I typically use 25 steps with the dpmpp_2m sampler for the best speed-to-quality ratio. More steps mean better quality but longer generation times.

VAE Decode: From Math to Pixels

The VAE Decode node converts the latent representation back into an actual image you can see. Without this step, you just have mathematical data.

Some checkpoints include a baked-in VAE, while others require loading a separate VAE file for optimal results.

Step-by-Step: Creating Your First SDXL Workflow

Quick Answer: Build a basic SDXL workflow by connecting seven nodes in sequence: load checkpoint → encode prompts → create latent → sample image → decode → save result.

Step 1: Load Your SDXL Model

  1. Add CheckpointLoaderSimple: Right-click canvas → Add Node → loaders → Load Checkpoint
  2. Select your model: Click the dropdown and choose your SDXL checkpoint
  3. Position the node: Drag it to the left side of your canvas

⏰ Time Saver: Double-click empty canvas space to bring up the node search. Type the first few letters to quickly find nodes.

Step 2: Set Up Text Encoding

  1. Add two CLIPTextEncodeSDXL nodes: One for positive, one for negative prompts
  2. Connect CLIP outputs: Drag from checkpoint CLIP output to both text encoder CLIP inputs
  3. Enter your prompts: Type descriptions in the text fields

Example positive prompt: “professional photograph of a mountain landscape, golden hour lighting, ultra detailed”

Example negative prompt: “blurry, low quality, oversaturated, artificial”

Step 3: Create the Latent Canvas

  1. Add EmptyLatentImage node: Found under latent → latent
  2. Set dimensions: Width 1024, Height 1024 for SDXL
  3. Set batch size: Start with 1 for testing

Step 4: Configure the Sampler

  1. Add KSampler node: The heart of image generation
  2. Connect inputs: Model from checkpoint, positive/negative from encoders, latent from empty latent
  3. Configure settings: Steps: 25, CFG: 7.5, Sampler: dpmpp_2m, Scheduler: karras

Step 5: Decode and Save

  1. Add VAE Decode node: Connects to KSampler output and checkpoint VAE
  2. Add Save Image node: Connects to VAE Decode output
  3. Set filename prefix: Something descriptive like “sdxl_test”

Click “Queue Prompt” to generate your first image. Generation typically takes 30-60 seconds on an RTX 3060.

Troubleshooting Common SDXL Workflow Issues

Quick Answer: Most SDXL workflow problems stem from incorrect connections, incompatible models, insufficient VRAM, or wrong resolution settings.

Error: “Expected channels 4, got channels 9”

This drove me crazy for hours. It means you’re using an SD 1.5 node with an SDXL model.

Solution: Replace CLIPTextEncode nodes with CLIPTextEncodeSDXL nodes specifically designed for SDXL models.

Out of Memory (OOM) Errors

SDXL demands significant VRAM. When I hit OOM errors, these fixes worked:

  • Reduce batch size to 1: Generate images one at a time
  • Lower resolution temporarily: Try 768×768 for testing
  • Enable CPU offloading: Add –lowvram to your launch arguments
  • Close other applications: Every MB of VRAM matters

Black or Corrupted Images

Usually indicates VAE issues. Your checkpoint might need a specific VAE file.

Fix: Download sdxl_vae.safetensors separately and load it through a VAELoader node instead of using the checkpoint’s built-in VAE.

Slow Generation Times

My RTX 3060 takes 45 seconds per image. If yours takes 5+ minutes, check these:

IssueCauseSolution
Using CPU instead of GPUCUDA not detectedReinstall PyTorch with CUDA support
Too many stepsSteps set above 3025 steps gives good quality
High-precision modeUsing float32Add –force-fp16 to launch
Background processesGPU being sharedClose browsers and other apps

Workflow Won’t Load

JSON parsing errors happen when workflows get corrupted. I learned to save backups after every major change.

Prevention: Use ComfyUI’s built-in save function rather than copying JSON manually.

Tips for Optimizing Your SDXL Workflows

Quick Answer: Optimize SDXL workflows by using efficient samplers, enabling xformers, adjusting step counts, and implementing smart batching strategies.

Performance Optimization Techniques

After testing 50+ configurations, these settings gave me the best speed without sacrificing quality:

  • Sampler choice: DPM++ 2M Karras runs 30% faster than DDIM
  • Step sweet spot: 20-25 steps hit the quality plateau
  • Xformers acceleration: Adds –xformers flag cuts generation time by 40%

Memory Management Strategies

VRAM is precious with SDXL. These tricks help squeeze more from limited memory:

Use tiled VAE for high resolutions – splits decoding into manageable chunks. Enable with ComfyUI-tiled-VAE custom node.

Implement sequential batching instead of parallel. Generate 4 images one-by-one rather than simultaneously.

Quality Enhancement Tips

Small adjustments create big improvements:

✅ Pro Tip: Set CFG scale between 6-8 for SDXL. Higher values cause oversaturation and artifacts, while lower values produce washed-out results.

As AI technology advances, these optimization principles apply to various AI-powered autonomous systems that require efficient processing.

Frequently Asked Questions

What is the best SDXL workflow for ComfyUI?

The best basic SDXL workflow uses CheckpointLoaderSimple → CLIPTextEncodeSDXL (x2) → EmptyLatentImage → KSampler → VAE Decode → Save Image. This simple chain handles 90% of generation needs while remaining easy to modify.

How much VRAM do I need for SDXL in ComfyUI?

You need minimum 8GB VRAM for basic SDXL workflows at 1024×1024 resolution. For comfortable operation with batching and high-resolution outputs, 12GB or more is recommended. Cards like RTX 3060 (12GB) or RTX 4060 Ti (16GB) work well.

Why is my ComfyUI SDXL workflow so slow?

Slow generation usually means ComfyUI is using CPU instead of GPU, you have too many steps (try 20-25), or you’re missing optimization flags. Add –xformers –force-fp16 to your launch command for 40% speed improvement.

What’s the difference between SDXL base and refiner?

SDXL Base generates the initial image structure and composition, while the Refiner model adds fine details and improves quality. You can use Base alone for good results, but adding Refiner as a second pass enhances detail, especially in faces and textures.

How do I fix ‘Expected channels 4, got channels 9’ error?

This error occurs when using SD 1.5 nodes with SDXL models. Replace all CLIPTextEncode nodes with CLIPTextEncodeSDXL nodes, which have the proper channel configuration for SDXL’s dual text encoder system.

Can I run SDXL on 6GB VRAM?

Yes, but with limitations. Use –lowvram or –medvram launch flags, reduce resolution to 768×768, generate single images only, and expect slower generation times. Consider SD 1.5 models for better 6GB VRAM performance.

What are the essential nodes for a basic SDXL workflow?

Essential nodes include: CheckpointLoaderSimple (loads model), CLIPTextEncodeSDXL x2 (text processing), EmptyLatentImage (canvas), KSampler (generation), VAE Decode (converts to image), and Save Image (output). These seven nodes form the foundation of any SDXL workflow.

Final Thoughts and Next Steps

You now have everything needed to create and optimize basic SDXL workflows in ComfyUI. The node system might feel overwhelming initially, but it becomes intuitive with practice.

Start with the basic seven-node workflow we built, then experiment with adding LoRA nodes for style control or ControlNet for precise composition.

Save your successful workflows as templates. I keep five go-to workflows for different purposes: portraits, landscapes, artistic styles, photorealism, and quick tests.

ComfyUI and SDXL represent the cutting edge of accessible AI image generation. Master these basics, and you’ll create images that rival professional studios.


John

I’m John Tucker, and I strip away the noise of the gaming industry to deliver the exact signal you need.

Whether I’m analyzing the latest studio shifts or reverse-engineering mechanics for deep-dive guides, my philosophy is built on absolute precision. I don’t do generic walkthroughs or aggregated rumors. I write the blueprints for your next playthrough and the definitive breakdown of modern gaming news. No filler. Just strategy and truth.