How to write a Stable Diffusion prompt?

By Updated 3 min read

A Stable Diffusion prompt is a text description that guides the image: a clear subject first, then the style, the lighting, the framing and a few quality words, separated by commas. Short, concrete, ordered from most to least important: that is what produces predictable images.

The structure that works

  1. Subject: who or what, doing what, where. a red fox sitting on a mossy rock in a pine forest
  2. Style or medium: oil painting, 35mm photograph, watercolor, 3D render, or an artist: by Ivan Shishkin.
  3. Lighting and mood: golden hour, soft diffused light, dramatic rim light, foggy.
  4. Framing and lens: close-up, wide shot, 85mm, shallow depth of field.
  5. Quality words: highly detailed, sharp focus, masterpiece. Two or three are enough.

Words at the start of the prompt weigh more than words at the end. Keep the subject first.

An annotated example

portrait of an old fisherman, weathered face, wool sweater, oil painting by Rembrandt, warm candlelight, dark background, close-up, 85mm, highly detailed

The first five words fix the subject. The artist token sets palette and brushwork (see how much one name changes on the artist styles pages). The light words decide the atmosphere, the framing words the composition, and the last group polishes. Negative prompt: blurry, deformed hands, extra fingers, watermark, text — more in what is a negative prompt.

Weights and emphasis

In Automatic1111 and most interfaces, parentheses raise the weight of a term: (red scarf:1.3) means 30 % more important, (background:0.7) less. Square brackets lower it. Stay between 0.6 and 1.4: beyond that the image breaks. Use weights to rescue a detail the model keeps ignoring, not on every word.

Common mistakes

  • Full sentences and negations: "a room without windows" often produces windows. Put unwanted things in the negative prompt.
  • Too many ideas: one subject per image; 75 tokens (about 60 words) is the limit of one CLIP chunk for SD 1.5 and SDXL, and what comes after is weaker.
  • Contradictory styles: photorealistic watercolor gives a muddy result.
  • Changing everything at once: fix the seed and change one word at a time to learn what each does.

Differences between models

SD 1.5 and SDXL respond to keyword lists like the example above. Stable Diffusion 3 and 3.5 understand natural sentences better and can place several subjects ("a cat on the left, a dog on the right") and render short text in quotes. Whatever the model, the 69 documented prompts on this site show the full parameters behind each image, and the prompt generator expands a few words into a complete prompt.

Questions people also ask

How long should a Stable Diffusion prompt be?

Between 15 and 60 words. Under 10 words the model fills the gaps at random; beyond 75 tokens (SD 1.5 and SDXL) the text is split into chunks and the later part has less influence.

Do artist names still work?

Yes with SD 1.5 and SDXL, which know thousands of artists: our comparison of 1,731 names generated with the same seed shows the effect of each. Stable Diffusion 3 was trained with fewer artist names and reacts less to them.

Should I write prompts in English?

Yes. The text encoders were trained mostly on English captions. A prompt in French or Spanish works partially but loses precision; translate it, or use the prompt generator.