ComfyUI Guide: Read Workflows and Create a First AI Image

The first time you open ComfyUI, the screen can look like a maze of wired boxes. You do not have to memorize them all. Start at the saved image and follow the wires back to the model and text, then make one image with a basic workflow.

Connected blocks lead from a sheet of paper to an image of a leaf, representing separate image-generation steps.

ComfyUI breaks image generation into visible steps

ComfyUI lets you build an image-generation process from connected nodes. Some nodes load a model, others prepare text or image data, and the final nodes turn the result into an image file. You can change a step and save the connections for later, provided the machine has every model, node, and component the workflow needs.

Think of a kitchen: ComfyUI is the workspace, a model is a tool with particular capabilities, and a workflow is a recipe. Opening the recipe is not enough if you lack the ingredients. A workflow may open even when its model or nodes are missing.

ComponentsRoleCommon misconceptions
ComfyUIConnect and invoke processing stepsThe application is not the image-generation model weights
Model / checkpointWeight files containing capabilities learned during trainingModel families use different components and requirements
WorkflowNode connection graph with settingsThe JSON file does not bundle all model files
Custom nodeExtensions that add tasks or integrationsMay include code and packages executed locally; check the developer

ComfyUI workflow documentation explains that a link connects a node’s output to another node’s input, and their data types must match. You cannot connect arbitrary boxes. The visible paths make troubleshooting easier, though you have to learn the data types and manage more components than in a single-prompt service.

Follow the workflow from prerequisites to the image file

The image below uses Stable Diffusion 1.5 or SD1.5 from the introductory documentation to show what each node does. This is not a claim that SD1.5 is the newest model or the best for every task. Other model families may need different loaders and text encoders; use a template made for the model you choose.

Developer SD1.5 workflow: A loads the model, B defines latents, C encodes text, D samples latents, E decodes the image, and F saves it
Demo image from Comfy-Org showing edges and nodes A–F. Read along with the list below. Open the original image to view the text on mobile. The menu appearance may differ from the model being used. Source: Comfy-Org/docs Used according to GPL-3.0 Compress and convert to WebP, keeping the original image. Not the experimental results of KrobClick
  1. A. Load Checkpoint: Load the components needed for this example, sending MODEL to the image sampler, CLIP to text encoding, and VAE to image decoding. Three branches do not mean three images are created.
  2. B. Empty Latent Image: Set the default data area and image size, such as 512 × 512 pixels, along with the number of images per set. latent is a compressed image representation for calculation. It is not yet a viewable image file. And this node does not create the detailed image itself.
  3. C. CLIP Text Encode: Converts text into conditioning data for the model. The example uses two sets: desired and unwanted content. Human-readable sentences are not sent directly into KSampler.
  4. D. KSampler: Uses the model, conditioning, latent, and sampling settings for multistep denoising. Output remains LATENT, so it cannot connect directly to Save Image.
  5. E. VAE Decode: Convert processed latent data to IMAGE pixels. Before this step, no normal image is available for the save-image node.
  6. F. Save Image: Receive image data and save it as a file. The data creation step and the file writing step are therefore separated.

Empty Latent Image sets up the initial image space; it does not add noise according to the seed. Seed-based noise preparation happens within the sampler, as shown in the KSampler reference code. VAE converts between latent representations and pixels. Separating these jobs helps you find the right node when the size, randomization, or visible image is wrong.

If left-to-right tracing feels confusing, start at Save Image and follow the wires backward. Its image comes from VAE Decode, whose latent comes from KSampler. Where does the sampler get the model and conditioning? Then trace forward once more. A box’s position on the screen does not dictate execution order.

Choose an installation method based on your device and maintenance capacity

You can run ComfyUI locally or use a cloud service. Before downloading a large model, check both the System requirements and the model’s own page. Memory needs depend on the model, resolution, batch size, and processing method; a VRAM figure from one workflow is not a universal minimum.

