Learn the parts of a Workflow
A Workflow is a set of Nodes joined by links. Each Node does one job:- Inputs are the dots on the left side of a Node. They receive data from other Nodes.
- Outputs are the dots on the right side of a Node. They send data to other Nodes.
- Widgets are the settings inside a Node, such as a text box, a number, or a list.
- Links are the lines that carry data from an output to an input of the same type, such as from the
CLIPoutput to aclipinput.
Download the model
TheLoad Checkpoint Node needs a model file. This tutorial uses v1-5-pruned-emaonly-fp16.safetensors.
- Download
v1-5-pruned-emaonly-fp16.safetensorsfrom Hugging Face.

Put the model in the checkpoints folder
ComfyUI lists a checkpoint only when the file is in a checkpoints folder that ComfyUI reads. Move the file you downloaded into the folder for your install.
- Comfy Desktop
- ComfyUI Portable
- Manual install
By default, every Comfy Desktop instance reads the shared models folders. Comfy Desktop saves model downloads in the shared models folder marked Downloads.
- In the Comfy Desktop title bar, click Menu, and then select Desktop Settings.
- Select the Storage tab.
- Under Shared Models, click the folder path marked Downloads. The folder opens in your file manager.
- Move
v1-5-pruned-emaonly-fp16.safetensorsinto thecheckpointsfolder inside it. If there’s nocheckpointsfolder, create one.
R so it reads the model folders again.
Open a blank Workflow
The Canvas is the large area where you place Nodes. If it already shows a Workflow, open an empty one:- At the top of the Left sidebar, click the ComfyUI logo (Menu).
- Select New.


Add a Node
There are three ways to add a Node. Later steps name the way to use.Use the Add Node menu
- Right-click an empty spot on the Canvas. A menu opens.
- Select Add Node, and then select each category in the Node’s Add Node path. The Node table lists the path for each Node in this tutorial.
- Select the Node. It appears where you right-clicked.

Search the Node Library
- Press
N, or click Nodes in the Left sidebar. The Node Library opens. - If the Node Library shows more than one tab, select All nodes.
- Type the Node name in the Search Nodes… box.
- Click the Node in the results, and then click the Canvas where you want it. The Node appears there.

Drag a link to empty Canvas
Dragging a link to empty Canvas adds a Node and connects it in one move.- Drag from an output dot on a Node you already placed.
- Release over an empty spot on the Canvas. The Node search box opens there by default.
- Type the Node name, and then select the Node. ComfyUI adds the Node and connects it to the output you dragged from.

Shift as you release.
Connect two Nodes
A link carries data from an output on one Node to an input on another Node.- Drag from an output dot on one Node.
- Release over an input dot on another Node. A link appears between the two dots.
- One output can feed several inputs.
- An input takes one link. A new link to an input replaces its old link.
- A link joins an output and an input of the same type. ComfyUI doesn’t draw a link between different types.
Add the Load Checkpoint Node
The Load Checkpoint Node loads the model file.
- Add a
Load CheckpointNode with the Add Node menu: model > loaders >Load Checkpoint. - In the Node, click the
ckpt_namewidget, and then selectv1-5-pruned-emaonly-fp16.safetensors.
MODEL, CLIP, and VAE.

ckpt_name list doesn’t show the file, see The model isn’t in the checkpoint list.
Add the KSampler Node
The KSampler Node does the generation. It needs four links: the model, both prompts, and the blank starting image.
- Add a
KSamplerNode with the Node Library: search forKSampler. - Connect the
MODELoutput onLoad Checkpointto themodelinput onKSampler.

KSampler widgets at their default values. For example, steps is 20 and cfg is 8.0.
Add the prompt Nodes
Prompts describe the image. The positive prompt says what you want to see. The negative prompt says what you don’t want.- Add a
CLIP Text Encode (Prompt)Node with the Add Node menu (model > conditioning) or the Node Library. - Click its text box and type your positive prompt, for example
beautiful scenery nature glass bottle landscape, purple galaxy bottle. - Right-click the Node, and then select Duplicate. A second
CLIP Text Encode (Prompt)Node appears. - Click the second Node’s text box and type your negative prompt, for example
text, watermark.

