# SDXL

> Canonical: https://skillalmanac.com/glossary/sdxl | Last verified: 2026-11-24 | Index status: not offered to search engines

SDXL is Stable Diffusion XL, a latent diffusion text-to-image model from Stability AI, described in a 2023 research paper. It builds on earlier Stable Diffusion models with a larger UNet, a second text encoder and an optional refiner stage.

Also called: SDXL model, SDXL 1.0, Stable Diffusion XL 1.0, SDXL base model.

## In plain language

SDXL is an AI model from Stability AI that turns a written description into a picture. It is a newer and larger relative of the original Stable Diffusion, and by default it makes square images of 1024 by 1024 pixels. People run it on their own graphics card or through a hosted service. It is large, so memory can be a problem on modest hardware. Its model card says it is intended for research use and lists limits, such as imperfect photorealism and no legible text.

## Technical definition

The SDXL paper (arXiv 2307.01952, submitted 4 July 2023) presents it as a latent diffusion model for text-to-image synthesis. The Hugging Face Diffusers guide lists three changes from earlier Stable Diffusion models: a UNet three times larger plus a second text encoder, OpenCLIP ViT-bigG/14, alongside the original one; size and crop conditioning; and a two-stage process in which a base model passes its output to a refiner that adds detail. Wikipedia dates the SDXL 1.0 release to July 2023 and says it introduced native 1024x1024 resolution. The Stability AI model card for the 1.0 base model names the CreativeML Open RAIL++-M licence and says the model is intended for research purposes only.

## How it shows up when you use agents

SDXL is an image model, not a language model, so it is not what a coding agent thinks with. It shows up when an agent workflow needs pictures: mockups, textures or placeholder art. An agent can call a hosted image service, or you can run the model yourself and let a script or tool drive it. The Diffusers guide shows how to load the base and refiner checkpoints in Python and run text-to-image, image-to-image and inpainting.

What breaks when this is misunderstood:

- **Skipping the hardware check.** The Diffusers guide says SDXL is large and may need memory optimization on your hardware. See [GPU for AI](/glossary/gpu-for-ai).
- **Expecting a chat model.** It reads a prompt and returns an image. See [Text-to-image](/glossary/text-to-image) and [Diffusion model](/glossary/diffusion-model).
- **Treating output as cleared.** The model card names a licence and says the model is intended for research purposes only. Read it and check rights for what you generate.

A next step is to write the prompt with the [image-prompt-direction](/skills/skill-almanac/image-prompt-direction) skill, then check your hardware before a local run. In the Diffusers code the refiner reuses the base model's VAE, covered in [Variational autoencoder](/glossary/variational-autoencoder).

SDXL is a product of Stability AI, which owns the name; Skill Almanac is independent and not affiliated with Stability AI.

## Common confusions

- **SDXL versus Stable Diffusion.** SDXL is one model in the Stable Diffusion family. See [Stable Diffusion](/glossary/stable-diffusion). Stability AI's page lists Stable Diffusion 3.5 and Stable Diffusion XL as separate models.
- **SDXL versus SDXL Turbo.** Stability AI's page describes XL Turbo as a distilled version of SDXL that can generate images in as few as one step. It is a separate variant.
- **Base versus refiner.** The Diffusers guide describes the base model as able to run alone, with the refiner as a second model that adds detail. You can use the base without the refiner.
- **SDXL versus a web interface.** SDXL is a model. Tools such as [AUTOMATIC1111](/glossary/automatic1111) are interfaces that can load it.

## Worked examples in this catalogue

### [image-prompt-direction](https://skillalmanac.com/skills/skill-almanac/image-prompt-direction)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Image prompts written the way an art director would brief them, checked for gaps, contradictions and rights problems.

Why it exercises the concept: SDXL conditions on the prompt, and the Diffusers guide notes it can take a separate prompt for each of its two text encoders. A clear brief is the main thing you control. The skill does not run SDXL.

### [imagegen](https://skillalmanac.com/skills/openai/imagegen)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Generates or edits raster images such as mockups, textures and illustrations.

Why it exercises the concept: A hosted generator from another vendor. It contrasts with loading SDXL weights and running the model yourself.

### [Self-Hosting an AI Agent: What You Take On](https://skillalmanac.com/learn/self-hosted-ai-agent-considerations)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The guide explains that weights, cache and overhead compete for memory when you run a model yourself, and that the fit should be worked out before downloading.

Why it exercises the concept: The Diffusers guide says SDXL is a large model and you may need to optimize memory to run it on your hardware. The guide covers that question for language models.

### [image-spec-check](https://skillalmanac.com/skills/skill-almanac/image-spec-check)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Checks exported images against your own spec table and says exactly what to resize, crop, re-export or replace.

Why it exercises the concept: SDXL's default output is a fixed size, so images often need resizing or cropping for where you use them. This skill checks exported files against your spec. It does not generate images.

## Related terms

- [Stable Diffusion](https://skillalmanac.com/glossary/stable-diffusion.md)
- [Diffusion model](https://skillalmanac.com/glossary/diffusion-model.md)
- [Text-to-image](https://skillalmanac.com/glossary/text-to-image.md)
- [GPU for AI](https://skillalmanac.com/glossary/gpu-for-ai.md)
- [Open-weights model](https://skillalmanac.com/glossary/open-weights-model.md)
- [Variational autoencoder (VAE)](https://skillalmanac.com/glossary/variational-autoencoder.md)

## Sources

- [SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis](https://arxiv.org/abs/2307.01952), arXiv (accessed 2026-11-24)
- [Stable Diffusion XL](https://huggingface.co/docs/diffusers/main/en/using-diffusers/sdxl), Hugging Face (Diffusers documentation) (accessed 2026-11-24)
- [stabilityai/stable-diffusion-xl-base-1.0 model card](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0), Stability AI (Hugging Face) (accessed 2026-11-24)
- [Stable Image](https://stability.ai/stable-image), Stability AI (accessed 2026-11-24)
- [Stable Diffusion](https://en.wikipedia.org/wiki/Stable_Diffusion), Wikipedia (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
