← All prompting guides

Image modelsUpdated

SDXL prompting guide (SDXL 1.0 and its checkpoints)

This guide covers Stability AI's Stable Diffusion XL 1.0 from 2023 and the many checkpoints fine-tuned or merged from it: realistic, artistic and general purpose models such as SimpliGen's SDXL High Quality preset. SDXL is an older, smaller model than everything else in SimpliGen's catalog, and it prompts differently. Modern models read whole paragraphs through a language model; SDXL reads short prompts through two CLIP text encoders (OpenAI's CLIP ViT-L and OpenCLIP ViT-bigG). It responds to a clear subject plus well-chosen style and quality keywords, and it has hard limits on text and complex layouts that no amount of wording fixes.

Two kinds of SDXL checkpoint are prompted differently and are not covered here: anime and realism checkpoints built on Illustrious XL or NoobAI XL, which take Danbooru tags and have their own guide ("SDXL anime (booru tags)"), and Pony Diffusion checkpoints, which use their own score and rating tags. Stable Diffusion 1.5 checkpoints are an older, different model.

In short

  • Write a short subject phrase first, then comma-separated modifiers for medium, lighting, colour and finish. Aim for 15 to 60 words, not a paragraph.
  • Keep to one main subject, a clear style and simple relationships. SDXL cannot render legible text and struggles with several objects in a spatial layout.
  • On cards that run real CFG, use the negative prompt: list unwanted things plainly, without "no" or "don't".
  • Frame people close when the face matters, since small faces and hands degrade.
  • Check what the card already adds before writing quality words of your own.

How this model reads a prompt

Every SDXL checkpoint reads the prompt the same way, through the same two CLIP encoders. What a fine-tune changes is the look it falls back on (photographic, painterly, 3D), how well it draws faces and skin, and the settings its author recommends: CFG, steps, sampler, sometimes trigger words or a preferred quality phrase. Those settings are part of the card, and its template may already add the quality words, so read the card's description before adding any.

Some setups add Stability's SDXL refiner, which Stability describe as "a refinement model specialized for the final denoising steps". It adds fine texture and polish; it does not change the composition, so what is in the picture is decided by your prompt in the base model's steps.

What SDXL responds to:

  • A short, concrete subject phrase. Stability's own examples are exactly that: An astronaut riding a green horse, A majestic lion jumping from a big stone at night.
  • Comma-separated modifiers for style, colour, light and finish. Stability's most-used example adds them after the subject: Astronaut in a jungle, cold color palette, muted colors, detailed, 8k. Medium ("oil painting", "35mm photograph", "3D render", "pencil sketch"), lighting ("golden hour", "studio lighting", "rim light"), colour ("muted colors", "teal and orange") and finish ("detailed", "sharp focus", "film grain") are SDXL's main controls.
  • Well-known art styles and movements. "Art nouveau poster", "ukiyo-e woodblock print", "impressionist painting", "pixel art", "low poly 3D".
  • Weighting. In SimpliGen's engine (ComfyUI), (word:1.2) strengthens a word and (word:0.8) weakens it; plain (word) is 1.1. Use it sparingly, 1.1 to 1.3, for the one element that keeps getting lost. Literal brackets must be escaped as \( and \).

What SDXL handles badly, in Stability's own words on the base model's card:

  • "The model cannot render legible text." Do not ask for signs, logos or captions with specific words.
  • "The model struggles with more difficult tasks which involve compositionality", for example "A red cube on top of a blue sphere". Two objects with separate colours and a spatial relation often swap or merge.
  • "Faces and people in general may not be generated properly." Faces small in the frame and hands are weak.
  • "The model does not achieve perfect photorealism."

Realism checkpoints exist largely to improve the last two, and do. Text and multi-object layouts stay hard on every SDXL checkpoint, because they come from the CLIP encoders, which fine-tunes of the image model usually leave as they are. So write prompts SDXL can satisfy: one main subject, a clear style, simple relationships.

Structure and length

A reliable shape, as one line:

[subject with key attributes], [action or pose], [setting], [lighting], [style or medium], [colour and mood], [finish]

Or a short sentence for the subject followed by comma modifiers, as Stability's examples do. Both work; sentences help when one relationship matters ("a girl holding a red umbrella"), tags are compact for style.

Length: 15 to 60 words. CLIP encoders handle caption-length text; a long paragraph does not add control the way it does on modern models, and late details get lost. Put the subject first and the finishing touches last.

Order matters: early words weigh more. If the style is the point ("a ukiyo-e print of..."), start with it.

Sizes: SDXL is trained at about one megapixel; Hugging Face's SDXL guide says 1024 x 1024 gives the best results and that anything below 512 x 512 is unlikely to work. The standard SDXL sizes are 1024 x 1024, 1344 x 768 at 16:9, 1152 x 896 at 4:3 and their portrait versions.

