ComfyUI
Node-based Stable Diffusion interface with ComfyUI on Clore.ai
Node-based interface for Stable Diffusion with ultimate flexibility on CLORE.AI GPUs.
All examples can be run on GPU servers rented through CLORE.AI Marketplace.
Server Requirements
RAM
16GB
32GB+
VRAM
8GB (SDXL)
12GB+
Network
500Mbps
1Gbps+
Startup Time
5-10 minutes
-
Startup Time: First launch downloads dependencies and models (5-10 minutes depending on network speed). HTTP 502 during this time is normal.
Important: ComfyUI with FLUX models requires 16GB+ VRAM. For SDXL with ControlNet, ensure at least 10GB VRAM.
Why ComfyUI?
Node-based workflow - Visual programming for image generation
Maximum control - Fine-tune every step of the pipeline
Efficient - Lower VRAM usage than alternatives
Extensible - Huge ecosystem of custom nodes
Workflow sharing - Import/export as JSON
Quick Deploy on CLORE.AI
Docker Image:
Ports:
Environment:
Verify It's Working
After deployment, find your http_pub URL in My Orders:
Accessing Your Service
When deployed on CLORE.AI, access ComfyUI via the http_pub URL:
Web UI:
https://your-http-pub.clorecloud.net/API:
https://your-http-pub.clorecloud.net/promptWebSocket:
wss://your-http-pub.clorecloud.net/ws
Installation
Using Docker (Recommended)
Manual Installation
Directory Structure
Download Models
Stable Diffusion Checkpoints
VAE
LoRAs
Basic Workflow
Text to Image
Add nodes:
Load Checkpoint → select model
CLIP Text Encode (x2) → positive & negative prompts
Empty Latent Image → set dimensions
KSampler → connect all
VAE Decode → latent to image
Save Image → output
Connect:
Image to Image
Replace Empty Latent Image with:
Load Image → your source image
VAE Encode → convert to latent
Adjust denoise in KSampler (0.5-0.8)
ComfyUI Manager
ComfyUI Manager is an essential extension that adds a GUI for installing, updating, and managing custom nodes. It is the standard way to extend ComfyUI.
Installation
Using ComfyUI Manager
After restart, a Manager button appears in the top-right of the ComfyUI interface.
Key features:
Install custom nodes
Manager → Install Custom Nodes
Update all nodes
Manager → Update All
Disable/enable nodes
Manager → Custom Nodes Manager
Install missing nodes
Manager → Install Missing Custom Nodes
Fetch model info
Manager → Model Manager
Restore snapshot
Manager → Snapshot Manager
Workflow: installing a new node pack
Click Manager button
Select Install Custom Nodes
Search by name (e.g., "FLUX", "AnimateDiff")
Click Install on the desired pack
Click Restart when prompted
New nodes appear in the right-click add menu
Auto-install missing nodes: When you import a workflow JSON that uses nodes you don't have, Manager detects them and offers to install automatically via Install Missing Custom Nodes.
Keeping Nodes Updated
FLUX Workflow in ComfyUI
FLUX uses a different node structure than standard SD models. Below is a complete FLUX.1-dev workflow.
Required Files
Before running the workflow, download:
FLUX.1-dev Workflow JSON
Save as flux_dev_workflow.json and import via Load button in ComfyUI:
FLUX.1-schnell Workflow (4 Steps)
For schnell, change KSampler settings in the JSON above:
num_inference_steps:4cfg:1.0scheduler:"simple"Model file:
flux1-schnell.safetensors
Or set via UI: KSampler → steps: 4, cfg: 1.0, sampler: euler, scheduler: simple
Key Node Differences: FLUX vs SD
Model loader
Load Checkpoint
UNETLoader
Text encoder
CLIPTextEncode
DualCLIPLoader + CLIPTextEncode
Latent
Empty Latent Image
EmptySD3LatentImage
Extra
—
ModelSamplingFlux
Negative prompt
Required
Optional (leave empty)
Essential Custom Nodes
Recommended Node Packs
ComfyUI-Manager
ltdrdata/ComfyUI-Manager
Install & manage all other nodes
ComfyUI-FLUX
XLabs-AI/x-flux-comfyui
FLUX ControlNet nodes
was-node-suite
WASasquatch/was-node-suite-comfyui
100+ utility nodes
ComfyUI-Impact-Pack
ltdrdata/ComfyUI-Impact-Pack
Face detection, SAM, ADetailer
ComfyUI-Inspire-Pack
ltdrdata/ComfyUI-Inspire-Pack
Advanced samplers, workflows
ComfyUI-AnimateDiff
Kosinkadink/ComfyUI-AnimateDiff-Evolved
Video / animation generation
ComfyUI-VideoHelperSuite
Kosinkadink/ComfyUI-VideoHelperSuite
Video I/O handling
ComfyUI-GGUF
city96/ComfyUI-GGUF
Run quantized GGUF models
ComfyUI-KJNodes
kijai/ComfyUI-KJNodes
Utility & mask nodes
rgthree-comfy
rgthree/rgthree-comfy
Workflow helpers, better UI
ComfyUI-FLUX (XLabs-AI)
Adds ControlNet support for FLUX inside ComfyUI:
Adds nodes: Apply ControlNet (FLUX), Load ControlNet Model (FLUX), XFlux Sampler
was-node-suite
Over 100 utility nodes for advanced workflows:
Key nodes: Image Batch, Text Operations, Image Analyze, Cache Node, Bus Node, Upscale, Mask operations
Install via Manager
Click Manager button
Install Custom Nodes
Search and install
Restart ComfyUI
Advanced Workflows
ControlNet
Workflow:
Load Image → Canny Edge Detector
Apply ControlNet → KSampler
Generate with pose/edge guidance
Upscaling
Workflow:
Generate image at lower res (768x768)
Upscale Image (Model) node
Optional: img2img pass for detail
SDXL + Refiner
Generate with SDXL base (steps 1-20)
Pass latent to SDXL refiner (steps 21-30)
VAE Decode final result
Keyboard Shortcuts
Ctrl+Enter
Queue prompt
Ctrl+Shift+Enter
Queue prompt (front)
Ctrl+Z
Undo
Ctrl+Y
Redo
Ctrl+S
Save workflow
Ctrl+O
Load workflow
Ctrl+A
Select all
Delete
Delete selected
Ctrl+M
Mute node
Ctrl+B
Bypass node
API Usage
Queue Prompt
WebSocket for Progress
Performance Tips
Enable --lowvram for <8GB VRAM
Use fp16 models when possible
Batch size 1 for limited VRAM
Tiled VAE for high-res images
Disable preview for faster generation
GPU Requirements
SD 1.5
4GB
8GB
16GB
SDXL
8GB
12GB
16GB
SDXL + ControlNet
10GB
16GB
16GB
FLUX
16GB
24GB
32GB
GPU Presets
RTX 3060 12GB (Budget)
Best for: SD 1.5, SDXL (with limits)
RTX 3090 24GB (Optimal)
Best for: SDXL, ControlNet workflows, moderate FLUX
RTX 4090 24GB (Performance)
Best for: FLUX, complex workflows, batch generation
A100 40GB/80GB (Production)
Best for: Production workloads, FLUX, high-res generation
Cost Estimate
Typical CLORE.AI marketplace rates:
RTX 3060
12GB
$0.15–0.30
~15 sec/img
RTX 3090
24GB
$0.30–1.00
~8 sec/img
RTX 4090
24GB
$0.50–2.00
~4 sec/img
A100
40GB
$1.50–3.00
~3 sec/img
Prices in USD/day. Rates vary by provider — check CLORE.AI Marketplace for current rates.
Troubleshooting
HTTP 502 for a long time
Check RAM: Server must have 16GB+ RAM
Check VRAM: 8GB+ for SDXL, 16GB+ for FLUX
Dependencies downloading: First run takes 5-10 min
Model downloading: Large models take longer
Out of Memory
Black Images
Check VAE is loaded
Try different VAE
Reduce image size
Slow Generation
Enable CUDA
Use fp16 models
Reduce steps (20-30 is often enough)
Workflow Examples
Import these JSON workflows in ComfyUI:
Next Steps
Kohya Training - Train custom LoRAs
Fooocus - Simpler alternative
Last updated
Was this helpful?