The universal prompt formula that works everywhere

Every effective AI image prompt follows a core formula: [Medium/Format] + [Subject] + [Style Direction] + [Lighting] + [Composition] + [Quality Modifiers]. This structure works across Midjourney, DALL-E, Stable Diffusion, and Gemini because it addresses the fundamental decisions every image requires. The medium tells the model whether to produce a photograph, painting, illustration, or 3D render. The subject is what appears in the image. Style direction provides the aesthetic framework. Lighting shapes the mood and dimension. Composition defines the camera relationship to the subject. Quality modifiers set the technical standard. You do not need to fill every slot for every image, but knowing the structure ensures you never leave critical information out of a prompt.

Formula 1: The portrait prompt template

[Shot type] portrait of [subject description], [lighting setup], [lens and aperture], [color treatment], [mood/expression], [quality anchor]. This formula handles everything from casual headshots to high-end beauty campaigns. The shot type defines framing: close-up, headshot, half-body, three-quarter, or full-body. Subject description should include age range, distinguishing features, and what they are wearing or doing. Lighting setup uses named configurations. Lens and aperture control perspective and depth of field. Color treatment sets the palette. The quality anchor term like editorial photography, magazine cover, or campaign visual tells the model the tier of production quality you expect. Each slot can be customized independently, making this template endlessly reusable.

close-up portrait of an elderly fisherman with weathered skin and gray stubble, golden-hour side lighting, 85mm f/1.8 lens, warm desaturated earth tones, contemplative expression looking into distance, National Geographic documentary photography

Formula 2: The product photography template

[Product description with material] on [surface/background], [lighting setup], [camera angle], [brand aesthetic], [technical quality]. Product prompts need material specificity that other categories do not. A glass bottle on marble surface with controlled reflections gives the model clear direction about how light should interact with every element in the scene. The surface and background define brand positioning: white infinity curve for e-commerce, dark textured surface for luxury, lifestyle environment for brand storytelling. Camera angle matters more in product work than in portraits: overhead flat lay, 45-degree hero angle, eye-level straight-on, or low-angle dramatic are each standard commercial approaches. End with the brand tier: luxury campaign, e-commerce catalog, or social media content.

Save your best-performing prompts as templates with [BRACKETS] marking the slots you change between projects. Building a library of tested templates is faster than writing from scratch and produces more consistent results because the structural keywords are already proven.

Formula 3: The landscape and environment template

[Scene type] of [geographic feature] during [time and weather], [atmospheric effects], [perspective/altitude], [color palette], [photographic style]. Landscape prompts live and die on atmospheric conditions. The same mountain range looks completely different at misty dawn versus stormy midday versus clear sunset. Geographic specificity helps: Norwegian fjord is more useful than canyon because it carries associations with specific rock shapes, water colors, and vegetation. Time of day controls the entire color palette and shadow behavior. Atmospheric effects like fog, rain, snow, or dust create depth layers. Perspective determines whether the viewer feels immersed in the landscape or observing it from above. End with a photographic style that matches your intent: National Geographic documentary, fine art landscape, or travel photography editorial.

aerial landscape photograph of a volcanic crater lake in Iceland during blue hour, geothermal steam rising from surrounding hot springs, snow-dusted black volcanic rock, turquoise mineral-rich water, moody overcast sky with break in clouds, dramatic scale, shot on DJI drone, wide-angle, National Geographic feature quality

How to build your own custom formulas

Custom formulas start from successful prompts. When you generate an image that works well, deconstruct it into its component parts. Identify which terms are structural (you use them every time) and which are variable (they change per project). The structural terms become your template. The variable terms become your slots. Test the template with different subjects to make sure it remains effective. If it only works for one specific subject, it is not a formula, it is just a prompt. Good formulas are style-agnostic: the same portrait formula should produce quality results whether the subject is a young athlete or an elderly academic. Document what each slot does and what types of values work best in each position. Over time, your formula library becomes your most valuable prompt engineering asset.

Start with the formulas in this guide, but always adapt them to your preferred AI model. Midjourney responds better to concise, keyword-heavy formulas. DALL-E prefers natural-language sentence formulas. Stable Diffusion works best with comma-separated keyword formulas with quality triggers upfront.