Image generation prompts: structure, style, and composition for better AI images

How to write image prompts that get consistent, intentional results — covering subject, style, composition, lighting, and negative constraints for DALL-E, Gemini Imagen, and similar models.

最后更新: · Markdown版本

The anatomy of an effective image prompt

  • Subject: who or what is in the scene — be specific (not 'a person' but 'a woman in her 30s reading at a café table').
  • Style: the visual look — photography, illustration, oil painting, flat design, 3D render, watercolor, line art.
  • Composition: where things are placed — close-up, wide shot, overhead, rule of thirds, centered.
  • Lighting: the mood and time of day — soft morning light, dramatic side lighting, overcast, golden hour, studio lighting.
  • Color palette: restrict or guide the colors — muted earth tones, high contrast black and white, pastel, vivid primaries.
  • Negative constraints: what to exclude — 'no text', 'no watermarks', 'no extra limbs', 'no cluttered background'.

Common image prompt mistakes

  • Too vague: 'a nice landscape' gives you a random result every time. Describe the scene, season, time of day, and mood.
  • Conflicting style cues: mixing 'photorealistic' with 'cartoon' confuses the model — pick one primary style.
  • No composition guidance: without it, the subject placement is random. Add 'centered', 'rule of thirds', or a framing hint.
  • Missing negative constraints: asking for 'a clean background' works better than hoping the model avoids clutter by default.
  • Prompt too long: the most important elements should come first — image models weight earlier tokens more heavily.

模板

Photorealistic product image prompt

Photorealistic product photography of [product name and brief description].

Setting: [e.g. clean white studio background / wooden table surface / outdoor natural setting]
Lighting: [e.g. soft diffused studio lighting / natural window light from the left / dramatic side lighting]
Composition: [e.g. centered, slight 3/4 angle / overhead flat lay / close-up on the main feature]
Color palette: [e.g. neutral whites and grays / warm earth tones / brand colors: navy and gold]
Camera style: [e.g. macro lens for fine detail / wide product shot / lifestyle context shot]

Additional details:
- [any props or context elements to include, or 'none']
- [specific textures or materials to emphasize]

Exclude: watermarks, text overlays, shadows on white background, extra objects not listed above.
将在分析器中打开,并预先填入该提示词。

Illustrated explainer diagram prompt

Flat design illustration explaining [concept or process in 1 sentence].

Style: clean flat design, minimal detail, bold readable icons.
Color palette: [e.g. 3-4 colors maximum: blue, white, light gray, and one accent color]
Layout: [e.g. left-to-right flow with 4 steps / circular diagram / comparison: before vs after]
Text in image: [e.g. include short labels on each step (max 3 words each) / no text — labels will be added later]
Icons: simple geometric shapes, no photorealism, consistent line weight.
Background: solid [color] or transparent.

Exclude: gradients, drop shadows, 3D effects, decorative borders, watermarks, photographic elements.
将在分析器中打开,并预先填入该提示词。

常见问题

Do these templates work with Midjourney and Stable Diffusion, or only DALL-E and Gemini?
The core structure — subject, style, composition, lighting, negative constraints — works across all image generation models. Syntax differs: Midjourney uses parameters like --style, --ar, and --no; Stable Diffusion uses separate positive and negative prompt fields. Adapt the structure to the model's expected format, but the concepts are universal.
How do I get consistent results across multiple image generations?
Consistency comes from locking the variables that matter most: style, color palette, and composition. Save your prompt exactly as-is when you get a good result and reuse it. For character or product consistency across multiple images, some models support reference images or seed locking — check the model's documentation for this feature.