Skip to main content

SDXL: What It Is, What It Needs and How It Compares

SDXL (Stable Diffusion XL) is Stability AI's 1024-pixel image model. What it needs to run, what its licence allows, and how it compares with SD 3.5 and FLUX.

Founder of IImagined.ai

Published
Oct 13, 2026
Reading time
10 min read
Quick answer

SDXL (Stable Diffusion XL) is Stability AI's text-to-image model from July 2023, with a native resolution of 1024x1024, a 3.5 billion parameter base model and an optional refiner. Stability AI says it should work on consumer graphics cards with 8GB of VRAM, and it is released under the CreativeML Open RAIL++-M licence. In 2026 it is smaller than SD 3.5 Large, FLUX and Z-Image, and it still has LoRAs, ControlNets and face tools that were built for it.

SDXL, short for Stable Diffusion XL, is a text-to-image model released by Stability AI in July 2023 that generates at a native 1024x1024 resolution, using a larger network and a second text encoder than earlier Stable Diffusion versions. It is free to download under the CreativeML Open RAIL++-M licence, Stability AI says it should work on consumer graphics cards with 8GB of VRAM, and newer families such as SD 3.5, FLUX and Z-Image now sit beside it.

Checked 13 October 2026 against the SDXL paper; the base and refiner model cards, their file listings and the licence file; Stability AI's SDXL 1.0 announcement, generative-models repository, SD 3.5 announcement and licence page; the model cards for SDXL Turbo, SD 1.5, SD 3.5 Large, FLUX.1 [dev], FLUX.1 [schnell], FLUX.2 [dev], FLUX.2 [klein] 4B and Z-Image-Turbo; and ComfyUI's SDXL examples, FLUX.1 tutorial and README. We publish no speed or quality benchmarks here because we have not run any.

What is SDXL?

SDXL followed the 1.x and 2.x versions of Stable Diffusion. Its paper, submitted on 4 July 2023, says it "leverages a three times larger UNet backbone" than previous versions and adds a second text encoder. Stability AI's repository records the release of SDXL 1.0 on 26 July 2023, and the announcement gives the sizes: a 3.5 billion parameter base model, and 6.6 billion parameters for the base and refiner together.

It comes as two models. The model card describes the base as generating the latents, which the refiner, "specialized for the final denoising steps", then finishes. The card adds that "the base model can be used as a standalone module", and that the two-stage route is "slightly slower". The second stage is the technique covered in our img2img guide.

What happens inside an SDXL generation
  1. 01
    Prompt

    Read by two text encoders: OpenCLIP-ViT/G and CLIP-ViT/L.

  2. 02
    Base model

    Generates the image in latent space.

  3. 03
    Refiner

    Optional. A second model for the final denoising steps.

  4. 04
    VAE

    Converts the latent into pixels.

  5. 05
    Image

    Native size 1024x1024.

SDXL hardware requirements

Stability AI's announcement says SDXL 1.0 "should work effectively on consumer GPUs with 8GB VRAM or readily available cloud instances". That is the only hardware figure the publisher gives. On disk, sd_xl_base_1.0.safetensors is 6.94 GB and sd_xl_refiner_1.0.safetensors is 6.08 GB. The table sets that beside what other publishers state for their models.

ModelWhat the publisher statesSize
SDXL 1.0Stability AI: "should work effectively on consumer GPUs with 8GB VRAM"Base file 6.94 GB, refiner 6.08 GB
SD 3.5 MediumStability AI: 9.9 GB of VRAM, excluding the text encoders2.5 billion parameters
FLUX.1 [dev]No VRAM figure on the model card. ComfyUI says the full version needs larger VRAM and offers an fp8 version for limited VRAM12 billion parameters; original file about 23GB
FLUX.2 [klein] 4BBlack Forest Labs: about 13GB of VRAM, on an RTX 3090 or 4070 and above4 billion parameters
Z-Image-TurboTongyi-MAI: fits within 16G VRAM consumer devices6 billion parameters
Any of them in ComfyUIThe README says it can run even the biggest open source models on as low as 4GB vram + 8GB ramA stated minimum, not a speed promise

None of these is a speed test. A model that loads on a small card can still be slow, and the project behind ComfyUI publishes no generation time per card. The requirements ComfyUI itself documents are on our ComfyUI statistics page.

SDXL resolution, the refiner and SDXL Turbo

