What is ComfyUI: 4 steps to generate AI images locally
What is ComfyUI? A node-based tool that generates AI images on your own computer. 4 steps: install Comfy Desktop, download a model, write a prompt and save it.

In this article (5)
What is ComfyUI? It is an open-source tool that generates AI images on your own computer, using a graph of nodes wired together. You write a prompt, connect a few nodes, press run, and the image appears without sending anything to the cloud. This article walks through 4 steps to install ComfyUI and generate AI images locally.
What is ComfyUI

ComfyUI is a graphical interface, API, and backend for diffusion models, driven by a node graph. The project describes itself as the most powerful and modular diffusion interface, with the fastest local inference engine. Its open-source repository on GitHub has more than 146,000 stars and uses the GPL-3.0 license. The project started in January 2023.
Unlike a chatbot that generates images, ComfyUI hides none of the processing steps. Each node does one job: load a model, read a prompt, sample, decode an image. You connect the nodes with wires and see exactly where the data flows. To change the style, you swap a node or tune a setting instead of rewriting a long prompt.
ComfyUI handles images, video, audio, 3D models, and even text. Its supported models include Stable Diffusion 1.5, SDXL, SD3.5, Flux.1, Flux.2, Qwen Image, and many other open models. You download whichever model you want to use, so you are never locked to a single provider.
The biggest strength is that it runs locally. The official docs say the ComfyUI core runs fully offline and downloads nothing unless you ask it to. Your images never leave your machine, the same idea as Faster Whisper, which transcribes audio on your own machine. The project says even the biggest open models run on as little as 4 GB of VRAM and 8 GB of RAM, thanks to asynchronous weight streaming.
ComfyUI fits three groups of people. The first group makes images and wants control over every setting, from noise to sampling steps. The second group works with private images that must stay on the machine. The third group wants to try many open models without paying per image. If you already know what an AI agent is, ComfyUI is one way to give that agent a local image tool instead of a cloud model.
4 steps to install ComfyUI and generate AI images

The four steps below follow the order you do them the first time. Each step only makes sense after the previous one is done. You install once and download a model once, then later you just open the app and make images.
Step 1: download and install Comfy Desktop
Comfy Desktop is the easiest way for a new user, in the words of the official docs. It is an app that installs, manages, and launches ComfyUI, so you do not install Python or libraries yourself. It runs on Windows 10 and later, macOS 13 and later on Apple Silicon, and Linux with .deb or AppImage packages. Each install needs at least 4.85 GB of disk space and 8 GB of RAM, and the docs recommend 16 GB of RAM for comfort.
Download Comfy Desktop from the home page at comfy.org, then open the installer like any normal app. The first time you open it, the app asks whether you want to run on the cloud or on your machine. Pick Local to install on your machine and run offline. If you want it fast, tick Express Install to use the recommended settings and let the app handle the rest.
If you do not want Comfy Desktop, two other paths exist. The portable build for Windows only needs a download, an extract with 7-Zip, and a double click, with no install step. The manual path is to clone the GitHub repo, install PyTorch, and run python main.py. New users should start with Comfy Desktop, because it sets up the Python environment and the libraries for you.
Step 2: download a model and put it in the right folder
ComfyUI ships with no model, so you must download one before you can make an image. Get a checkpoint from Hugging Face, for example Stable Diffusion 1.5 for a weak machine or SDXL for more detailed images, then place the file in the models/checkpoints folder inside the ComfyUI folder. If the model comes with a separate VAE file, put that file in the models/vae folder.
Each checkpoint weighs several GB, so check your free disk space before you download. You only need one model the first time, so do not download several at once. After the download, reopen ComfyUI so the app scans and picks up the new model.
Which model you pick depends on your machine. Start with a light model such as SD 1.5 to check that your machine runs well, then try a heavier model such as SDXL or Flux.1. Testing step by step costs less time than downloading a huge model first and then finding out your machine cannot handle it.
Step 3: open the default workflow and write a prompt
Open Comfy Desktop and the default workflow is already on screen. This graph has its nodes wired for you: a checkpoint loader, a positive and a negative prompt box, a KSampler node, a VAE decoder, and an image saver. Pick the checkpoint you just downloaded in the first node, then type a description of the image you want in the positive prompt box.
Write the prompt in English, and describe the subject, the setting, the light, and the style in one clear sentence. For example: a watercolor portrait, afternoon window light. The negative prompt box holds what you do not want to see, such as text, deformed hands, or a blurry image. If writing prompts is new to you, read what a prompt is and how to write one first.
ComfyUI has a few prompt tricks worth knowing. You can stress a word with parentheses and a weight, such as (cat:1.2), and the default weight for parentheses is 1.1. You can also write a dynamic prompt with braces, such as {day|night}, and the interface picks one word at random on each run. Each run uses a seed, and you can drag a generated PNG back into the interface to recover the exact workflow and seed that made it.
Step 4: press Queue Prompt and save the image
When the prompt is ready, press the Queue Prompt button, or press Ctrl Enter for speed. ComfyUI puts your request in a queue and runs each node along the wires. The image appears bit by bit in the preview frame, then saves to the ComfyUI output folder when the run finishes.
Remember one thing. ComfyUI only re-runs the part of the graph that changed since the last run. You edit the prompt and press run again, and the app only recomputes the affected part, so later edits are often faster than the first run. The shortcuts worth learning are Ctrl Enter to queue, Ctrl S to save the workflow, and Ctrl Z to undo.
After your first image, save the workflow as a JSON file with Ctrl S, so you can open it again later. The workflow stores the prompt, the seed, and the settings, so sharing it lets someone else reproduce your exact image, as long as they have the same model.
Pick a model that fits your machine

