# ComfyUI

> A free app for AI images and video. You join boxes called nodes into a graph.

**Field:** Artificial Intelligence  
**Category:** AI Tools & Platforms  
**Also known as:** Comfy UI, ComfyUI Workflow, comfy-cli

## Think of it like

It is like building a marble run. Each piece does one thing, and you link them in the order you want.

## Definition

ComfyUI is a free, open source app for making images and video with AI models. Instead of one prompt box, you build a graph of boxes called nodes. One loads a model, one holds the prompt, one makes the image, and wires join them. You can save the graph and run it again. It runs on your own computer, often with Stable Diffusion or Flux models.

## Example

Emma builds a ComfyUI graph that turns a product photo into four ad sizes. She runs it on 50 photos overnight.

## Example code

```bash
pip install comfy-cli
comfy install
```

Run these two lines to get ComfyUI and set it up on your PC.

## Why it matters

It gives full control over each step of making an image. A graph can be shared, so others get the same result.

## Common mistake

Thinking ComfyUI is a model. It is the app that runs models, and you add the models yourself.

## Three principles

- **Nodes and wires.** Each box does one step.
- **Save and rerun.** A graph is a reusable recipe.
- **Runs locally.** Your own computer, your own models.

## Related terms

- [Stable Diffusion](https://learn.benibix.com/term/ai/stable-diffusion)
- [Diffusion Model](https://learn.benibix.com/term/ai/diffusion-model)
- [Text-to-Image](https://learn.benibix.com/term/ai/text-to-image)
- [Midjourney](https://learn.benibix.com/term/ai/midjourney)
- [Inpainting](https://learn.benibix.com/term/ai/inpainting)

## Told apart from

- [ComfyUI vs Stable Diffusion](https://learn.benibix.com/compare/comfyui-vs-stable-diffusion): People think ComfyUI is an AI model, and it is not. ComfyUI is the app, and Stable Diffusion is one of the models it runs. The model makes the picture. ComfyUI lets you wire up the steps around it, like the prompt and the size. You download the two parts on their own.

## Taught in

- [Midjourney and AI Image Tools](https://learn.benibix.com/learn/ai-ai-tools/midjourney-and-ai-image-tools): AI Apps and Tools, 9/10

![Three panels. Left: four boxes joined by wires, model, prompt, sampler and image, as in ComfyUI. Middle: licensed stock photos and public domain art feeding a model, with a crossed-out arrow from your own files. Right: a typed request, then an app on screen, then a live web address.](https://learn.benibix.com/diagrams/ai6-make-tools.svg)

---

Source: https://learn.benibix.com/term/ai/comfyui
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