Resolution is the setting that most often goes wrong. ComfyUI's SDXL examples say that for optimal performance "the resolution should be set to 1024x1024 or other resolutions with the same amount of pixels but a different aspect ratio", and name 896x1152 and 1536x640 as good ones. The 512x512 habit from Stable Diffusion 1.5 does not carry over.

SDXL Turbo is a separate, distilled model. Its card says it samples in 1 to 4 steps, does not use a guidance scale or a negative prompt, and preferably generates at 512x512. It also has a different licence from SDXL 1.0, which matters in the next section.

Run SDXL in ComfyUI
  1. 1
    Download the base file

    sd_xl_base_1.0.safetensors from Stability AI's Hugging Face repository.

  2. 2
    Place it

    Put it in ComfyUI/models/checkpoints.

  3. 3
    Load it

    ComfyUI's examples say the SDXL base checkpoint can be used like any regular checkpoint, so the default workflow works.

  4. 4
    Set the size

    In Empty Latent Image use 1024x1024, or a size with the same pixel count such as 896x1152.

  5. 5
    Queue

    Generate, then add a refiner or a second pass only if the image needs it.

The SDXL licence

SDXL 1.0 is released under the CreativeML Open RAIL++-M licence, dated 26 July 2023. Three parts of the text matter most to someone publishing images.

  • The grant. A "perpetual, worldwide, non-exclusive, no-charge, royalty-free" licence to reproduce and distribute the model and its derivatives. The text contains no non-commercial clause.
  • The output. "Licensor claims no rights in the Output You generate using the Model. You are accountable for the Output you generate and its subsequent uses."
  • The restrictions. Attachment A lists uses you agree not to make. They include breaking any applicable law, exploiting or harming minors, spreading verifiably false information to harm others, and defaming, disparaging or harassing others.

Those restrictions travel with the model. The preamble says derivative versions "will always have to include", at minimum, "the same use-based restrictions as the ones in the original license", which covers a fine-tuned checkpoint or a LoRA built on SDXL.

SDXL vs SD 1.5 vs SD 3.5 vs FLUX

Here is what each publisher states about its own model today. If you want the two most-compared families side by side, see our FLUX vs SDXL comparison.

ModelWhat it isWeights licenceNote
Stable Diffusion 1.5One text encoder; fine-tuned at 512x512CreativeML OpenRAIL-MThe Hugging Face repository is a mirror of the deprecated original
SDXL 1.03.5 billion parameter base, two text encoders, native 1024x1024CreativeML Open RAIL++-MBase plus optional refiner
SD 3.5 Large8.1 billion parameters, three text encoders, built for 1 megapixelStability AI Community LicenseFree below $1M in annual revenue
SD 3.5 Medium2.5 billion parameters, 0.25 to 2 megapixelsStability AI Community LicenseDesigned to run on consumer hardware
FLUX.1 [dev]12 billion parametersFLUX.1 [dev] Non-Commercial LicenseThe card says outputs can be used commercially as described in the licence
FLUX.1 [schnell]12 billion parameters, 1 to 4 stepsApache 2.0The distilled, fast version
FLUX.2 [dev]32 billion parameters; generates and editsFLUX Non-Commercial LicenseSame note on outputs
FLUX.2 [klein] 4B4 billion parameters; generates and editsApache 2.0About 13GB of VRAM
Z-Image and Z-Image-Turbo6 billion parametersApache 2.0From Alibaba's Tongyi-MAI team

The pattern is clear enough without a benchmark. Among the models with a stated parameter count, only SD 3.5 Medium is smaller than the SDXL base, and SDXL is the only one under the Open RAIL++-M licence. The newer families are larger, and they split into two licence groups: Apache 2.0 for FLUX.1 [schnell], FLUX.2 [klein] 4B and Z-Image, and revenue-capped or non-commercial terms for SD 3.5 and the FLUX [dev] models.

The SDXL model card is frank about limits. It says the model "does not achieve perfect photorealism", "cannot render legible text" and struggles with compositional prompts, and that faces and people "may not be generated properly". Text in the image is one place the newer families advertise progress: the Z-Image team, for example, lists accurate English and Chinese text rendering among its strengths.

Is SDXL still worth using in 2026?

For many persona workflows, yes, and the reason is the files built around it. Add-ons belong to one model family, and SDXL has had years of them.