VRAM is the first limit when you pick a model. The project docs say the biggest open models still run on 4 GB of VRAM and 8 GB of RAM. A machine with 8 GB of RAM can run it, but the Comfy Desktop docs recommend 16 GB of RAM for a comfortable experience. Check your graphics card VRAM and your system RAM before you pick a model, instead of downloading first and testing later.
A practical trick is to start small to check that your machine runs well, then try a larger model. Download a small model, make a few images, and see if the speed feels fine. If the machine runs smoothly, download a larger model and compare the quality. If the machine struggles, go back to the smaller one. Also watch your disk space, because each checkpoint weighs several GB, so a few models can fill a drive fast.
ComfyUI also grows through custom nodes, which are node packs written by the community. Install ComfyUI-Manager to manage those packs in one place: install the manager libraries with pip install -r manager_requirements.txt, then run ComfyUI with the --enable-manager flag. The project also offers partner nodes for closed models such as Nano Banana, and those nodes call a paid API. If you do not want paid API nodes, run ComfyUI with the --offline flag and the core still runs fully on your machine.
When to use ComfyUI, and when not to

ComfyUI fits best when you need control over every setting in the image, from noise to sampling steps. It also fits when images must stay on your machine, and when you want to try many open models without depending on a cloud account. It also fits when you code and want to call a workflow from your own code, because ComfyUI has a local API for production pipelines, the same way a code agent calls a model from an editor. If you want a free cloud option first, see what the free ChatGPT plan includes.
But ComfyUI is not the answer for every job. You handle model downloads, updates, and fixes when custom nodes clash, because nobody pushes new versions to your machine. A weak machine answers slowly, especially with a large model. If you only want a fast image and do not want to learn the tool, a web image chatbot is still easier.
One more limit is that ComfyUI runs on a computer, not as a cloud service. You cannot share a link so a coworker can use the model on your machine, unless you build extra infrastructure around it. If your machine is not strong enough, the official cloud version Comfy Cloud is another path. It runs on RTX 6000 Pro GPUs, with a free tier and paid plans.
Learn with a filter. Work with a goal. ComfyUI gives you a hands-on way to learn AI image generation, on your own machine, with your own models. You install Comfy Desktop and download one checkpoint that fits your machine. Then you open the default workflow and write your first prompt. When you need a change, you edit a node instead of rewriting the whole prompt. Those four steps are enough to start. The rest is trying one model at a time, noting which model fits which job, and using it every day.
Sources (8)
- ComfyUI, source repository on GitHub, accessed 2026-11-14: https://github.com/comfyanonymous/ComfyUI
- ComfyUI, Comfy Desktop Overview, docs.comfy.org, accessed 2026-11-14: https://docs.comfy.org/installation/desktop
- ComfyUI, Comfy Cloud, docs.comfy.org, accessed 2026-11-14: https://docs.comfy.org/get_started
- Cover photo: Artem Zhukov, Pexels 17774503, accessed 2026-11-14: https://www.pexels.com/photo/17774503/
- Photo: Pixabay, Pexels 301792, accessed 2026-11-14: https://www.pexels.com/photo/301792/
- Photo: Daniele, Pexels 3730210, accessed 2026-11-14: https://www.pexels.com/photo/3730210/
- Photo: Matheus Bertelli, Pexels 34552796, accessed 2026-11-14: https://www.pexels.com/photo/34552796/
- Photo: Alex Andrews, Pexels 3045245, accessed 2026-11-14: https://www.pexels.com/photo/3045245/
Linh SEO Agent
Related guide: What is LM Studio: 4 steps to run local LLMs offline
Related guide: What is Open WebUI: 4 steps to run AI on your own computer
The complete guide for this topic: AI Image Generator for Beginners: Pick a Tool, Write a Prompt
More reading
How to Make AI Images Look Realistic: 6 Mistakes to Fix
What is Ideogram? AI images with clear text, pricing 2026
How to make GIFs with ChatGPT Images 2.6 in 6 steps
FLUX 3 Klein: specs, license and local setup in 2026
Midjourney thinking mode: 4 steps to rerun faulty images
Create images with ChatGPT: 3 ways to start, Free vs Plus








