Free | No tracking | Every fact with a source|German and English

Your First Image with ComfyUI

Install Comfy Desktop, learn the interface, and create your first AI image with FLUX.2 [small] 4B or Z-Image Turbo.

Einsteiger45 Minuten plus Download (etwa 20 GB Modelle)

By the end of this guide, ComfyUI will be running on your Windows PC. You’ll know the main parts of the interface, have loaded an official template with all models, and created your first image. You’ll also know where your images are saved, how to save a workflow, and which model fits your graphics card.

This guide is the detailed version of our short guide "Set Up ComfyUI on Windows". General info about the program is on the ComfyUI program page. If you already installed ComfyUI, jump straight to step 6.

What you need

  • Windows 10 or 11, 64-bit (x64 or ARM64).
  • Your own graphics card. The manufacturer says it isn’t required, but it is strongly recommended. For this guide: an NVIDIA card with at least 8 GB VRAM. AMD and Intel Arc cards are also supported.
  • RAM: at least 8 GB, 16 GB RAM recommended.
  • Free storage space: about 5 GB for ComfyUI itself and around 20 to 23 GB for the models in a template. Plan on at least 40 GB free, preferably on an SSD.
  • Internet for downloading ComfyUI and the models.
  • Current graphics driver. For NVIDIA, get it through the NVIDIA App; for AMD, through AMD Adrenalin.

Tip: Our calculator shows which models will run with your VRAM.

1. Desktop app or portable version?

ComfyUI for Windows comes in two local versions. Both use the same interface and the same models.

Comfy DesktopComfyUI Portable
What it isA program with an installer that installs, starts, and updates ComfyUI for youA packed archive (.7z) with its own Python, just unpack it
For whomAccording to the developers, the easiest way for new usersAccording to the README, “not recommended for normal users”
Updatesautomatic for the app, ComfyUI with one clickmanually
Load modelsDownload directly from the template into the correct folderDownload in the browser, place the file in the folder yourself
Interfaceseparate windowin the browser (recommended: Chrome starting with version 143)
Extrasmultiple installs side by side, snapshots for rollbackruns from any folder

The portable version has separate packages for NVIDIA, AMD, and Intel. The standard NVIDIA package includes Python 3.13 and PyTorch with CUDA 13.0 and supports cards from the 20 series onward. For the 10 series and older cards, there is a separate package with CUDA 12.6.

Our recommendation for getting started: Comfy Desktop. The rest of this guide describes the desktop app. Where the portable version differs, that will be noted.

Decision help: Comfy Desktop or ComfyUI Portable
For most beginners, Comfy Desktop is the right choice.

Important: Comfy Desktop has been completely rewritten and now manages multiple ComfyUI installations (“instances”). Older guides still describe the old desktop app with only one installation. The menus look different there.

2. Download and install Comfy Desktop

  1. Open comfy.org/download. The site detects your operating system automatically and offers the right installer.
  2. Download the .exe file.
  3. Start the file with a double-click and follow the instructions. You do not need administrator rights to install it on Windows.
  4. Then start Comfy Desktop from the Start menu or the desktop shortcut.

If Windows blocks the installer, read our help on SmartScreen and Defender. Only download the installer from comfy.org.

3. First launch: install locally

The first time you open it, Comfy Desktop shows a setup screen asking How do you want to run Comfy? The window stays there until you finish. If you close the app before then, the same screen appears again the next time you start it.

  1. Cloud or Local: Choose the Local card. That runs ComfyUI on your PC, even offline. Cloud would run ComfyUI on Comfy’s servers, which is not covered in this guide.
  2. Check the boxes: You must check I agree to the EULA and Terms of Service to continue. Help improve Comfy by sharing anonymous usage data is optional and selected by default; according to the manufacturer, no workflows, prompts, or images are sent. Remove the check if you do not want that. Opt in to beta features is also optional and selected by default. For beginners, we recommend unchecking it so you only get tested features.
  3. Express Install: Leave Express Install with recommended settings unchecked. That lets the wizard show you the version, location, and graphics card before anything is installed.
  4. Click Continue.

Tip: If Comfy Desktop detects a weak graphics card, the Cloud card shows Recommended for your hardware. That is only a hint. You can still install locally.

4. Set up a new instance: graphics card and install location

