Run Stable Diffusion Locally on Windows (2026 Guide)
Running Stable Diffusion locally on Windows allows you to generate AI images directly on your computer without relying on cloud services. This gives you more control, faster image generation, and improved privacy.
In this guide, you’ll learn the easiest way to install and run Stable Diffusion on Windows in 2026.
💾 VRAM Reality Check: What Can Your GPU Run in 2026?
Not all GPUs are equal. Here’s what you can actually run based on your VRAM:
💡 Pro tip: Use --medvram or --lowvram flags to push your GPU one tier higher. Quantized (FP8) models also reduce VRAM usage by ~40%.
System Requirements
| Component | Recommended |
|---|---|
| GPU | NVIDIA GPU with 6GB+ VRAM |
| RAM | 16GB |
| Storage | 20GB free space |
| Operating System | Windows 10 / Windows 11 |
| Python | Python 3.10 |
Best Interfaces for Stable Diffusion
Best for beginners and the most widely used interface.
ComfyUI
Better for advanced workflows and automation.
Step 1 – Install Required Software
🐍 CRITICAL: Python 3.10.6 is MANDATORY
Python 3.11 and 3.12 will break your installation. The dependencies (Torch, xformers) are not compatible with newer versions. Download Python 3.10.6 here and check “Add to PATH”.
Install Python
Download Python 3.10 and install it.
Install Git
Git allows you to download the Stable Diffusion repository and update it easily.
Step 2 – Download Stable Diffusion WebUI
Open Command Prompt and run the following command:
Then move into the folder:
Step 3 – Launch Stable Diffusion
Inside the folder, double-click the following file:
The first launch will automatically install all dependencies and required packages.
Once finished, open this address in your browser:
Step 4 – Download a Model
Stable Diffusion requires a model checkpoint file to generate images.
After downloading a model (.safetensors file), place it in:
Restart the WebUI and select the model from the dropdown menu.
📥 Model Safari: Where to Download Safe Models
🏆 Civitai.com
Largest community hub. Filter by “safetensors” only. Check ratings and previews before downloading.
🤗 Hugging Face
Official Stability AI releases. Get SD 3.5, Flux.1, and base models directly from the source.
⚠️ CRITICAL SAFETY RULE
Only download .safetensors files. Avoid .ckpt files from untrusted sources — they can contain malware. Civitai and Hugging Face both scan files for security.
📂 Where to Put Downloaded Models
stable-diffusion-webui-forge\models\Stable-diffusion\
After placing the file, restart the UI and select your model from the dropdown.
💡 Pro Tips for 2026 Models
- SD 3.5 Large → Use FP8 quantized versions (reduces VRAM from 16GB → 10GB)
- Flux.1 → Look for “fp8” or “GGUF” variants for better performance on 12GB cards
- Juggernaut XL → Best all-purpose realistic model for beginners
Step 5 – Generate Your First Image
Inside the interface:
- Enter your prompt
- Select resolution (512×512 recommended)
- Click Generate
⚡ Speed & VRAM Optimization Flags (2026)
Edit your webui-user.bat and add these to COMMANDLINE_ARGS=:
--xformers→ 30-50% speed boost, reduces VRAM (NVIDIA only)--opt-sdp-attention→ Alternative to xformers, works on newer GPUs--medvram→ Use if you have 6-8GB VRAM--lowvram→ Use if you have 4-6GB VRAM--opt-sub-quad-attention→ Improves memory for SDXL/SD3.5
Example for RTX 3060 (12GB): COMMANDLINE_ARGS=--xformers --opt-sdp-attention --medvram
Optimization for Low VRAM GPUs
Edit the file webui-user.bat and add:
or
🟦 AMD GPU Users: DirectML Setup Guide
If you have an AMD Radeon GPU (RX 6000/7000 series), here’s how to get Stable Diffusion running on Windows:
✅ Method 1: Easiest – Stability Matrix
Download Stability Matrix (one-click manager). During setup, select “DirectML” backend. It handles everything automatically.
⚙️ Method 2: Manual Forge/A1111 Install
After installing Python 3.10.6 and Git:
pip install torch-directml
# Then launch with:
webui-user.bat --use-directml
⚠️ Important Notes for AMD Users:
- Expect 30-50% slower performance than NVIDIA GPUs
- Use
--medvramor--lowvramflags for 8GB or less VRAM - For best performance: Consider Linux + ROCm setup (2-3x faster)
- Intel Arc users: Use
--use-ipexflag withpip install intel-extension-for-pytorch
Common Installation Errors
Make sure you installed Python 3.10.
Update your GPU drivers and reinstall dependencies.
Lower image resolution or use the VRAM optimization flags.
⚠️ Fix: webui-user.bat Opens and Closes Immediately
This is the #1 frustration for Windows users. Here’s how to diagnose and fix it:
- Pause the script: Edit
webui-user.batand addpauseon a new line at the end. Run again — the error will stay visible. - Python not in PATH: If you see
'python' is not recognized, reinstall Python 3.10.6 and check “Add Python to PATH”. - Git missing: If you see
'git' is not recognized, install Git for Windows. - Manual Python path fix: Add this to the top of your .bat file:
set PYTHON=C:\Users\[YourName]\AppData\Local\Programs\Python\Python310\python.exe
👉 Still stuck? Check our full Troubleshooting Guide.
Final Thoughts
Running Stable Diffusion locally on Windows gives you full control over AI image generation. Once installed, you can experiment with different models, prompts, extensions, and advanced workflows.
To expand your capabilities, explore tools like ControlNet, LoRA models, and advanced workflows.
Complete Stable Diffusion Local Installation Hub
Everything you need to run Stable Diffusion offline on Windows, Mac, or Linux. Choose your platform below for step-by-step guides.
Not Sure Which Guide to Choose?
Quick tip: Most beginners should start with the Windows (Forge) or Mac (Draw Things) guides for the easiest setup. Choose Linux if you’re comfortable with terminal commands.
Windows Installation Guide
- Best for NVIDIA GPU users
- Forge (A1111 optimized) & ComfyUI options
- Highest performance & most extensions
Mac Installation Guide
- Optimized for Apple Silicon (M1/M2/M3/M4)
- Draw Things app (App Store) & terminal options
- Simplest setup – start generating in minutes
Linux Installation Guide
- Best for AMD GPU users (ROCm support)
- A1111 & ComfyUI with terminal setup
- Maximum flexibility & customization
Quick Platform Comparison
| Platform | Best For | Setup Time | Hardware Requirement | Recommended Interface |
|---|---|---|---|---|
| Windows | Maximum performance, NVIDIA GPU users | 15-30 minutes | NVIDIA GPU (6GB+ VRAM) | Forge (A1111 optimized) |
| Mac | Apple Silicon users, simplicity | 2-10 minutes | M1/M2/M3 with 16GB+ RAM | Draw Things (App Store) |
| Linux | Advanced users, AMD GPU, customization | 15-40 minutes | Any with terminal knowledge | ComfyUI or A1111 |
🤔 Which Interface Should You Start With?
Choose AUTOMATIC1111 / Forge if: You want the most extensions, a familiar tabbed interface, and easy LoRA/ControlNet access.
Choose ComfyUI if: You have low VRAM (6-8GB), want to run Flux/SD3.5 efficiently, or plan to build complex, repeatable workflows.
💡 Many advanced users run both: Use Forge for quick experiments, ComfyUI for production workflows. See our 2026 Model Benchmarks guide for performance comparisons →
Additional Resources
Stable Diffusion Negative Prompts Guide
Master negative prompting to eliminate artifacts, fix anatomy issues, and generate perfect AI images. Get categorized prompt collections and advanced techniques.
- Eliminate artifacts and anatomy issues
- Advanced prompting techniques
- Categorized prompt collections
Stable Diffusion Models Guide
Learn where to download safe models (SD 3.5, Flux.1, custom checkpoints) and how to manage them effectively for optimal results.
- SD 3.5, Flux.1, and custom checkpoints
- Safe download sources & management
Troubleshooting Common Issues
Fix black images, out of memory errors, slow generation, and other common problems with step-by-step solutions.
- Fix black images & out of memory errors
- Optimize generation speed
Prompting & Advanced Techniques
Master prompt engineering, ControlNet, LoRAs, upscaling, and other advanced features to create professional-grade AI artwork.
- Prompt engineering mastery
- ControlNet, LoRAs & upscaling