- Connect the
CLIPoutput onLoad Checkpointto theclipinput on eachCLIP Text Encode (Prompt)Node. Both prompt Nodes share the oneCLIPoutput. - Connect the
CONDITIONINGoutput on the positive prompt Node to thepositiveinput onKSampler. - Connect the
CONDITIONINGoutput on the negative prompt Node to thenegativeinput onKSampler.
Set the image size
TheEmpty Latent Image Node sets the image size. Its width and height start at 1024. This Workflow uses 512, the size in the example Workflow in Load a Workflow from an image.
- Add an
Empty Latent ImageNode with the Add Node menu: model > latent >Empty Latent Image. - Set
widthto512. - Set
heightto512. - Leave
batch_sizeat1. - Connect its
LATENToutput to thelatent_imageinput onKSampler.

KSampler inputs now have links.

Decode and save the image
KSampler outputs a latent, not an image. VAE Decode converts it to an image, and Save Image stores it.
- Add a
VAE DecodeNode with the Node Library: search forVAE Decode. - Connect the
LATENToutput onKSamplerto thesamplesinput onVAE Decode. - Connect the
VAEoutput onLoad Checkpointto thevaeinput onVAE Decode. - Add a
Save ImageNode by dragging a link to empty Canvas: drag from theIMAGEoutput onVAE Decode, release over empty Canvas, and selectSave Image. Itsimagesinput is linked toIMAGE.



Run the Workflow
Running the Workflow queues it, and ComfyUI generates the image.- Click Run, or press
Ctrl+Enter(Cmd+Enteron macOS).

Find the generated image
When the run finishes, the image appears in theSave Image Node. To open it from the Left sidebar:
- Click Assets, and then select the Generated tab.

Save Image also writes the image to the output folder as a PNG file named ComfyUI_00001_.png. The number goes up for each new image. In ComfyUI Portable and manual installs, the output folder is ComfyUI/output.
Load a Workflow from an image
By default, every PNG file thatSave Image writes contains the Workflow that made it. Load the example image below to compare its Workflow with the one you built.
-
Save this image to your computer:
- Drag the PNG file onto the Canvas. You can also click the ComfyUI logo (Menu) in the Left sidebar, select File > Open, and select the file.
Load Image Node appears instead, the file you dropped has no Workflow saved in it.
Fix a missing model
When you load a Workflow whose model file isn’t in your model folders, ComfyUI shows a notice that names the missing model, such asv1-5-pruned-emaonly-fp16.safetensors is missing.
- Click View details. The Right side panel opens on the Issues tab and lists the file under Missing Models. The folder the file belongs in, such as
checkpoints, appears under the file name. - If the row has a Download button, click it.
- Comfy Desktop: Comfy Desktop downloads the file into the
checkpointsfolder of your Downloads models folder. - ComfyUI Portable and manual installs: Your browser downloads the file. Move it into the
checkpointsfolder, as in Put the model in the checkpoints folder.
- Comfy Desktop: Comfy Desktop downloads the file into the
- If the row has no Download button, get the file yourself:
- Click the link icon next to the file name. The link icon copies the download link (Copy URL), or the file name when the Workflow has no link (Copy model name).
- Download the file. For this tutorial’s model, follow Download the model.
- Move the file into the folder named under the file name, such as
checkpoints.
- Click Refresh (the circular arrow) in the Missing Models header, or press
R, so ComfyUI checks the model folders again.
- The Workflow has no download link for the model. The example image in Load a Workflow from an image is one of these Workflows.
- The download link isn’t a Hugging Face or Civitai link.
- The file name doesn’t end in
.safetensors,.sft,.ckpt,.pth, or.pt. - The Workflow doesn’t say which model folder the file belongs in.
Comfy Cloud never shows Download for a missing model. It shows Import instead, so you can import the model into Comfy Cloud. Models used by Nodes that don’t support imported models are listed under Import Not Supported.
Troubleshoot
Use these entries when a run fails or the model file doesn’t load.Required input missing
An input has no link. The message names the Node and the input, such asKSampler is missing a required input: latent_image. Connect the input named in the message, and run the Workflow again.
The model isn’t in the checkpoint list
The file isn’t in acheckpoints folder that ComfyUI reads. Move it there, as in Put the model in the checkpoints folder, and then press R.
