ComfyUI beginner workflow text to image node by node
Show the prompt
A clean workspace with a laptop open on a wooden desk, soft window light from the side, a simple notebook and pen beside it, calm neutral tones, wide landscape framing, shallow depth of field.
The official ComfyUI text-to-image workflow uses exactly seven core nodes. Load Checkpoint supplies the model, CLIP, and VAE. Two CLIP Text Encode nodes handle positive and negative prompts. Empty Latent Image, KSampler, VAE Decode, and Save Image complete the chain. This guide lists the exact menu paths and connections from the current ComfyUI documentation so you can build and run it on the first try.
What is a ComfyUI workflow and why start here
A ComfyUI workflow is a saved JSON file that records a graph of connected nodes. Each node runs one operation and passes typed data to the next. The file can be reloaded later or shared as a standalone workflow JSON.
The official text-to-image workflow uses exactly seven core nodes: Load Checkpoint, two CLIP Text Encode (Prompt), Empty Latent Image, KSampler, VAE Decode, and Save Image. These nodes form the minimal complete chain that turns a text prompt into a saved PNG.
Core nodes ship with the official ComfyUI repository. The built-in node reference and source code are at the GitHub repository for Comfy-Org/ComfyUI. Official workflow templates that use the same nodes are hosted at comfy.org/workflows.
Generated PNG files embed the full workflow. Dragging any image produced by the workflow onto the canvas restores every node, connection, and setting exactly as it ran.
Start with this workflow because the same seven nodes appear in almost every later image pipeline. Mastering their menu paths, connections, and default values gives the foundation needed before adding custom nodes or more complex graphs.
- Load Checkpoint supplies MODEL, CLIP, and VAE.
- The two CLIP Text Encode nodes turn prompts into CONDITIONING.
- Empty Latent Image creates the starting latent tensor.
- KSampler performs the diffusion steps.
- VAE Decode converts the latent result to pixels.
- Save Image writes the final PNG.
The seven core nodes and their menu paths
The seven nodes form the minimal text-to-image pipeline. Each appears under a specific right-click menu path and passes typed data to the next.
- Load Checkpoint sits at model > loaders > Load Checkpoint. It loads v1-5-pruned-emaonly-fp16.safetensors and emits three outputs: MODEL, CLIP, and VAE.
- CLIP Text Encode (Prompt) lives at model > conditioning. Two copies are required; each converts a text string into CONDITIONING. One CLIP output from Load Checkpoint feeds both.
- Empty Latent Image is reached via model > latent > Empty Latent Image. It produces the initial LATENT tensor (tutorial values: 512×512, batch_size 1).
- KSampler is added from model > sampling. It accepts MODEL, positive CONDITIONING, negative CONDITIONING, and LATENT, then outputs a denoised LATENT.
- VAE Decode appears under model > latent. It takes the KSampler LATENT and the VAE from Load Checkpoint to yield an IMAGE.
- Save Image is created by dragging from the VAE Decode IMAGE socket. It writes PNG files to ComfyUI/output.
Core nodes come from the official repository. Model files belong in models/checkpoints; press R or use the Missing Models panel to refresh after placement. Connections must match types exactly—MODEL to model, CONDITIONING to positive or negative, LATENT to latent_image, IMAGE to images.
Use OpenSourceGen Create Image for the same text-to-image task with Qwen Image 2.1 and other open models.Create Image →
Step-by-step: building the workflow node by node
Add nodes from the right-click menu and wire them in sequence so every required input receives a matching output.
- Right-click and add Load Checkpoint via model > loaders. It supplies MODEL, CLIP and VAE.
- Add two CLIP Text Encode (Prompt) nodes via model > conditioning. Connect the single CLIP output from Load Checkpoint to the CLIP input on each encoder; one CLIP signal fans out to both positive and negative conditioning nodes.
- Add Empty Latent Image via model > latent. Set width and height to 512 and batch_size to 1.
- Add KSampler via model > sampling. Connect MODEL from Load Checkpoint, the positive CONDITIONING from the first encoder, the negative CONDITIONING from the second encoder, and the LATENT from Empty Latent Image. Leave steps at 20 and CFG at 8.0.
- Add VAE Decode via model > latent. Connect its VAE input to the VAE output of Load Checkpoint and its LATENT input to the LATENT output of KSampler.
- Drag from the IMAGE output of VAE Decode to create Save Image.
A minimal prompt pair looks like this:
Positive: a photograph of a red apple on a wooden table
Negative: blurry, low resolution, text, watermark
Connect only matching types; a missing latent_image link on KSampler produces the common “Required input missing” error. Queue the prompt once all wires are in place.
Placing the SD 1.5 model and refreshing folders
The example model for the seven-node workflow is v1-5-pruned-emaonly-fp16.safetensors. Place the file in the checkpoints folder so Load Checkpoint can find it on startup.
Portable and manual installs use the path models/checkpoints. The broader folder layout follows the structure in the ComfyUI tutorial for beginners: checkpoints hold all-in-one.safetensors files, diffusion_models store separate diffusion weights, text_encoders contain CLIP and T5 files, and vae holds VAE checkpoints.
After copying the model, refresh the list so the node menu shows the new file. Press the R key anywhere on the canvas or open the Missing Models panel and click its Refresh button.
- Confirm the file name matches exactly, including the -fp16 suffix.
- Do not place SD 1.5 files in diffusion_models; that folder is for separate UNet weights only.
- If the node still reports the model missing, restart the server once.
One CLIP Text Encode node can receive the CLIP output from Load Checkpoint even after the refresh. Type-matching on every link prevents later connection errors when the workflow runs.
Running the workflow and finding your image
Once the seven nodes are connected with matching types, the workflow is ready to execute.
Start the ComfyUI server from your install directory. Open a browser and go to http://127.0.0.1:8188. The canvas loads with your nodes visible.
- Enter your positive prompt in the first CLIP Text Encode node and a negative prompt in the second.
- Confirm Empty Latent Image is set to 512 width, 512 height, and batch_size 1.
- Leave KSampler at its defaults of 20 steps and CFG 8.0 unless you need changes.
- Click the Queue Prompt button in the top-right corner.
The server processes the latent through KSampler, decodes it with VAE Decode, and passes the image to Save Image. Output files appear in the ComfyUI/output folder. Each PNG receives an incremental name such as ComfyUI_00001_.png.
Check the console window for progress. If the server reports an error, verify every required input has a link. Generated images embed the full workflow JSON so you can reload the exact setup later by dragging the PNG back onto the canvas.
The local address and output location are documented in the ComfyUI Tutorial for Beginners (2026) ComfyUI Tutorial for Beginners (2026).
Fastest way to generate images without local setup
OpenSourceGen's Create Image tool runs Qwen Image 2.1 and other open models with no install required. It does not run the ComfyUI workflow but produces the same text-to-image task.
Visit Create Image. Type a prompt in the text field. Choose a model such as Qwen Image 2.1 from the dropdown. Select aspect ratio, steps, seed, sampler, and scheduler if needed. Click Generate.
The request runs on RunPod GPUs. Results appear in the browser as PNG files. Download them or sign in to save to a personal library. No ComfyUI nodes, model folders, or server start commands are involved.
This route skips the seven-node setup, checkpoint placement, and connection steps. Use it when you want an image immediately or lack local GPU resources. The same prompt text works in both environments.
Loading workflows from generated images
ComfyUI embeds the full workflow inside every PNG it saves. Dragging that file onto the empty canvas reloads the exact node graph, connections, and settings used to create it.
Drag to reload
- Locate the PNG in ComfyUI/output (names follow the pattern ComfyUI_00001_.png).
- Drag the file directly onto the canvas.
- The seven nodes appear with their original links and values.
This works because the workflow JSON is stored in the PNG metadata.
Export the JSON separately
Right-click any empty area of the canvas and choose Save > Save (API Format) or Save (Default) to write a standalone.json file. The file can be shared or loaded later with Load > Load (Default).
Browse official templates
Open Workflow > Browse Workflow Templates or click the Templates icon in the left sidebar. The list at comfy.org/workflows shows the same seven-node text-to-image example plus variants for other models.
Common mistakes
- Dragging a PNG that was edited outside ComfyUI strips the metadata; use only files generated by the current ComfyUI session.
- Templates require an active internet connection when first downloaded; cached copies work offline afterward.
After loading, press Queue Prompt to run the workflow again with the same model and prompts.
Common errors and quick fixes
The most frequent problems in the seven-node text-to-image workflow come from missing links or unrefreshed model folders. These stop the queue from running and produce clear error messages on the canvas.
Required input missing
This error appears when KSampler lacks its latent_image input.
- Add Empty Latent Image via model > latent.
- Drag its LATENT output to the latent_image socket on KSampler.
- Queue the prompt again.
The connection must match types exactly; CONDITIONING cannot connect to latent_image.
Model not found after placement
Place v1-5-pruned-emaonly-fp16.safetensors in models/checkpoints. Press R or click Refresh in the Missing Models panel to reload the folder list.
Error: Required input missing: latent_image
Type mismatch on connections
Check that MODEL goes only to model sockets, CONDITIONING to positive or negative, and LATENT to latent_image. Mismatched wires turn red and prevent execution.
Rebuild the chain from Load Checkpoint outward if any node stays red after refresh. Generated PNGs that embed the workflow load cleanly once these links exist.
Frequently asked questions
How many nodes are in the basic ComfyUI text to image workflow?
The official starter workflow contains exactly seven nodes: Load Checkpoint, two CLIP Text Encode, Empty Latent Image, KSampler, VAE Decode, and Save Image.
Where do I put the checkpoint file in ComfyUI?
Place the.safetensors file in the models/checkpoints folder for portable or manual installs. Press R or click Refresh in the Missing Models panel after adding it.
How do I reload a ComfyUI workflow from an image?
Drag the generated PNG file directly onto the ComfyUI canvas. The full workflow JSON is embedded in the file metadata.
What causes the required input missing error in ComfyUI?
A required input such as latentimage on the KSampler has no connection. Add the missing link from the upstream node that produces the correct data type.
Generate images without installing ComfyUI
Use OpenSourceGen Create Image for the same text-to-image task with Qwen Image 2.1 and other open models.
Open Create ImageSources
Researched and drafted with AI assistance by the OpenSourceGen team's editorial pipeline, from the sources listed above. Model licences, prices and versions change — check the linked pages before relying on them. Spotted a mistake? Tell us on Discord.