Skip to content

Generate Your First Image

Step-by-step guide to generating your first image.

Prerequisites

  • ComfyUI is installed
  • A checkpoint model is downloaded
  • Stable Diffusion model in ComfyUI/models/checkpoints/

Basic Steps

Step 1: Start ComfyUI

bash
python main.py

Open browser: http://127.0.0.1:8188

Step 2: Load a Checkpoint

  1. Right-click on canvas
  2. Search "CheckpointLoader"
  3. Click to add node
  4. Select your model from dropdown

Step 3: Enter Positive Prompt

  1. Right-click → "CLIP Text Encode"
  2. Connect: Checkpoint → CLIP
  3. Enter your prompt in text box

Example prompts:

bash
# Portrait
a beautiful woman, detailed face, soft lighting, 8k

# Landscape
mountain landscape at sunset, golden hour, detailed

# Fantasy
magical forest, floating islands, fantasy art style

Step 4: Enter Negative Prompt

  1. Add another "CLIP Text Encode" node
  2. Connect to negative slot of KSampler
  3. Enter things to avoid

Common negatives:

bash
blurry, low quality, distorted, ugly, bad anatomy

Step 5: Set Sampler

  1. Right-click → "KSampler"
  2. Connect: Checkpoint → positive CLIP
  3. Connect: Checkpoint → negative CLIP
  4. Set parameters:
ParameterRecommendedDescription
Steps20-30Sampling steps
CFG7-8Prompt influence
SamplereulerAlgorithm
Denoise1.0Full denoise

Step 6: Decode and Save

  1. Add "VAEDecode" node
  2. Connect KSampler → VAEDecode
  3. Add "SaveImage" node
  4. Connect VAEDecode → SaveImage

Step 7: Generate

Click "Queue Prompt" button (top right)

Complete Workflow

[CheckpointLoader]

[CLIPTextEncode(positive)] → [KSampler] → [VAEDecode] → [SaveImage]

[CLIPTextEncode(negative)]

Parameters Explained

Steps

ValueEffect
10-15Fast, lower quality
20-30Balanced
35-50High quality, slower

CFG Scale

ValueEffect
3-5More creative
6-8Balanced
9-12Strict following

Resolution

SizeUse Case
512x512Quick preview
768x768Standard
1024x1024High quality

Tips

Better Results

  • Use detailed prompts
  • Add quality tags: "masterpiece, best quality"
  • Use appropriate negative prompts
  • Start with 512x512 for faster iteration

Common Issues

IssueSolution
Black imageCheck model file
Slow generationLower steps or use fp16
Out of memoryReduce resolution

Next Steps