Building a ComfyUI workflow from scratch

Demo summary
A step-by-step walkthrough of adding nodes (Checkpoint, CLIP Text Encode, KSampler, VAE Decode) and connecting them to build a custom image generation pipeline.
Step-by-step
- Double-click the workspace and search for 'checkpoint' to add a Load Checkpoint node.
- Drag a connector from the CLIP output and select 'CLIP Text Encode' to create prompt nodes.
- Use Ctrl+Shift+V to paste a cloned node with its existing connections intact.
- Right-click nodes to 'Set Title' or 'Colors' to organize the workflow.
- Drag the conditioning connectors from the prompt nodes to a KSampler node.
- Connect the Model output from the Checkpoint node to the KSampler.
- Drag the 'latent_image' connector from the KSampler and select 'Empty Latent Image'.
- Adjust the width, height, and batch size in the Empty Latent Image node.
Options
- Right-click and select 'Add Node' via the menu (not recommended).
- Clone nodes by right-clicking or using Ctrl+C/Ctrl+V.
- Set the seed to 'fixed' to generate the same image every time or 'randomize' for variety.
Watch out for
- SDXL models require a 1024x1024 resolution for optimal results.
- Stable Diffusion 1.5 or earlier models require 512x512 resolution.
Tips
- Double-click to search for nodes instead of using the right-click menu to save time.
- Use Ctrl+Shift+V when cloning to avoid manually reconnecting noodles.
- Color-code and rename nodes (e.g., 'Positive Prompt' in green, 'Negative Prompt' in red) to stay organized as workflows get complex.
- Keep the seed on 'randomize' unless you are trying to reproduce a specific result.
Highlights
“if you color code things and rename these nodes it just keeps things more organized and helps you avoid confusion”
All demos from “Master AI image generation - ComfyUI FULL TUTORIAL”
7:390:44Basic text-to-image generation in ComfyUIThe user demonstrates a basic text-to-image workflow using the RealVisXL model to generate an image of a castle in a forest.ComfyUI· Text to Image
8:418:40Building a ComfyUI workflow from scratchCurrentA step-by-step walkthrough of adding nodes (Checkpoint, CLIP Text Encode, KSampler, VAE Decode) and connecting them to build a custom image generation pipeline.ComfyUI· AI Image Generator
19:571:09Generating a medieval warrior with batch processingDemonstrates generating multiple images of a medieval warrior by increasing the batch size in the Empty Latent Image node.ComfyUI· AI Image Generator
25:330:32Importing workflows from image metadataShows how to drag an existing AI-generated image into the ComfyUI canvas to automatically reconstruct the entire node workflow used to create it.ComfyUI· AI Image Generator
30:073:41Upscaling images using modelsDemonstrates upscaling a low-resolution 512x512 image using the 4X Ultra Sharp model to add clarity and detail.ComfyUI· AI Image Upscaler
36:021:32Using Preview Chooser for selective upscalingShows how to use the Image Chooser node to generate a batch of images and selectively progress only one specific image to the upscaler.ComfyUI· AI Image Upscaler
41:391:29Image-to-image generation with denoisingDemonstrates the image-to-image process by loading an existing photo and adjusting the denoising strength to create variations.ComfyUI· Image to Image
43:496:52Tiled upscaling with Ultimate SD UpscaleA detailed demo of the Ultimate SD Upscale node, showing how tiled upscaling generates significantly higher facial detail than standard upscaling.ComfyUI· AI Image Upscaler
58:094:05Controlling character poses with ControlNetDemonstrates using the OpenPose pre-processor and ControlNet Union model to force a generated princess character into a specific pose from a reference image.ComfyUI· AI Image Generator
1:02:141:23Landscape composition control with Canny ControlNetShows how to use the Canny edge pre-processor to maintain the shape of mountains while changing the lighting to a sunset.ComfyUI· AI Inpainting
1:09:444:55Face swapping with InstantIDDemonstrates the full setup and execution of InstantID to swap Will Smith's face onto a generated policeman character in both realistic and watercolor styles.ComfyUI· AI Face Swap Generator- Watch “Master AI image generation - ComfyUI FULL TUTORIAL” →
AI Image Generator
8:418:40Building a ComfyUI workflow from scratchCurrentA step-by-step walkthrough of adding nodes (Checkpoint, CLIP Text Encode, KSampler, VAE Decode) and connecting them to build a custom image generation pipeline.AI Search
19:571:09Generating a medieval warrior with batch processingDemonstrates generating multiple images of a medieval warrior by increasing the batch size in the Empty Latent Image node.AI Search
25:330:32Importing workflows from image metadataShows how to drag an existing AI-generated image into the ComfyUI canvas to automatically reconstruct the entire node workflow used to create it.AI Search
58:094:05Controlling character poses with ControlNetDemonstrates using the OpenPose pre-processor and ControlNet Union model to force a generated princess character into a specific pose from a reference image.AI Search
1:360:57Install custom workflows and missing nodes in ComfyUIThe video demonstrates how to drag and drop a JSON workflow file into ComfyUI and use the Manager to identify and install missing custom nodes.Sebastian Kamph
3:020:20Search and install models via Model ManagerA walkthrough of using the ComfyUI Model Manager to search for specific AI models, such as ControlNet, and install them directly.Sebastian Kamph
3:281:10Running and managing image generation queuesDemonstration of starting a workflow using the 'Run' button, setting up 'Run Instant' for continuous generation, and using 'Run on Change' to trigger generation upon prompt edits.Sebastian Kamph
4:590:55Navigating the ComfyUI workspace and UI settingsShows how to use zoom, fit view, pan modes, and toggle link visibility or themes (light/dark mode) within the ComfyUI interface.Sebastian Kamph
11:311:49Adding and connecting nodes in ComfyUIThe video demonstrates adding a 'Load Image' node via the library or right-click menu and connecting it to other nodes like 'Save Image' using spaghetti links.Sebastian Kamph
19:431:34Converting widgets to inputs in ComfyUIShows how to convert a node's internal settings (like seed) into an external input pin and connect a 'Primitive' node to control it.Sebastian Kamph
25:032:06Managing seeds and randomizationShows the difference between 'Randomize' and 'Fixed' seed settings in the KSampler to either generate new variations or reproduce the same image.Sebastian Kamph
36:450:34Saving images to specific foldersShows how to use the 'Save Image' node and file path syntax to organize output images into custom subfolders.Sebastian Kamph
ComfyUI