SDXL or a newer family
Reasons to choose SDXL
  • A smaller file and the lowest stated VRAM figure on the list
  • ControlNets for it: xinsir's models and Stability AI's Control-LoRAs
  • InstantID, whose ComfyUI pack says it is only for SDXL
  • LoRA trainers that list it: sd-scripts, Kohya SS, AI Toolkit and OneTrainer
  • One licence, with no revenue cap
Reasons to choose a newer family
  • You need readable text inside the image
  • You want generation and editing in one model, as FLUX.2 offers
  • You want an Apache 2.0 model, such as Z-Image or FLUX.2 [klein] 4B
  • You have the VRAM for a larger model
  • You want a distilled model that samples in a few steps, such as Z-Image-Turbo

Three add-ons do most of the work for a persona on SDXL. A character LoRA holds the face, and the free LoRA training steps calculator plans the run. ControlNet holds the pose. InstantID carries a face from one reference image, with licence limits of its own that you should read first.

Whatever model you pick, the same rule applies to faces. The SDXL card says the model "was not trained to be factual or true representations of people", and its licence forbids using it to defame or harass. A persona is a fictional adult, and reproducing a real person's face without their written permission is not allowed on any model. The AI Influencers program teaches the full workflow on current models, from base-model setup to a trained face and the disclosure rules for publishing.

SDXL FAQ

What is SDXL?

SDXL, short for Stable Diffusion XL, is a text-to-image model from Stability AI. Its paper was published in July 2023 and SDXL 1.0 was released on 26 July 2023. Compared with earlier Stable Diffusion versions it has a network about three times larger, a second text encoder and a native resolution of 1024x1024. It ships as a base model plus an optional refiner.

How much VRAM does SDXL need?

Stability AI's announcement says SDXL 1.0 "should work effectively on consumer GPUs with 8GB VRAM". The base file is 6.94 GB and the refiner 6.08 GB. ComfyUI's README says it can run even the biggest open source models on as low as 4GB of VRAM with 8GB of RAM. Those are stated minimums, not speed figures.

Is SDXL free for commercial use?

SDXL 1.0 is released under the CreativeML Open RAIL++-M licence. The licence text has no non-commercial clause: it grants a royalty-free licence to use and distribute the model, says the licensor claims no rights in the output you generate, and lists use restrictions you must follow. This is a summary, not legal advice, so read the licence file.

What resolution should I use with SDXL?

ComfyUI's SDXL examples say to set 1024x1024, or another resolution with the same number of pixels and a different aspect ratio, and give 896x1152 and 1536x640 as good examples. SDXL Turbo is the exception: its model card says it preferably generates at 512x512.

Do I need the SDXL refiner?

No. Both model cards note that the base model can be used as a standalone module. The refiner is a second model specialised for the final denoising steps, and the card's user preference chart shows the base combined with the refiner achieving the best overall result. Start with the base alone and add the refiner only if your images need it.

Is SDXL better than FLUX?

They are different sizes with different licences, and we have not run a quality test, so we do not rank them. SDXL has a 3.5 billion parameter base and the Open RAIL++-M licence. FLUX.1 [dev] has 12 billion parameters and a non-commercial weights licence. SDXL is lighter and has add-ons such as InstantID that were built for it.

What is the difference between SDXL and Stable Diffusion 1.5?

Size and resolution. Stable Diffusion 1.5 was fine-tuned at 512x512 and uses one text encoder. SDXL generates at 1024x1024 and uses two. The SDXL paper describes its network as three times larger. Files for one do not work on the other: an SD 1.5 LoRA or ControlNet cannot be loaded on an SDXL checkpoint.

Free · no card needed

Start with the free Starter Kit.

Five working files, one from each program, open in a free account. Then one short lesson a day by email, on the program you read.

Starter Kit5 files · free

We email you a 6-digit code. Type it here and your free account opens with the kit inside. You'll also get a short lesson by email each day at first, then guides about once a week, with a one-click unsubscribe.

All Access · all four programs · $99/mo

A model is the starting point. The program builds the persona on top of it.

AI Influencers, included in All Access, covers base-model setup in ComfyUI, LoRA training for a consistent face, ControlNet for the body, photorealism and video, with the disclosure rules for publishing. The other three programs, live coaching and the private community come with the same subscription.

See All Access: $99/mo →30-day money-back guarantee
Free

Planning an SDXL LoRA?

Enter images, repeats, epochs and batch size and the free calculator returns steps per epoch and total steps, before you spend a training run.