stability ai

Stable Diffusion XL 1.0

Stable

by Stability AI

Industry standard image generation model. 2.6B UNet with dual text encoder (CLIP ViT-L 0.123B + OpenCLIP ViT-bigG 0.695B). Massive ecosystem of LoRAs, ControlNets, and community resources.

VRAM requirements, GPU fit, and setup notes for Stable Diffusion XL 1.0, including 8GB/12GB fit guidance where relevant. Recommended runtimes: ComfyUI, Automatic1111, and Diffusers support. Best download size: ~6.9 GB at FP16.

  • Largest ecosystem of LoRAs and ControlNets
  • Runs on 8GB+ VRAM GPUs
  • Dual CLIP text encoder
  • Huge community support and resources
ComfyUI, Automatic1111, DiffusersFP16 safetensors

Your hardware

Detecting...

Parameters2.6B
Max Resolution1024×1024
Default Steps30
ArchitectureUNET
Licenseopenrail++

Image Quality Benchmarks

Measured quality metrics for Stable Diffusion XL 1.0 outputs.

Human Preference Score75%

How often humans prefer this model's output (0-100%)

Aesthetic Score7.0

Visual quality and composition rating (5-9 scale)

CLIP Score0.29

Text-image alignment accuracy (higher is better)

VRAM Requirements by Resolution and Precision

Compare which GPUs can run Stable Diffusion XL 1.0 at different precisions. FP8 uses less memory than FP16 when available, and the grade shows how comfortably each GPU handles the workload.

FP16 (full precision)

ResolutionVRAM RequiredRTX 4090 24GBRTX 3060 12GBRTX 4060 8GBMacBook Pro M4 Pro 24GB
512×5126.5 GBSSAS
768×7687.8 GBSSBS
1024×10248.0 GBSSBS

Optimization Tips

Turbo / LCM distillation

Use distilled scheduler at 4-8 steps for faster iteration

ControlNets available

Add guided generation with 5 adapters (+1.2 GB VRAM each)

Rich LoRA ecosystem

Customize style, characters, and quality with community LoRAs

Run with Python

Run with Python (diffusers)
from diffusers import StableDiffusionXLPipeline
import torch

pipe = StableDiffusionXLPipeline.from_pretrained(
    "stabilityai/stable-diffusion-xl-base-1.0",
    torch_dtype=torch.float16
)
pipe.to("cuda")

image = pipe(
    prompt="your prompt here",
    num_inference_steps=30,
    guidance_scale=7.5,
    height=1024,
    width=1024,
).images[0]
image.save("output.png")

Get started

Setup instructions for running Stable Diffusion XL 1.0 locally

1. Download the model

Get the checkpoint from HuggingFace

2. Place in:

ComfyUI/models/checkpoints/

3. Launch ComfyUI

python main.py

ComfyUI Workflow

Basic txt2img workflow for Stable Diffusion XL 1.0

7 nodes

Drag & drop into ComfyUI or use File → Import

Memory Breakdown

VRAM allocation at 1024×1024 on RTX 4090 24GB (24 GB)

Required: 8.0 GBAvailable: 24.0 GB
Weights5.2 GB
VAE0.2 GB
Text Encoder1.6 GB
Activations0.5 GB
Overhead0.5 GB

Estimated Generation Time

Time per image at 1024×1024, 28 steps, FP16.

RTX 4090 24GB~4s
RTX 3060 12GB~15.1s
RTX 4060 8GB~1m 0s
MacBook Pro M4 Pro 24GB~32.4s

Sample Outputs

Available Formats, Downloads & Setup

Download Stable Diffusion XL 1.0 in the precision that matches your GPU. Lower precision usually means less VRAM pressure, while higher precision keeps more quality.

フォーマット精度サイズプロバイダー
safetensors推奨FP166.9 GBofficialダウンロード
safetensorsFP3213.8 GBofficialダウンロード

ControlNet Support

