Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Stable Diffusion XL base 1.0

by Stability AI

Make and edit pictures from text.

ImageRuns on 16 GB

Hugging FaceDemos

1. Commercial use

“You may host for Third Party remote access purposes (e.g. software-as-a-service), reproduce and distribute copies of the Model or Derivatives of the Model thereof in any medium, with or without modifications”

Allowed, including as a hosted service, if your terms bind users to the license's banned-use list; the model card itself calls the model research-only.

huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/raw/main/LICENSE.md

Checked against its official pages on Nov 23, 2026. Tap a verdict to see its source.How we checkedReport an error

What Stable Diffusion XL base 1.0 does

Stable Diffusion XL base 1.0 is an open image model by Stability AI that makes and changes pictures from a text description. The model files are on Hugging Face with no sign-in. The CreativeML Open RAIL++-M license allows use, sharing and paid services, but bans a list of harmful uses that you must pass on to your users.

What people use it for

Artwork and design drafts

Make pictures for art and design work from a short prompt, on your own graphics card.

Sharper results with the refiner

Run the base model first and then the separate refiner model for the last steps; the maker reports the pair gives the best results.

Run it without PyTorch

Load the model through Optimum to run it with the ONNX or OpenVINO tools instead of the usual PyTorch setup.

Picture tools for teaching and creativity

Build an educational or creative app where people type a prompt and get a picture, with the license rules passed on to them.

Smaller graphics cards

If your graphics card runs out of memory, the model card shows a one-line switch that moves parts of the model to the main processor while it waits.

Stable Diffusion XL base 1.0 popularity

8,510
likes on Hugging Face
4.8M
downloads, last 30 days
12
Hugging Face trending score

As reported by Hugging Face, checked Nov 26, 2026. Downloads include automated ones; some repositories report none.

Where to run Stable Diffusion XL base 1.0

Through an API

  • fal-ai (Hugging Face Inference Providers)

On your machine

Parameters

2.6B

Memory at 4-bit

about 1.5 GB, weights only

Rough: generating images, video or audio needs more on top.

Stable Diffusion XL base 1.0 license

You may use, share and even host it as a paid service under the CreativeML Open RAIL++-M license. You must not use it for the banned uses listed in the license, and your own terms must pass those bans on to your users.

In a paid product
With conditions

Allowed, including as a hosted service, if your terms bind users to the license's banned-use list; the model card itself calls the model research-only.

“You may host for Third Party remote access purposes (e.g. software-as-a-service), reproduce and distribute copies of the Model or Derivatives of the Model thereof in any medium, with or without modifications” source

Ship the weights to users
With conditions

Give recipients a copy of the license, mark changed files and keep the notices.

“You must give any Third Party recipients of the Model or Derivatives of the Model a copy of this License” source

Train other models on its outputs
With conditions

A model trained on SDXL outputs to behave like it counts as a derivative, so it must carry the same use restrictions.

“methods based on the generation of synthetic data by the Model for training the other model.” source

Work for clients
With conditions

Licensor claims no rights in your outputs, but no use of them may break the license's restrictions.

“Except as set forth herein, Licensor claims no rights in the Output You generate using the Model.” source

Alternatives

Stable Diffusion XL base 1.0 This page

8,510 likesopenrail++

FLUX.1-dev

black-forest-labs · text-to-image

16.3K likesCustom license

stable-diffusion-v1-4

CompVis · text-to-image

7,151 likescreativeml-openrail-m

FLUX.1-schnell

black-forest-labs · text-to-image

6,983 likesApache 2.0

Z-Image-Turbo

Tongyi-MAI · text-to-image

5,659 likesApache 2.0

All image models

Get started

Tell your AI assistant

“Write a Python script that loads stabilityai/stable-diffusion-xl-base-1.0 with diffusers DiffusionPipeline (float16, variant fp16, use_safetensors=True), uses enable_model_cpu_offload if GPU memory is short, and saves one PNG per line of prompts.txt.”

  1. Install a recent diffusers (0.19.0 or newer).

    pip install diffusers --upgrade

    From huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/raw/main/README.md

  2. Install the other libraries the model card lists, including the invisible watermark package.

    pip install invisible_watermark transformers accelerate safetensors

    From huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/raw/main/README.md

  3. Load the base model in float16 and make a picture from a prompt (see the first recipe).

    pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, use_safetensors=True, variant="fp16")
    

    From huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/raw/main/README.md

Mistakes to avoid

Loading SDXL with an old diffusers version or the Stable Diffusion 1.5 pipeline class
Upgrade diffusers to 0.19.0 or newer and load it with DiffusionPipeline (or StableDiffusionXLPipeline)

The model card requires diffusers 0.19.0 or newer.

Skipping the invisible watermark package
pip install invisible_watermark transformers accelerate safetensors before loading

The model card lists these packages as needed next to diffusers.

Calling pipe.to("cuda") on a small graphics card and crashing out of memory
Replace pipe.to("cuda") with pipe.enable_model_cpu_offload()

The model card gives this switch for limited graphics memory.

Using SDXL for posters, logos or labels that need readable words
Add the text afterwards in a design tool, or pick a model whose card claims text rendering

The model card says it cannot render legible text.

Offering SDXL to users without terms that repeat the license's banned uses
Put the Attachment A use restrictions into your terms of service and tell users they apply

The license makes this a condition of sharing or hosting the model.

Questions

Can I use SDXL in a paid app?

The license lets you host it as a service and share copies, if your terms pass on its list of banned uses. The model card still describes the intended use as research.

Who owns the pictures I make?

Stability AI claims no rights in them, but you are responsible for how you use them.

Do I need the refiner model?

No, the base model works alone. The refiner is a second model for the final steps that the maker reports gives the best results.

Can it write words on a sign or poster?

Not reliably; the model card says it cannot render legible text.