Now the Create a New Instance wizard opens. Here you choose how ComfyUI will be installed.

  1. Name: “ComfyUI” is set by default. You can leave it as is.
  2. Public Builds: Leave this option selected. This is the normal ComfyUI installation for your hardware.
  3. Release: Leave Stable (Recommended) selected.
  4. Hardware: Comfy Desktop detects your graphics card and preselects the matching package (NVIDIA, AMD, Intel Arc, or CPU). Each option shows the ComfyUI version, Python version, and download size. Check that the right card is selected. Choose CPU only if you do not have a suitable graphics card, because ComfyUI will run much slower.
  5. Install Location: This is where ComfyUI will be installed. The manufacturer strongly recommends an SSD and advises against using the root of C:\. The field shows free space and the estimated size. Without changes, Comfy Desktop installs to %LOCALAPPDATA%\Comfy-Desktop\ComfyUI-Installs.

If there is not enough free space, you will see Low Disk Space. In that case, choose another location instead of clicking Continue Anyway. Keep in mind: the models will need about 20 GB more later.

Start the installation. Comfy Desktop downloads Python, sets up the environment, and installs ComfyUI. You can see the current step on the progress screen. Depending on your internet connection, this takes a few minutes.

Tip: If drive C: is almost full, install to a different drive. You can later change the location for new instances and the shared model folder under ☰ → Desktop Settings in the Advanced and Storage tabs.

5. Choose the template

After installation, Comfy Desktop shows a selection of templates with the Video, Image, 3D, and Audio tabs. A template is a ready-made workflow, meaning a sequence of building blocks.

  • In the Image tab, choose the FLUX.2 [Small] 4B: Text to Image template. Comfy Desktop will then download the needed models in the background.
  • With Skip & open ComfyUI, you can open the interface while the downloads continue.
  • If there is not enough space for a template’s models, the wizard locks that template.

You can also skip this step and open the template later in ComfyUI (step 7). After that, your instance appears as a card in the Comfy Desktop dashboard. Clicking the card starts ComfyUI. When it starts, the window first shows progress and then the ComfyUI interface.

6. Interface overview

ComfyUI looks unusual at first. Instead of a text box, you see a workspace with boxes connected by lines. Each box is a Node, meaning a work step: load model, understand text, calculate image, save image.

ComfyUI interface with numbered areas
The main areas: sidebar, canvas, run bar, and right sidebar.

Top bar (Comfy Desktop only): the title bar of Comfy Desktop. On the left, ☰ opens the app menu with Desktop Settings and Quit Desktop. In the center, a button shows the name of the running instance. On the right, you’ll find Downloads with the progress of all model downloads.

Left sidebar: icons for

  • Assets: all created and imported images,
  • Node Library (Nodes): all available building blocks,
  • Model Library (Models): all models ComfyUI found in your model folder,
  • Workflows: your saved workflows,
  • Templates: the template library,
  • Apps: simplified app views of workflows.

Canvas: the large area in the middle with the nodes.

Run bar: floats above the canvas. It contains

  • the number of runs (Batch Count, default 1),
  • the Run button, which queues the workflow (Ctrl + Enter),
  • the menu for queue mode (leave it on Run),
  • a button to cancel the current run,
  • the number of active jobs. Click it to open the queue.

Top: tabs for your open workflows and a switch for the right sidebar on the right.

Right sidebar: shows the settings (Parameters) of the selected node, an explanation (Info), and the Issues tab with errors and missing models. In the documentation, this tab is still called Errors.

Bottom left: help center, a bottom panel with logs and keyboard shortcuts, and Settings.

Bottom right: tools for the canvas, for example Fit View. This fits the view so the whole workflow is visible (keyboard shortcut: period .).

Important: ComfyUI’s interface is available in English, Chinese, Russian, French, Japanese, and Korean, but not in German. This guide therefore uses the English labels.

7. Open the FLUX.2 [small] 4B template

If you did not already choose the template in step 5, open it now.

  1. Click Templates in the left sidebar. You can also find Browse Templates in the menu.
  2. The Templates window opens. In the search field at the top right (Search ...), type klein 4b.
  3. Click FLUX.2 [Klein] 4B: Text to Image.
Template library with search for klein
The search helps you find the FLUX.2 small template quickly.