5 ControlNets available for Stable Diffusion XL 1.0. ControlNets add guided image generation (edges, depth, pose) at the cost of extra VRAM.

Canny Edge

+1.2 GB VRAM

Edge detection for structural guidance. The most popular SDXL ControlNet.

comfyuiautomatic1111diffusers
View on HF

Depth Map

+1.2 GB VRAM

Depth-based spatial control for maintaining 3D composition.

comfyuiautomatic1111diffusers
View on HF

OpenPose

+1.2 GB VRAM

Human pose control for character positioning and body language.

comfyuiautomatic1111diffusers
View on HF

IP-Adapter

+1.5 GB VRAM

Use reference images to guide style and composition. Works like 'image prompting'.

comfyuidiffusers
View on HF

Union (Multi-Control)

+1.2 GB VRAM

Single model supporting canny, depth, pose, tile, and other conditions.

comfyuidiffusers
View on HF

LoRA Ecosystem

Large Ecosystem

Hundreds of LoRAs available on CivitAI and HuggingFace covering styles, characters, concepts, and quality improvements. SDXL has the second-largest LoRA ecosystem after SD 1.5.

Approximately 5,000 LoRAs available on CivitAI. Each LoRA adds ~0.2 GB VRAM.

Popular LoRAs for Stable Diffusion XL 1.0

NameCategoryDownloads
Detail Tweaker XLquality500KView
Aesthetic Anime XLstyle300KView
SDXL Offset Noisequality200KView
Browse all LoRAs on CivitAI

Related Workflows

You might also like

Frequently asked questions

FAQ — Stable Diffusion XL 1.0 VRAM, Runtimes & Fit

How much VRAM does Stable Diffusion XL 1.0 need?

Stable Diffusion XL 1.0 (2.6B parameters) requires approximately 8.0 GB of VRAM at FP16 precision for standard 1024×1024 image generation. If you want a lighter setup, lower precisions like FP8 can reduce memory use when available.

Can I run Stable Diffusion XL 1.0 on an 8GB GPU?

Stable Diffusion XL 1.0 usually needs more than 8GB for comfortable local use. Check the VRAM table above for the exact resolution and precision trade-off.

Does Stable Diffusion XL 1.0 work in ComfyUI and Automatic1111?

Stable Diffusion XL 1.0 is marked for ComfyUI, Automatic1111, and Diffusers support in our catalog, so those are the runtimes we recommend first for local setup. If your workflow uses another front end, check the model's available formats and workflow notes above before downloading.

Can I run Stable Diffusion XL 1.0 on RTX 4090?

Yes, the RTX 4090 (24 GB VRAM) can run Stable Diffusion XL 1.0 comfortably at FP16. Expected generation time is around ~4s per image at 1024×1024.

Does Stable Diffusion XL 1.0 support ControlNet?

Yes, Stable Diffusion XL 1.0 has 5 ControlNet adapters available: Canny Edge, Depth Map, OpenPose, IP-Adapter, Union (Multi-Control). Each ControlNet adds roughly 1.2 GB of extra VRAM.

Does Stable Diffusion XL 1.0 have LoRA support?

Hundreds of LoRAs available on CivitAI and HuggingFace covering styles, characters, concepts, and quality improvements. SDXL has the second-largest LoRA ecosystem after SD 1.5. The LoRA ecosystem for Stable Diffusion XL 1.0 is rated as "large". There are approximately 5,000 LoRAs available on Civitai. Each LoRA adds roughly 0.2 GB of extra VRAM.

How fast is Stable Diffusion XL 1.0?

On a reference GPU (RTX 4090 24GB), Stable Diffusion XL 1.0 generates a 1024×1024 image in approximately ~4s at FP16 with 28 inference steps. Faster GPUs with higher memory bandwidth will produce images more quickly.

About Stable Diffusion XL 1.0

Use cases
photorealisticartanimedesign
Recommended runtimes
comfyuiautomatic1111diffusers

See also