ComfyUI logoComfyUI
Node-based AI image studio · Windows PC

ComfyUI AIImage Generationfor PC

ComfyUI turns image generation into a visible graph. Every model, prompt, sampler and filter is a node you can wire, tweak and save, so a picture is never a lucky accident you cannot repeat. It runs on your own graphics card, keeps your files on your own drive, and grows with you from a first portrait to multi-stage pipelines.

  • GPL-3.0 open source
  • Local on your GPU
  • Images · Video · Audio models
ComfyUI · queue #420.0 s
AI-generated mountain landscape at dawn produced by a ComfyUI workflow Saved

Loading model weights…

GraphEach step of generation is a node you can see and edit
ReusableWorkflows save as JSON and inside every PNG you render
EfficientOnly the nodes you changed run again on the next queue
ExtensibleThousands of community custom nodes add new tools
ComfyUI graph view next to an output gallery of generated images

// graph on the left, finished renders on the right

What Is ComfyUI?

ComfyUI is a free, open-source application for running generative AI models through a node graph instead of a single settings form. You open it in a browser tab or in the Desktop app, and the canvas shows the whole recipe behind an image: which model is loaded, how the prompt is encoded, how many sampling steps run, and where the result is decoded and saved.

It started in early 2023 as a personal project by the developer known as comfyanonymous and is now maintained by Comfy Org together with a large group of contributors. The core targets diffusion models such as Stable Diffusion 1.5, SDXL, SD 3.5 and Flux, and the same graph approach now covers image editing, video, 3D and audio models as support is added.

The appeal is control. Because every step is a separate block, you can swap a sampler, add a LoRA, insert an upscaler or branch one prompt into four variations without rewriting anything else.

InterfaceA browser-based canvas served by a local Python process, or packaged in the Desktop app.
EngineA PyTorch backend that loads models, manages memory and executes the graph in order.
OutputPNG, WebP or video files written to your output folder, each carrying its workflow.

How Does ComfyUI Work?

Under the canvas, ComfyUI is a small server. When you press Queue, the browser sends the graph as JSON, the server sorts nodes by their dependencies, runs each one, and streams previews back. Diffusion itself happens in latent space: the sampler starts from noise and removes it step by step, steered by your encoded prompt.

Five stages showing random latent noise gradually denoised into a finished mountain image
  1. Load

    The checkpoint node reads model weights and splits them into MODEL, CLIP and VAE outputs.

  2. Encode

    CLIP Text Encode turns positive and negative prompts into conditioning tensors.

  3. Sample

    KSampler denoises an empty latent over the chosen number of steps with a fixed or random seed.

  4. Decode

    VAE Decode converts the finished latent into visible pixels at full resolution.

  5. Save

    Save Image writes the file and embeds the full graph in its metadata for later reuse.

Main Capabilities of ComfyUI

Out of the box ComfyUI covers the full path from a text prompt to a finished file. Custom nodes extend it further, but the core already handles a wide range of generation tasks.

Text-to-image and image-to-image

Generate from a prompt, or start from an existing picture and set a denoise strength to decide how far the result drifts from the source. Inpainting and outpainting work through masks drawn in the built-in mask editor.

LoRA and embeddings

Stack style or character LoRAs with separate model and text strengths, and load textual inversion embeddings right inside a prompt.

ControlNet guidance

Lock composition with depth, pose, line art or edge maps so the model follows a layout you supply.

Upscaling and detail passes

Run ESRGAN-style upscale models, then a low-denoise second pass to add crisp detail at higher resolution.

Video and animation

Supported video models generate short clips from text or a starting frame, with the same node logic as stills.

Batches and queues

Queue many jobs, change one value between them, and let the server work through the list while you keep editing.

Why Use ComfyUI for AI Creation?

Most image generators hide their pipeline to keep things simple. That works until you want something specific: a second sampling pass on only the face, two prompts blended halfway through, or the exact same image again next month. ComfyUI exposes those decisions instead of guessing for you.

Repeatable results

Seed, sampler and settings live in the graph, so a render can be reproduced or shared exactly.

New models arrive fast

Support for new open model families often lands in the core within days of release.

Lower VRAM pressure

Smart memory management offloads models between steps, letting modest cards run large checkpoints.

No subscription

The software costs nothing; your only running cost is the electricity your PC uses.

Advanced KSampler, LoRA loader and ControlNet nodes with detailed parameter widgets

Understanding the ComfyUI Workflow

A workflow is simply the saved graph. Learning to read one is the single most useful skill in ComfyUI, because almost every shared workflow follows the same backbone with extras plugged into it.

A grouped ComfyUI workflow with load, sample and upscale stages connected by colored wires
A

Colored wires carry typed data

Purple MODEL, yellow CLIP, red VAE, pink LATENT and blue IMAGE sockets only accept matching types, which prevents most wiring mistakes before you even run the graph.

B

Groups keep large graphs readable

