The AI Image Prompt Formula: 7 Parts of a Great Prompt
A reliable formula for AI image prompts: medium, subject, action, setting, lighting, camera and mood, with examples for photos, paintings and illustrations.
Most weak prompts miss the same things. This seven-part formula fixes that.
The formula
- Medium: photograph, oil painting, ink drawing, 3D render, watercolour.
- Subject: who or what, with two or three specific traits.
- Action: what the subject is doing.
- Setting: where and when.
- Lighting: the biggest lever on mood. See the lighting prompts guide.
- Camera or composition: lens, angle, framing. See camera angle prompts.
- Mood and finish: atmosphere, colour grade, texture.
Example: photograph
Photograph of an elderly beekeeper in a white veil lifting a frame of honeycomb, in a wildflower meadow at golden hour, warm backlight, 85mm lens, shallow depth of field, calm and nostalgic.
Example: painting
Oil painting of a fox curled asleep in the snow beneath a lantern, in a quiet village street at night, warm lantern glow against blue shadows, close framing, cosy and still, visible brushstrokes.
Example: illustration
Ink and wash illustration of a lighthouse keeper’s cat watching ships from a window sill, stormy harbour outside, dramatic grey sky, side view, whimsical.
Why specifics beat adjectives
“Beautiful”, “stunning” and “amazing” give the model nothing to draw. “Golden backlight”, “weathered hands” and “rain on the window” do.
Adapting to the model
Write sentences for FLUX-family and Qwen-Image models; trim to comma-separated phrases for SDXL fine-tunes. See tags vs natural language prompts.
Practice
Use the AI image prompt generator to assemble prompts from these parts, then change one part at a time to learn its effect. Order also matters; see prompt order matters.
Common questions
What is the best structure for an AI image prompt?
Medium first, then subject and action, setting, lighting, camera or composition and mood. It is not the only structure, but it covers what models need.
How long should an image prompt be?
About 20-60 words for most SDXL models; longer detailed descriptions work well with FLUX-family and Qwen-Image models.
Do quality words like 'masterpiece' help?
For some anime and SDXL fine-tunes trained with them, yes. For modern base models, specific descriptions help more.
Related reading
Does Prompt Order Matter? How Word Position Changes Images
GuidePrompt Length and Token Limits: CLIP's 77 Tokens Explained
GuideLighting Prompts for AI Images: 30 Setups and Their Moods
ComparisonTags vs Natural Language Prompts: Which Should You Use?
Free toolAI Image Prompt Generator
Browse more: all guides · comparisons · glossary · free tools