For the Windows portable package with NVIDIA, the Official guide says to launch run_nvidia_gpu.bat and open the address it displays, such as http://127.0.0.1:8188, in your browser. Leave the launcher window open or the service may stop. That address points to your own machine; it does not mean an external website is processing the image.

Seeing the web interface only proves the service started. It does not prove that the model loads or the GPU can run it. Generate an image from a small workflow next, and leave storage space for models, outputs, and backups.

Create the first image using a template matching the model

First-image guide says you can begin with a template or an image containing an embedded workflow. Menu labels and button positions may differ by version, so follow the tasks below rather than relying on one exact UI.

  1. Open the workflow template library and choose a basic text-to-image workflow matching the model you want to learn. This article uses SD1.5.
  2. Check the template's required models, download from original sources, verify licenses, and place them in specified folders. Basic-example checkpoints are usually under ComfyUI/models/checkpoints but not every model type belongs here
  3. Select the filename in the loader node, rather than only copying files into folders. If the list has not updated, refresh or restart according to the documentation.
  4. Set the size 512 × 512 and batch size 1 for this SD1.5 exercise. Use the sampler, scheduler, and template values first.
  5. Enter a trial prompt, such as a ceramic cup on a wooden table, soft window light, simple background and use the exercise's negative prompt or leave it blank for an easier start. This is a test brief, not a guarantee of the resulting image.
  6. Press Run or Queue according to the screen you are using. See which steps are working. If an error occurs, keep the text and node name before adjusting other values.
  7. After generating an image, save workflow JSON, model names, and settings as a baseline before further experiments

The Models documentation distinguishes checkpoints, VAEs, LoRAs, and other model files. Some architectures separate the image model, text encoder, and VAE. Moving from SD1.5 to another family may require a different workflow, not merely a new checkpoint filename.

The values of KSampler answer different questions.

Once you have an image, examine the KSampler settings one at a time. This table describes a basic workflow. Accelerated or different model families may need other values, so read that model’s guidance before using the numbers here.

The KSampler node shows model, conditioning, and latent inputs plus sampling controls
KSampler image provided by the developer, used to point out the values described below. The numbers in the picture are sample values. Not a high quality formula for all models. Source: Comfy-Org/docs Used according to GPL-3.0 Converted to WebP while retaining the PNG original
ValueWhat is controlled?How to assess changes
seedStarting point of random noiseKeep it fixed when comparing other variables, and check that the system does not randomize it again after running
stepsNumber of sampling stepsIncreasing it uses more computation but does not guarantee a better image every time
CFGConditioning guidance weight in supported methodsValues that are too high may damage the image. It's not a quality score or accuracy percentage.
sampler_nameHow sampling is calculatedCheck model compatibility and keep the scheduler fixed during comparison
schedulerNoise scheduling throughout the processThe same number of steps does not mean the process is the same.
denoiseStrength of the denoising processIn image-to-image, lower values usually preserve more original structure; this is not a similarity percentage

Keeping the seed fixed helps you compare experiments. But a seed is not a finished image’s ID: changing the model, image size, nodes, or environment can change the output even with the same seed. Record those other settings too. For text-to-image from an empty latent, start with the template’s denoise value; lowering it cannot preserve an original image you never supplied.

Try changing them one at a time to see what changes the image.

This KrobClick exercise assumes you already have a working SD1.5 workflow. It is a suggested experiment, not a claim that KrobClick generated these comparison images or found one universally best setting. Record filenames, changed values, and what you actually observe.

  1. Create a reference baseline: Use the earlier cup-on-a-table prompt at 512 × 512, batch 1, denoise 1, and fixed example seed 12345. Use other template settings and set post-run seed handling to fixed if available.
  2. Compare descriptions: Change only soft window light to hard side lighting Keep other settings unchanged and examine lighting direction, shadow edges, and unintended changes. Do not declare in advance that quality will improve.
  3. Compare steps: Return to the base prompt and try 20 versus 30 steps only when consistent with model guidance. Measure time on your machine and inspect both overall images and details; do not judge steps alone.
  4. Compare CFG: Restore baseline steps and compare CFG 6 and 8 for this exercise. Examine prompt adherence, colors, and unnatural detail. These are experimental values, not recommendations for FLUX or every model.
  5. Explore seeds: After choosing core settings, vary the seed to explore compositions. Do not change seeds while comparing CFG and attribute all differences to CFG.