Boxes such as “Load & Encode” or “Upscale & Save” let you collapse, move and bypass whole stages at once. Bypassing a group with Ctrl+B is the quickest way to test a pipeline with and without a step.

C

Only changed nodes re-run

ComfyUI caches outputs. Edit the save prefix and nothing is resampled; change the seed and only the sampler and everything after it executes again.

D

Workflows travel with your images

Drag any PNG made in ComfyUI back onto the canvas and the full graph reappears. Workflows can also be exported as .json files and versioned like any other project file.

ComfyUI Desktop setup screen asking the user to choose an NVIDIA, AMD, Apple Silicon or CPU device

How to Get Started with ComfyUI on Windows

Windows users have three routes: the Desktop installer, the portable package with its own embedded Python, and a manual install from the source archive. The first launch looks the same for all three. You add at least one checkpoint, open the default graph and press Queue.

Pick an install method

Desktop is easiest and updates itself. Portable is a folder you can move between drives. Manual install gives the most control over Python and PyTorch versions.

Update your GPU driver

Install a current NVIDIA or AMD driver before the first launch so the bundled PyTorch build can find your card.

Add a checkpoint model

Place a .safetensors checkpoint inside models/checkpoints. SDXL base or a smaller SD 1.5 model is a sensible first choice.

Run the default graph

Select the model in the Load Checkpoint node, edit the prompt, then click Queue. Your image lands in the output folder.

ComfyUI Hardware and System Requirements

ComfyUI itself is light. The models are what need resources, and video memory is the number that matters most. NVIDIA cards with CUDA give the widest compatibility; recent AMD cards work through ROCm, Intel Arc through PyTorch XPU support, and Apple Silicon Macs through Metal. A CPU-only mode exists for testing, but it is very slow.

Plan disk space generously. A single SDXL checkpoint is about 6.5 GB, Flux-class models are larger, and a working library of checkpoints, LoRAs and upscalers often passes 100 GB. An SSD makes model loading far quicker.

Rendered dual-fan graphics card with notes on how much VRAM different ComfyUI models need
ComponentWorkable starting pointComfortable for SDXL, Flux and video
Operating systemWindows 10 64-bitWindows 11 64-bit, kept up to date
Graphics cardNVIDIA GTX/RTX with 6–8 GB VRAMNVIDIA RTX with 12–24 GB VRAM, or a recent supported AMD card
System memory16 GB RAM32 GB RAM or more for offloading large models
Storage40 GB free on any driveNVMe SSD with 200 GB+ for a model library
SoftwareCurrent GPU driver and a Chromium-based browserPython 3.12–3.13 and the newest PyTorch for manual installs

Advantages of Using ComfyUI

The benefits add up most for people who generate regularly: illustrators testing styles, studios producing variations, and developers who want to automate image creation.

1 file

The whole recipe in one file

Every PNG you save contains the exact graph that produced it. Months later you can drop that image onto the canvas and keep working from the same point, or send it to a colleague who gets your full setup in a single drag. For teams this replaces long setting checklists with something that cannot drift out of date.

Fast iteration

Cached nodes mean small edits re-render in seconds.

Scriptable API

Send workflows to the local server over HTTP and WebSocket.

Your files stay put

Prompts, models and outputs remain on your drive.

Live previews

Watch the latent form during sampling and stop early.

An ecosystem that keeps growing

Face detailers, segmentation, video helpers and tiled upscalers all exist as custom node packs you can install in a few clicks.

How to Generate AI Images with ComfyUI

The default graph that opens on first launch is a complete text-to-image pipeline. These are the adjustments that make the biggest difference to quality.

  1. Choose a checkpoint that matches your goalPhotographic, anime and illustration models are trained differently; the checkpoint shapes the look more than any prompt.
  2. Write the prompt as subject, setting, light, style“Old lighthouse on a basalt cliff, storm clouds, low sun, oil painting” beats a pile of quality tags.
  3. Use the negative prompt sparinglyName concrete faults you see, such as “blurry, extra fingers”, rather than long generic lists.
  4. Set resolution for the modelAbout 512 px for SD 1.5 and around 1024 px total area for SDXL and Flux, in the aspect ratio you need.
  5. Tune steps and CFG together20–30 steps with CFG 5–7 suits most SDXL models; Flux variants usually want a low guidance value.
  6. Lock the seed once you like a resultThen change one setting at a time so you can see what each change actually does.
Six AI images generated in ComfyUI including a misty forest, nebula, night city, crystals, a portrait study and desert dunes

// same graph, six checkpoints and prompts

ComfyUI model library listing checkpoints, LoRAs, ControlNet and upscale models beside loader nodes

Exploring Nodes, Models, and Custom Workflows

Once the basic graph feels familiar, the real range of ComfyUI opens up through three kinds of building blocks.

  • Loaders for checkpoints, LoRAs, VAEs, CLIP and ControlNet models
  • Conditioning nodes to combine, average or time-limit prompts
  • Latent tools for upscaling, compositing and noise injection
  • Image nodes for cropping, masking, blending and saving