The workflow appears on the canvas. It contains a Prompt node for your text and two large nodes:

  • Text to Image (FLUX.2 Small 4B): the base model. It is slower, but more flexible.
  • Text to Image (FLUX.2 Small 4B Distilled): the distilled fast version with only 4 steps.

Both are connected to the same prompt. When loaded, only the base node is active; the Distilled node is purple, meaning it is bypassed and not running. If you want the fast version, click the Distilled node and press Ctrl+B, then it becomes active. If both run, you get two images per run for comparison. These large nodes are called subgraphs: they combine multiple nodes into one box. Double-click an empty spot inside the box to see the nodes inside it.

License: FLUX.2 [small] 4B is licensed under Apache 2.0. According to Black Forest Labs, you may also use it commercially. Note: the larger FLUX.2 [small] 9B version uses a non-commercial license. See License for more.

8. Download missing models

The template contains only the workflow, not the models. When loading, ComfyUI checks whether all files are present. If something is missing, you will see:

  • a node with a red outline on the canvas,
  • a notice in the top right such as 3 issues found with View details,
  • in the right sidebar under Issues, the Setup required section with the Missing Models list. Depending on the version, a window titled This workflow is missing models may appear instead.
Loaded template with a red-outlined node and the note “3 issues found”
The red border shows that models are missing. The purple node below is the bypassed Distilled version.

Each file in the list shows its destination folder and size. Here’s what to do:

  1. Click Download all. You can download individual files with Download in the corresponding row. As long as the Distilled node is bypassed, only three files are missing (base model, text encoder, VAE, about 15 GB total). If you turn it on, flux-2-klein-4b.safetensors at 7.22 GB is added.
  2. Comfy Desktop handles the download and automatically places each file in the correct subfolder.
  3. You can see progress in the top right under Downloads. There you can restart a failed download with Retry.
  4. When all downloads are done, press R in ComfyUI. That reloads the model lists. You can also click Refresh in the list.
Issues tab with the list of missing models
Use Download all to get all files at once.

These are the files the template downloads (sizes according to the template):

FileFolderSizeUsed for
flux-2-klein-4b.safetensorsmodels/diffusion_models7.22 GBMain model, distilled version
flux-2-klein-base-4b.safetensorsmodels/diffusion_models7.22 GBMain model, base version
qwen_3_4b.safetensorsmodels/text_encoders7.49 GBText Encoder, understands your prompt
flux2-vae.safetensorsmodels/vae320.6 MBVAE, turns the result into an image

All four files together are about 22 GB. The downloads come from Hugging Face. If a download stops or does nothing for a long time, this page can help. Model downloads in Comfy Desktop can be resumed: if you quit the app in the middle of a download, it appears paused under Downloads → View All Downloads the next time you start it and can be continued with Resume.

Folder structure for the models of FLUX.2 [small] 4B
Each file type has its own subfolder inside the models folder.

Where is the model folder? By default, Comfy Desktop uses a shared model folder for all instances. On a standard install, it is located under %LOCALAPPDATA%\Comfy-Desktop\ComfyUI-Shared. If you installed the app on another drive, it is under <drive>\Comfy-Desktop\. You can find it under ☰ → Desktop Settings → Storage at Shared Models. Clicking the folder icon opens it in Explorer. The entry labeled DOWNLOADS is the destination for new downloads.

Portable version: Here, clicking Download starts a normal browser download. After that, place the file yourself in the correct folder under ComfyUI_windows_portable\ComfyUI\models\, for example flux-2-klein-4b.safetensors in models\diffusion_models. Then restart ComfyUI or press R.

Tip for 8 GB cards: The template uses the full version of the model. According to Black Forest Labs, FLUX.2 [small] 4B needs about 13 GB VRAM. The ComfyUI documentation lists 8.4 GB for the distilled version and 9.2 GB for the base version and links smaller fp8 files for both. If you only have 8 GB, also download flux-2-klein-4b-fp8.safetensors, place the file in models/diffusion_models, press R, and select it in the unet_name field of the Distilled node. Otherwise, the Base node will still load the full file: use the fp8 version flux-2-klein-base-4b-fp8.safetensors there as well (linked in the ComfyUI documentation), or turn it off with Ctrl+B. More on the formats: fp8 and FP16/BF16.

9. Write the prompt