Judge the image against your task: is there one cup, is the light coming from the intended side, and are the background or defects distracting at the final display size? For a Thai poster, check the lettering and factual details separately, or add type in a layout program. Read the text even if the overall composition looks good.

Fix model loading, memory, and image issues before adding nodes

SymptomWhat should I check first?Next step
No model name in the loaderAre downloads complete and in folders matching their types?Check the path and refresh or start over. Don't change the file name to trick the model type.
Reports a missing nodeIs it a custom node or a core node added in a newer version?Check the project name and version from the workflow before installing the extension.
Model loaded, but shape/type does not matchAre loader, text encoder, VAE and model in the same family?Return to the model's official template instead of randomly reconnecting nodes
Out of memoryBatch size, image dimensions, and models sharing memoryStart with batch 1, reduce dimensions within the model's supported range, and close other GPU workloads first
An image is produced but misses the briefPrompts, model limitations, and conditioning connectionsReturn to the baseline and change one value at a time, rather than starting with more extensions
Drag the image back and the workflow doesn't appear.Does the file still contain metadata, or has a platform converted it?Use separately saved JSON or request the original file from its creator

“Missing node” and “missing model” are different problems. Installing a node does not necessarily download all model weights. Check whether the error occurs when starting the service, loading a model, processing, or saving, rather than changing settings in a step that already works.

When to add LoRA, ControlNet, or custom nodes

Once you can generate an image from text and save its settings, add only what your task needs. Have a source image? Read about image-to-image, which encodes the input image into a latent before sampling. Denoise then affects how much of the original structure remains, but 0.5 does not guarantee a 50% match.

For a particular style or concept, read about LoRA. Its extra weights must be compatible with the base model and have their own usage terms. For edges, poses, or depth, consider ControlNet with a supported model and example. Inpainting requires a defined edit region; writing “change only this part” does not give the model a boundary.

Save the working workflow before adding nodes, then add one feature at a time with a clear problem to solve. A longer graph needs more files and extensions; complexity alone does not improve the result.

Preserve both workflow and context before sharing files

To reproduce your work, keep the workflow JSON alongside the model name, source or version, custom-node list, prompt, seed, and main settings. Record the ComfyUI version and environment if you will compare across machines. An image alone loses much of the process, while a JSON file alone does not bring its dependencies.

ComfyUI can embed a workflow in some output files, but image-sharing services and conversion may strip metadata. Before sharing, check for prompts, filenames, or other information you did not mean to disclose. Keep the original file and JSON separate from the sharing copy. See PNG, JPEG and WebP when choosing an output format, and do not assume conversion preserves workflow data.

Local execution can still include nodes that send data out. A workflow calling an API or cloud service is different from one using only local models. Before using a client image, check the nodes, service addresses, and data-retention terms. Do not embed an API key in a workflow you plan to share, or expose the service to other devices without access controls.

Custom nodes documentation says extensions have their own dependencies and installation instructions. Read the repository, maintainer information, update history, installation commands, and network behavior, especially for download-and-run commands. ComfyUI’s license does not grant commercial rights to someone else’s models, extra weights, or reference images.

Keep one basic workflow that generated an image. Try explaining which nodes the text passed through before the image file appeared. Then change one thing, such as the lighting while holding other settings steady, and record what happened. Knowing whether a limitation comes from the model, settings, or wiring helps you change the right part.

Primary documents and reference images

Documentation reviewed October 21, 2026. This explains an educational SD1.5 workflow, not a universal recipe or KrobClick test of ComfyUI versions. Content images are developer demos; the AI-generated cover is not ComfyUI output.