New Tool Radar

Local AI

How to Generate a First SDXL Image in ComfyUI

Download the SDXL checkpoint, load it in ComfyUI, and generate a first image.

Schematic with three steps: Download the SDXL checkpoint; Put the file in the checkpoints folder; Write a prompt and queue it.

SDXL is the smallest all-round image model for ComfyUI: about 6 GB, two text encoders, and it runs on anything with 8 GB or more of VRAM. The first run is a download, a file move, and a prompt, and the default workflow does the rest.

What you need

  • ComfyUI installed and running on http://127.0.0.1:8188
  • A GPU with 8 GB or more of VRAM
  • 50 GB or more of free disk for models and outputs

Step 1: Download the SDXL checkpoint

Go to the stabilityai/stable-diffusion-xl-base-1.0 page on Hugging Face and download sd_xl_base_1.0.safetensors, which is 6.94 GB. Prefer .safetensors files, because .ckpt files can carry arbitrary code.

Step 2: Put the file in the checkpoints folder

Move the file to ComfyUI/models/checkpoints/sd_xl_base_1.0.safetensors, then restart ComfyUI or click Refresh. Select the model in the Load Checkpoint node on the default canvas.

Step 3: Write a prompt and queue it

Click the positive CLIP Text Encode node, type a short prompt, and click Queue Prompt. The image appears in the Save Image node after 20 to 60 seconds, depending on the GPU, and is saved as a PNG in ComfyUI/output/.

Worked example: synthetic first SDXL image

The table below is a synthetic example. It shows the expected result of generating an SDXL image; no image was generated.

Check Expected Result
Checkpoint downloaded sd_xl_base_1.0.safetensors, 6.94 GB Pass
Model selected Listed in Load Checkpoint Pass
Prompt queued Image appears Pass
Output saved PNG in ComfyUI/output/ Pass

Expected result (UNTESTED). the checkpoint downloads, the model is selected, the queued prompt produces an image, and the PNG is saved in the output folder. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • SDXL needs 8 GB or more of VRAM for comfortable use; at lower VRAM, use a smaller image size.
  • SDXL likes structured tag prompts; FLUX-style natural language prompts work less well on it.
  • The default workflow has seven nodes; do not delete it, use Load Default to reset it if you break it.

Sources

See all