The prompt is your image description. The template includes an example: a hedgehog wearing a party hat in the style of an old digital camera.

  1. Click in the text field of the Prompt node.
  2. Delete the example text and write your own description.
  3. Write in English if possible and be specific: what is shown, where, in what light, in what style?

Example to try:

A cozy wooden cabin in a snowy forest at dusk, warm light glowing from the windows, soft falling snow, cinematic photography

The base node also has a negative prompt for things that should not appear in the image. In the template, it is empty. The distilled version does not use a negative prompt.

10. The most important settings

For your first image, you do not need to change anything. The template is already set up sensibly. But these values are worth knowing:

Prompt node and settings of the FLUX.2 small template
Prompt, image size, and seed are shown directly on the nodes.

Image size (resolution): The template creates images at 1024 × 1024 pixels. On the two large nodes, the fields for width and height are called value and value_1. Inside the subgraph, you’ll find them as the Width and Height nodes. Larger images need more VRAM and time.

Seed: The starting number for the random noise the image comes from. The same seed, prompt, and settings produce the same image. The field here is called noise_seed. Below it, control_after_generate is set to randomize: after each run, ComfyUI chooses a new seed, so you get a different image each time. If you like an image and want to only slightly change the prompt, set it to fixed.

Steps (steps): How often the model refines the image. The template uses 20 steps for the base version and 4 steps for the distilled version. Distilled models are trained for only a few steps. These values are inside the subgraph in the Flux2Scheduler node.

CFG: How strongly the model follows the prompt. The template sets CFG to 5 in the CFGGuider node for the base version and 1 for the distilled version. In their own example code, Black Forest Labs also uses 1 for the distilled version. Leave the values as they are for now.

Sampler: The template uses euler. You do not need to change that.

Model fields (unet_name, clip_name, vae_name): These show which file is loaded. After downloading, they should display the file names from the table in step 8. If they show null or an unknown name, the model was not found.

11. Generate the image

  1. Click Run in the run bar or press Ctrl + Enter.
  2. The number of active jobs in the run bar shows that a job is running.
  3. The finished image appears in the Save Image node (in both if the Distilled node is active).

If you click the number of active jobs, the queue opens. There you’ll see running, waiting, and finished jobs. Use the cancel button in the run bar to stop a running process.

Tip: Set Batch Count in the run bar to 4 and click Run. ComfyUI will then create four runs in a row with different seeds. That helps you find an image you like faster.

12. Where your images are saved

Every image from a Save Image node is automatically saved by ComfyUI as a PNG file.

  • File name: It starts with the prefix from the node. In this template, that is Flux2-Klein, followed by a running number, for example Flux2-Klein_00001_.png.
  • Comfy Desktop: Images are saved in the shared output folder. You can find it under ☰ → Desktop Settings → Storage at Shared Output. Click the folder icon to open it. By default, it is located in %LOCALAPPDATA%\Comfy-Desktop\ComfyUI-Shared.
  • Portable version: Images are stored in ComfyUI_windows_portable\ComfyUI\output.
  • In ComfyUI: All generated images are in the left sidebar under Assets in the Generated area. You can right-click an image to download it.

Tip: Every ComfyUI PNG contains the complete workflow. If you drag such an image into the ComfyUI window, ComfyUI loads exactly the workflow, with all settings, that created it.

13. Save the workflow

If you changed the prompt or settings, save the workflow so you can continue later.

  1. Press Ctrl + S or open the menu via the Comfy logo in the top left and choose File → Save As.
  2. Enter a name, for example my-first-image.
  3. You can find the saved workflow in the left sidebar under Workflows in the Browse area. Click it to open it again.
Saving a workflow through the menu
Saved workflows appear in the sidebar under Workflows.

If you want to share or back up the workflow, use Export in the menu. ComfyUI will then save it as a .json file. Use Ctrl + O to open such a file again.

14. Alternative: Z-Image Turbo (16 GB VRAM and up)

If you have a graphics card with 16 GB or more, try Z-Image Turbo too. Alibaba’s Tongyi Lab model has 6 billion parameters, produces especially photorealistic images according to the manufacturer, and can render English and Chinese text in images well. According to the manufacturer, it fits on graphics cards with 16 GB VRAM.

  1. Open Templates and search for z-image.
  2. Choose Z-Image-Turbo: Text to Image.
  3. Download the missing models as in step 8.