Steps and CFG belong to the card: use its defaults unless the result tells you otherwise. Cards with a speed LoRA (DMD2, Lightning, Hyper and similar) run in 4 to 10 steps at CFG 1 to 2; keep prompts simpler there, since fine patterns, small text and groups of people are what few-step SDXL loses first.

Dialogue and audio

SDXL makes still images, so there is no sound. It also cannot write legible text, so speech bubbles with real words will not work. Show talking through pose and expression instead ("mid-sentence, mouth open, gesturing with one hand").

Negative prompts

Most SDXL checkpoints run real guidance, usually CFG 4 to 8, so the negative prompt is fully active and is SDXL's second most important control after the subject. Many cards ship a default negative from the checkpoint author; add only what the default does not cover. Cards at CFG 1 (the speed LoRA cards) ignore the negative entirely.

A good general negative for SDXL photographs:

blurry, lowres, jpeg artifacts, watermark, signature, text, deformed hands, extra fingers, bad anatomy, disfigured face, oversaturated

For illustrations, add the opposite medium to keep the style pure: photo, photorealistic when you want a painting; painting, illustration, cartoon, 3d render when you want a photo.

With real CFG, things you list in the negative are actively steered away from, so content works there too: "people, cars" alongside "an empty alley" in the prompt. Google's image prompt guide states the rule for negatives well: describe plainly what to leave out ("greenery, plants") and avoid instruction words such as "no" or "don't". A negative is a list of things, not a sentence.

Characters and identity

  • Lead with the person: "portrait photo of a woman in her 30s, curly black hair, freckles, green knit sweater". Short attribute lists work better than sentences here.
  • Frame for faces. SDXL renders faces best when they are large in the frame: "close-up portrait", "head and shoulders". In full-body or group shots, faces and hands degrade.
  • One person per image is safest. Two people with different clothing colours often swap attributes; if you need two, keep them simple and distinct ("a man in a black suit and a woman in a white dress, dancing").
  • For consistency across images, reuse the same attribute list and keep the seed. A text to image SDXL card has no reference image input.
  • Hands: describe them doing something simple ("hands in pockets", "holding a cup") rather than complex gestures, and keep "deformed hands, extra fingers" in the negative on a real-CFG card.
  • Keep people adult, and give an adult age when it should read clearly ("a woman in her thirties").

Common mistakes

  • Writing a paragraph. SDXL is not a language model reader; long prose adds noise. Use a subject phrase and modifiers.
  • Asking for text. It cannot render legible words.
  • Complex spatial layouts. "A red cube on a blue sphere next to a green pyramid" is Stability's own example of what fails. Simplify to one relationship.
  • An empty negative on a real-CFG card. It is active and useful there; leave it empty and you get more artifacts.
  • Heavy weighting. (word:2) distorts the image. Stay at 1.3 or below.
  • Small faces. Frame people closer when faces matter.
  • Repeating what the card adds. Many templates already append quality words such as "high quality, detailed, sharp focus".
  • Fighting the checkpoint's look. A painterly checkpoint asked for a crisp photo, or a photographic one asked for watercolour, gives a muddy result. Pick the card whose look you want.
  • Expecting modern photorealism from the base model. Realism checkpoints get much closer; for the most convincing photo of a person, a newer model (Z-Image, Qwen-Image, FLUX.2) will do better.

Examples

Stylised landscape

A lighthouse on a rocky cliff at sunset, crashing waves below, seagulls, oil painting, impressionist brush strokes, warm orange and purple sky, dramatic clouds

Negative: photo, photorealistic, blurry, lowres, watermark, text

Portrait photograph

close-up portrait photo of an old fisherman with a white beard and deep wrinkles, wearing a yellow raincoat, looking into the distance, overcast light, 85mm lens, shallow depth of field, muted colors, film grain

Negative: blurry, lowres, jpeg artifacts, deformed, disfigured face, cartoon, painting, watermark, text

Fantasy concept art

A majestic white dragon perched on a mountain peak above the clouds, wings spread, fantasy concept art, epic scale, cold blue color palette, volumetric light, (highly detailed scales:1.2)

Negative: blurry, lowres, extra limbs, watermark, signature, text

Product shot

a glass perfume bottle with amber liquid on a black marble surface, studio lighting, soft reflections, minimalist, luxury product photography, dark background

Negative: blurry, lowres, text, label, logo, watermark, cluttered background

Illustrated character

a young witch with a pointed purple hat and a black cat on her shoulder, flying on a broom over a small town at night, full moon, children's book illustration, watercolor and ink, soft colors

Negative: photo, photorealistic, 3d render, blurry, deformed hands, extra fingers, text

Street scene with an empty-street negative

a narrow cobblestone alley in an old European town at dawn, flower boxes on the windows, wet stones reflecting warm lamp light, 35mm photograph, soft mist, calm atmosphere

Negative: people, cars, crowd, blurry, lowres, watermark, text

Sources