ComfyUI Compared to Other AI Generation Tools

Form-based local interfaces such as AUTOMATIC1111 and Forge show one panel of settings, which is quicker for a first image. Hosted services such as Midjourney remove setup entirely but keep the models and pipeline closed. ComfyUI sits at the opposite end: more to learn at the start, far more freedom once you know it.

A single-form AI generator interface compared with a ComfyUI node graph
AspectComfyUIForm-based local UIsHosted generators
Learning curveSteeper at firstGentleVery gentle
Pipeline controlEvery step editableFixed order with extensionsMostly hidden
New model supportUsually very fastVaries by projectProvider’s own models
Runs offlineYesYesNo
CostFree softwareFree softwareSubscription or credits
ReproducibilityGraph stored in every imageParameters stored as textLimited
ComfyUI terminal log showing a local server on 127.0.0.1 with a checklist of safety practices

Is ComfyUI Safe and Reliable?

The core application is open source under GPL-3.0, published on GitHub and reviewed by a large community. By default the server only listens on your own machine, so nothing is reachable from the internet unless you deliberately change that. Prompts and images are processed locally.

The real risk sits in third-party add-ons. Custom nodes are Python code and run with the same permissions as ComfyUI itself, so treat them like any software you install.

Prefer .safetensorsThis format stores weights only. Avoid old pickle-based .ckpt files from unknown sources.

Vet custom nodesCheck stars, recent commits and open issues before installing a node pack.

Keep it on localhostOnly use --listen on a network you trust, ideally behind authentication.

Snapshot before updatesManager snapshots let you return to a known working set of nodes.

Troubleshooting Common ComfyUI Problems

Most problems announce themselves in the console window or as a red outline around a node. Read the first error line rather than the last; it usually names the cause directly.

ComfyUI missing node warning and a console showing a CUDA out of memory error with the low VRAM fix
torch.OutOfMemoryErrorOut of VRAM

Lower the resolution or batch size, use an fp8 or smaller model, or start ComfyUI with --lowvram. Close other GPU-heavy apps such as games and video editors.

Missing node typesRed nodes after loading

The workflow uses custom nodes you do not have. Open Manager, choose “Install Missing Custom Nodes”, then restart.

Torch not compiled with CUDAGPU not detected

A CPU-only PyTorch build is installed. Reinstall PyTorch for your CUDA version, or use the portable or Desktop build that bundles it.

Value not in listModel not found

The file is in the wrong folder or has another name. Move it into the matching models subfolder and press R to refresh.

Black or grey imagesBroken output

Often a VAE precision issue with SDXL or SD 1.5. Try a separate fp16-fixed VAE or start with --fp32-vae.

UI looks brokenAfter an update

Hard-refresh the browser tab, then update ComfyUI and all custom nodes together so their versions match.

Frequently Asked Questions About ComfyUI

Is ComfyUI free to use?

Yes. ComfyUI is open-source software released under the GPL-3.0 license, and running it locally costs nothing. Individual models have their own licenses, so check the terms of any checkpoint before using its output commercially.

Can ComfyUI run without an NVIDIA graphics card?

It can. Supported AMD cards work through ROCm, Intel Arc cards through PyTorch XPU, and Apple Silicon Macs through Metal. A CPU mode also exists, but generation is many times slower.

How much VRAM do I need?

Around 6–8 GB handles SD 1.5 and SDXL with sensible settings. Larger image models and video models are far more comfortable with 12–24 GB, though memory-saving options and quantized models help on smaller cards.

Does ComfyUI need an internet connection?

Only for downloading the program, models and custom nodes. Once everything is on your drive, generation runs fully offline.

What is the difference between ComfyUI and ComfyUI Manager?

ComfyUI is the application. ComfyUI Manager is an extension that installs, updates and disables custom nodes, finds missing nodes in a workflow and saves snapshots of your setup.

Can I use ComfyUI images commercially?

ComfyUI places no restriction on what you make. The limits come from the model license; some are permissive, while others restrict commercial use or require a paid license above a revenue threshold.

Where are my generated images saved?

In the output folder of your ComfyUI directory, or the output location you chose during Desktop setup. The filename prefix is set in the Save Image node.

Final node · your first session

Start Creating with ComfyUI on Windows

The fastest way to learn ComfyUI is a short, focused first session. Resist installing dozens of node packs on day one; the core graph already teaches how diffusion works. Follow this plan and you will finish with a workflow you understand and can build on.

MINUTES 0–20

Render the default graph

Load one checkpoint, write a clear prompt, and queue it with three different seeds.

MINUTES 20–40

Change one thing at a time

Lock a seed, then compare steps, CFG and sampler choices side by side.

MINUTES 40–60

Add a second stage

Insert a latent upscale and a low-denoise pass, then save the graph as your own template.