Prerequisites
Before you begin, make sure you have:- Installed ComfyUI
- At least one checkpoint model (e.g., SD 1.5 or SDXL)
- Basic understanding of text-to-image generation
Starting ComfyUI
Launch ComfyUI using your preferred method:- Desktop App
- Command Line
- comfy-cli
Double-click the ComfyUI application icon.
http://127.0.0.1:8188
Your First Workflow
ComfyUI loads with a default text-to-image workflow. Here’s how to use it:Load a checkpoint model
- Click on the CheckpointLoaderSimple node
- Select a model from the dropdown (e.g.,
v1-5-pruned-emaonly.safetensors) - Place your checkpoint files in
models/checkpoints/directory
Configure generation settings
In the KSampler node:
- Steps: 20-30 (more steps = higher quality, slower)
- CFG Scale: 7-8 (how closely to follow your prompt)
- Sampler: euler or dpmpp_2m (sampling algorithm)
- Scheduler: normal or karras
- Seed: Random number (use same seed for consistent results)
Set image dimensions
In the EmptyLatentImage node:
- Width: 512 or 768
- Height: 512 or 768
- Keep dimensions as multiples of 64
Generate your image
Click Queue Prompt or press
Ctrl+EnterWatch the progress bar and wait for generation to complete.Understanding the Basic Workflow
The default workflow connects these nodes: Node Roles:- CheckpointLoaderSimple: Loads the AI model
- CLIPTextEncode: Converts text prompts to embeddings
- EmptyLatentImage: Creates blank latent space
- KSampler: Generates image in latent space
- VAEDecode: Converts latent to viewable image
- SaveImage: Saves the final result
Quick Tips
Improve image quality
Improve image quality
- Increase steps to 30-40
- Use samplers like
dpmpp_2mordpmpp_sde - Add more descriptive keywords to your prompt
- Use negative prompts to avoid unwanted elements
Speed up generation
Speed up generation
- Reduce steps to 15-20
- Use smaller image dimensions (512x512)
- Enable
--highvramif you have enough VRAM - Use faster samplers like
euler_aorlcm
Get consistent results
Get consistent results
- Use the same seed value
- Lock your prompt and settings
- Save your workflow:
File → Save
Experiment with variations
Experiment with variations
- Change the seed number
- Adjust CFG scale (7-15 range)
- Try different samplers and schedulers
- Modify prompt keywords
Keyboard Shortcuts
Essential shortcuts to speed up your workflow:| Shortcut | Action |
|---|---|
Ctrl+Enter | Queue prompt for generation |
Ctrl+S | Save workflow |
Ctrl+O | Load workflow |
Space | Pan canvas |
Double-Click | Open node search |
Ctrl+Z | Undo |
Delete | Delete selected nodes |
Next Steps
Learn Core Concepts
Understand how workflows and nodes work together
Explore Models
Discover supported image generation models
Try Tutorials
Follow step-by-step guides for common tasks
Use the API
Integrate ComfyUI into your applications
Troubleshooting
Common problems:- No models available: Place checkpoint files in
models/checkpoints/ - Out of memory: Reduce image size or use
--lowvramflag - Black images: Try
--force-fp32flag (GTX 16 series cards) - Slow generation: Enable
--fastfor optimizations