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. A short, concrete prompt, ordered from most to least important, 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 tend to 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, Forge, Fooocus and ComfyUI, parentheses set the weight of a term: (red scarf:1.3) means 30% more attention, (background:0.7) less. Square brackets lower it in Automatic1111. Stay between 0.6 and 1.4: beyond that the image often degrades. Use weights to rescue a detail the model keeps ignoring, not on every word.

Common mistakes

  • Negations: "a room without windows" often produces windows. Put unwanted things in the negative prompt.
  • Too many ideas: one subject per image. With SD 1.5 and SDXL, one CLIP chunk holds 75 tokens (about 60 words); Automatic1111 puts what comes after into a second chunk, and tools that do not chunk cut it off.
  • 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 100+ documented prompts on this site show the parameters behind each image, and the prompt generator expands a few words into a complete prompt. To see what a style sentence does, open the art styles compared with FLUX.2: the same scenes and the same seed rendered in every style, with the sentence to copy.

Questions people also ask

How long should a Stable Diffusion prompt be?

For SD 1.5 and SDXL, 15 to 60 words is a good range. Under 10 words the model fills the gaps at random; beyond 75 tokens Automatic1111 splits the text into chunks, and tools without that feature cut it off.

Do artist names still work?

Yes, with SD 1.5 and SDXL, which know thousands of artists: our comparison of 1,731 names, rendered with the same four prompts and seeds, shows the effect of each. Stable Diffusion 3 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 first.