Image and video generation

ComfyUI first image: install, load a model and fix common errors

Verify the basic ComfyUI path by saving your first image

ComfyUI runs workflow nodes to create an image from a checkpoint1 and prompt2, then saves it through a Save Image node. On a first run, verify that it finds the model, completes the graph, and produces a file you can open.

Install Comfy Desktop for your operating system—Windows, Apple Silicon Mac, or Linux—and wait for its new runtime3 environment to be ready. This guide focuses on saving a cup image through the default workflow. If you already use a Portable or manual installation, you do not need to reinstall; add the model and workflow there and follow the same checks.

Requirements and key details
  • The checkpoint and workflow JSON serve different roles; both are needed.
  • Confirm the first image by saving it through Save Image, not just by seeing a preview.
  • Changing one prompt condition while keeping the seed fixed makes two results easier to compare.

Start with the official Desktop and default workflow

Choose Comfy Desktop for Windows, Apple Silicon Mac, or Linux from the official download page. Once the new runtime is created, verify that the default workflow opens and runs. Adding many third-party nodes at the start makes it harder to distinguish setup issues from extension conflicts. The supplied workflow needs no custom nodes or API-key-based cloud nodes, so verify the basic path first.

Prepare the checkpoint and workflow JSON separately

The image-model file is v1-5-pruned-emaonly-fp16.safetensors. Review the distribution page’s terms, download it, and place it in the models/checkpoints folder read by the active ComfyUI environment. If Desktop is configured to use a shared model folder, use that location. The checkpoint supplies the image model; the JSON contains node connections and settings, so the JSON alone cannot generate an image.

Drag the workflow JSON into the interface or open it through Workflows → Open. Select the safetensors file in Load Checkpoint to connect it to the graph. If it is missing from the list, check that you placed it in the folder used by the active environment, then refresh or restart the app. Renaming the extension does not move the file or make it compatible.

A conceptual illustration of prompt, model and finished image
The first run is complete when the graph finishes and Save Image creates a file.

Keep the default settings for the first image

Keep 512×512, batch 1, seed 42, 20 steps, CFG4 7, euler·normal, and denoise 1, then press Run. The prompt is a short English sentence describing a ceramic cup on a wooden table with light from a window. Leaving the settings unchanged makes it easier to see how far the default path works.

The first run may include checkpoint loading. After the nodes finish and Save Image runs, check that a file was actually written. A preview and a result saved on disk are different; reopen the file and inspect the cup, table, and window light. If no file exists, first check whether execution reached the save node rather than changing the prompt.

Change only one prompt condition on the second run

After the first file is saved, keep the model, resolution, step count, and seed 42 fixed and change only the lighting description. For example, describe softer window light to isolate what changed. Changing the sampler or model at the same time makes it hard to explain a different cup shape. A fixed seed does not guarantee identical pixels across models or environments.

If the second image is not to your taste but was saved successfully, that is not an installation failure. A different style may call for another model, which requires its own checkpoint and settings. Keep the first default image as a baseline for later comparisons.

Two pictures of the same cup and plant in cool and warm light, with an adjustment knob between them
Keep the seed and model fixed and change one prompt condition to isolate the difference.

Diagnose a stall from its symptoms

If the checkpoint is missing, check its filename, models/checkpoints location, and shared-folder setting. For a red node or missing-node warning, verify that you opened the supplied workflow JSON; this path needs no custom node. If CUDA5 reports out of memory, close other GPU6 workloads and return to batch 1 at 512×512. Do not reduce several values at once; revert the last change first.

If the image saves but takes a long time, check the log for the actual GPU path. This ComfyUI path on Apple Silicon uses PyTorch MPS7 and differs from an MLX-based LLM8 runtime. Keep the successful default settings as a baseline, then add workload requirements one at a time to continue isolating delays.

Record the saved file and runtime conditions together

The measurement template records GPU, dedicated VRAM9, system RAM10, OS/ComfyUI/PyTorch versions, backend, model filename and SHA-256, resolution, and sampling settings. Record initial checkpoint loading as coldLoadSeconds; after the specified warm-up with seed 41, generate three times with seeds 42, 43, and 44 and calculate the median. Repeatedly pressing Run may not execute sampling each time, so verify logs and progress and record samplingExecuted.

The JSON demonstrates node connections and settings; it is not a speed table for a particular GPU. Before measurement, fields for coldLoadSeconds, warm-up completion, actual sampling, totalSeconds, peakVramGB, and file/log locations are empty. Null means unmeasured, not zero seconds. Consider an upgrade only when the required resolution or feature causes errors or repeated delays, and compare current and candidate hardware with the same model and settings.

A desk with a notebook containing a landscape sketch, a stopwatch, and a box holding GPU, CPU, and memory components
Record the saved file and runtime settings together to compare equivalent runs.

Terminology notes

  1. Checkpoint — A file containing saved model weights and related state. Versions or tasks in one model family may use different checkpoints.

    Back to the text
  2. Prompt — The input text sent to a model. For generative models it describes the desired result and strongly shapes the output.

    Back to the text
  3. Runtime — The software environment that provides facilities needed while a program runs. In local AI, it can also refer to a model execution engine.

    Back to the text
  4. CFG — A technique that combines conditioned and unconditioned predictions to adjust how generation follows its input. Distilled models may require it to be disabled; recommended values vary by model.

    Back to the text
  5. CUDA — A software platform for general-purpose computing on NVIDIA GPUs.

    Back to the text
  6. GPU — A processor designed to handle many calculations in parallel. It performs model computations during AI inference.

    Back to the text
  7. PyTorch MPS — The PyTorch backend for computation on Apple GPUs. Required operations and models must be supported on MPS.

    Back to the text
  8. Large language model — A model trained on large text datasets to learn language patterns and process or generate text in context.

    Back to the text
  9. VRAM — Memory used by a graphics card’s GPU to store model weights and intermediate values.

    Back to the text
  10. System RAM — System memory that temporarily holds data while programs run.

    Back to the text

Frequently asked questions

What should you check first in this article?
ComfyUI runs workflow nodes to create an image from a checkpoint and prompt, then saves it through a Save Image node. On a first run, verify that it finds the model, completes the graph, and produces a file you can open.
How much memory does it need?
The JSON demonstrates node connections and settings; it is not a speed table for a particular GPU. Before measurement, fields for coldLoadSeconds, warm-up completion, actual sampling, totalSeconds, peakVramGB, and file/log locations are empty. Null means unmeasured, not zero seconds. Consider an upgrade only when the required resolution or feature causes errors or repeated delays, and compare current and candidate hardware with the same model and settings.