FileFolderSize
z_image_turbo_bf16.safetensorsmodels/diffusion_models11.46 GB
qwen_3_4b.safetensorsmodels/text_encoders7.49 GB
ae.safetensorsmodels/vae319.8 MB

The FLUX.2-small template uses a text encoder file with the same name (qwen_3_4b.safetensors). ComfyUI checks missing models by file name. If you already have it, ComfyUI will not ask for it again.

Template settings: Here there is only one large node, Text to Image (Z-Image-Turbo). It shows prompt (text), width and height (1024 × 1024), seed, and steps directly on the node. The template uses 8 steps and CFG 1. The model card also says 8 steps and that turbo models do not need extra guidance. Leave CFG at the template value. More on this under Turbo models.

License: According to the model card, Z-Image Turbo is licensed under Apache 2.0.

Which model fits your graphics card?

The values come from our model database and apply to the format named in each row. If the VRAM is not quite enough, ComfyUI moves parts of the model into system RAM (offloading). That works, but it is slower.

VRAMRecommendationAlternatives
8 GB[FLUX.2 [small] 4B](/modelle/flux2-klein-4b/) as fp8 (8.4 GB)Stable Diffusion XL 1.0 (8 GB)
12 GB[FLUX.2 [small] 4B](/modelle/flux2-klein-4b/) as fp8, the full version (13 GB) with some offloadingSD 3.5 Large fp8 (9.6 GB, estimated), SD 3.5 Medium (9.9 GB)
16 GBZ-Image Turbo (bf16, 16 GB) or FLUX.2 [small] 4B in full version[FLUX.1 [fast]](/modelle/flux1-schnell/) fp8 (13.5 GB, estimated), HiDream-I1 fp8 (16.5 GB)
24 GB and more[FLUX.2 [dev]](/modelle/flux2-dev/) fp8 (24 GB) or Qwen-Image fp8 (21.5 GB, estimated)Qwen-Image-2512 fp8 (21.5 GB, estimated), [FLUX.2 [small] 9B](/modelle/flux2-klein-9b/) fp8 (17.4 GB, estimated)

License: FLUX.2 [dev] and FLUX.2 [small] 9B are under the FLUX Non-Commercial License and may not be used commercially. SD 3.5 Large and Medium are under the Stability AI Community License. Check the license on each model’s page before selling images or using them in projects.

The buying guide shows which graphics card is worth it for which model.

Common problems

  • “CUDA out of memory” or “Allocation on device”: Not enough VRAM. Reduce the image size, close other graphics-heavy programs, or use the fp8 version of the model. See CUDA out of memory and Allocation on device.
  • “Prompt outputs failed validation” or “Value not in list”: A model is missing or has a different name in the load node. Check that all downloads are finished, press R, and select the file again in unet_name, clip_name, or vae_name. See Value not in list.
  • “Missing Node Types”: The template needs a newer ComfyUI version. Update the instance in Comfy Desktop via the Update tab in the Manage panel (right-click the instance card → Manage). See Missing Node Types.
  • “mat1 and mat2 shapes cannot be multiplied”: The models do not match, for example a wrong text encoder. FLUX.2 [small] 4B needs qwen_3_4b.safetensors, while the 9B version needs qwen_3_8b_fp8mixed.safetensors. See mat1 and mat2 shapes.
  • Black images: Usually a problem with the VAE’s numerical precision. See Black images or NaN values.
  • “Error while deserializing header”: A model file is damaged or incomplete, often after an interrupted download. Delete the file and download it again. See Error while deserializing header.
  • Download hangs or fails: Restart it under Downloads with Retry, or download the file manually using the link in the template. See Hugging Face download fails.
  • “Reconnecting” or ComfyUI stops responding: The connection to the ComfyUI process was interrupted, for example after a crash. See Reconnecting. You can find the logs in the instance’s Manage panel under the Terminal tab.
  • ComfyUI does not start, NVIDIA driver error: Update your graphics driver. See NVIDIA driver too old.
  • Graphics card not detected: Check in the wizard under Hardware that the right card is selected, and update the driver. For AMD, see AMD graphics card not being used.

What’s next?

Sources

As of: Oct 21, 2026