ComfyUI is a highly flexible, powerful, and user-friendly node-based interface for Stable Diffusion that enables advanced AI image generation workflows with ease. Built for performance and transparency, ComfyUI allows users to visually construct custom pipelines for text-to-image generation, inpainting, image-to-image transformations, upscaling, and more — all without writing a single line of code.
Unlike traditional interfaces, ComfyUI uses a modular, drag-and-drop workflow where each node represents a specific step in the generation process, such as model loading, prompt input, sampling, or post-processing. This makes it easy to understand exactly how images are created and to fine-tune or modify each stage of the process independently. It’s especially suited for users who want full control over every parameter while maintaining a clear visual understanding of their AI pipeline.
ComfyUI supports a wide range of Stable Diffusion models and extensions and is compatible with GPU-accelerated environments, enabling fast and efficient generation. It also includes support for features such as LoRA models, ControlNet, image upscaling, prompt weighting, and batch processing — making it ideal for both casual users and professional AI artists or developers.
Features:
ComfyUI pre-installed and optimized
Stable Diffusion engine included
Compatible with NVIDIA GPU EC2 instances
Fast and easy deployment on AWS
No additional setup required
It will take a few minutes for your VM to be deployed. When the deployment is finished, move on to the next section.
Connect to virtual machine
Create an SSH connection with the VM.
ssh azureuser@<ip>
After successfully connecting via SSH, you’re ready to set up ComfyUI Image Generator with Stable Diffusion & NVIDIA Drivers. Here’s how to get everything running:
Goto below path:
cd /home/niles/ComfyUI
source venv/bin/activate # Activate virtual environment
(venv) root@comfy:/home/niles/ComfyUI# python3 main.py –listen –port 8188 # Allows external connections # Add –cpu if GPU not available
# Press Ctrl+A then D to detach
Run in the Background (Optional)
Use nohup to keep it running after closing the terminal:
nohup python main.py &
Step 2: Use your web browser to access the application at:
http://<instance-ip-address>:8188
Port Reference:
Comfy_UI: TCP 8188(Accessible at http://<ip>:8188
For Azure firewall configuration, consult the Azure Network Security Groups documentation