Now things get colorful. In this lesson, you’ll create your first image with ComfyUI. It’s the most popular free program for image and video models on your own PC. At first glance, it looks complicated. But don’t worry: with a ready-made template, you’ll get there fast.
What makes ComfyUI special
ComfyUI works with nodes. Each node is a box with a job: load a model, enter a prompt, generate an image, save an image. You connect the boxes with lines. This whole setup is called a workflow.
It sounds like tinkering, but it has one big advantage. You can see exactly what’s happening. And you’ll recognize the building blocks from lesson 3: text encoder, diffusion model, sampler, and VAE each have their own node.
A comparison: Other programs are like a bean-to-cup coffee machine with one button. ComfyUI is like an espresso machine. More steps, but you’re in control of every setting.
You can learn more about the program on the ComfyUI page.
Installation
For Windows, there are several ways, such as a desktop version with an installer or a portable version you unzip. For Nvidia graphics cards, ComfyUI is easiest to set up. It also works in part with cards from other manufacturers, but is often more complex.
The details change with new versions. So follow our current guide ComfyUI under Windows.
Important: Download ComfyUI only from the official source. Especially with popular AI programs, fake downloads are common.
Templates: the fastest way to your first image
You don’t have to build a workflow yourself. ComfyUI includes ready-made templates for many common models. You’ll find them in the program menu. A template contains all the required nodes, already connected correctly and with sensible settings.
Many templates also show you which model files are missing when you open them, and offer a download. That saves a lot of searching.
Also handy: images created with ComfyUI contain the complete workflow in the image file. If you drag such an image into the program window, the workflow loads. That means you can import workflows from the community directly, as long as the file hasn’t been changed in the meantime.
Loading models: which file goes where
If you download models manually, you need to place them in the right folder. ComfyUI has several subfolders in the models folder for this. The most important ones:
checkpoints: complete packages that include the diffusion model, text encoder, and VAE in one file.diffusion_models: only the actual diffusion model, common with newer models.text_encoders: the text encoders.vae: the VAE files.loras: small add-on models, more on that in lesson 12.
Tip: After adding new files, you often need to reload ComfyUI or refresh the list so they appear in the selection fields.
Which model you choose again depends on your VRAM. Newer models often deliver impressive results, but need more memory. Older, smaller models also run on weaker cards and have a huge selection of community extensions. You can find an overview and recommendations under Models.
Your first image in five steps
This is how it works in principle:
- Open a template for your model.
- Check whether the correct model files are selected in the loading nodes.
- In the prompt node, describe what you want to see, for example “a cozy café on a rainy evening, warm light, photography”.
- Click “Run” or “Queue”.
- Wait. The first image takes longer because the models have to load first.
The finished image appears in the preview node and ends up in the output folder. You’ll find a detailed, illustrated walkthrough of every step in the guide ComfyUI: your first image.
First experiments
Now you can play around. Change only one thing at a time:
- Different seed: same subject, new variation.
- More or fewer steps: See when things stop improving.
- Different image size: Stay close to the sizes the model was made for.
- Different prompt: Change a single word and watch the effect.
You’ll learn how to describe images in a targeted way in lesson 10. More use cases are under Generating images. And if you get a great image, feel free to share it in the gallery.
If something goes wrong
- “Out of memory”: The model is too large. Use an fp8 version, a smaller model, or a lower resolution.
- Red node after loading a workflow: A model or extension (Custom Node) is usually missing.
- Gray or black image: The VAE often doesn’t match the model.
You can find more help under Errors and in the forum.
Key takeaways
- ComfyUI builds images from connected nodes, called a workflow.
- Ready-made templates are the fastest way to your first image.
- Model files belong in the matching subfolders of
models. - When experimenting, always change only one setting.
- You can fix memory errors with smaller models, fp8, or a lower resolution.