Unfiltered
PromptingBasics

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.

By the Unfiltered Image Generator AI editorial team· Updated · 3 min read

Most weak prompts miss the same things. This seven-part formula fixes that.

The formula

  1. Medium: photograph, oil painting, ink drawing, 3D render, watercolour.
  2. Subject: who or what, with two or three specific traits.
  3. Action: what the subject is doing.
  4. Setting: where and when.
  5. Lighting: the biggest lever on mood. See the lighting prompts guide.
  6. Camera or composition: lens, angle, framing. See camera angle prompts.
  7. 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

Browse more: all guides · comparisons · glossary · free tools

Turn on the red light.

Open the unfiltered AI image generator and develop the image exactly as you wrote it.