Breakdown of Universal AI Prompt Structure Formula|Subject, Environment, Lighting, Style, Quality & Aspect Ratio. Write Prompts in Order for Better Control
Unstable outputs are often caused by messy keyword stacking and wrong order. This article introduces a universal prompt formula: **Subject → Environment & Composition → Lighting & Color → Art Style & Texture → Quality & Details → Aspect Ratio and Lens Settings**. It explains the priority of each section, keyword weight rules, and examples in both Chinese and English. Works for realistic photos, film, anime and oil painting. You will get consistent outputs instead of random results.
Writing prompts is not just dumping keywords. AI gives higher weight to words at the front and understands them first. If you reverse the order, the background may overpower your subject, or your film style may be covered by conflicting keywords.
This formula works for Stable Diffusion, Midjourney, Jimeng and most text-to-image tools, suitable for photography, illustration, oil painting and sci-fi scenes.
✅ Universal positive prompt order formula: Subject + pose/details → environment, background, composition → lighting, color temperature, tone → art style, medium, texture → image quality, sharpness, detail words → lens, aspect ratio ❗ Negative prompts are separate, used to filter defects and are not part of this positive structure.
We break down each module below, with keyword banks and complete examples.
Module 1: Subject (Highest weight, place first)
Purpose: Define what is the core of the image, including quantity, pose, clothing and features.
Logic: The subject is the focus. Putting it first ensures AI does not misinterpret the main object.
Common keywords: young girl, young man, little boy, giant dragon, ceramic cup, vintage car, forest, cat; sitting, running, profile, half body, full body, close-up, holding flowers
Example snippet: Black-haired girl, light pink dress, half body, gentle expression
Module 2: Environment, Background, Composition (after subject)
Purpose: Where the subject is and how the picture is framed.
Logic: Define the subject first, then its surroundings to avoid background overriding the subject.
Common keywords: beside window, seaside, old street, dawn forest, rainy city, plain studio background; centered composition, rule of thirds, wide shot, aerial shot, blurred foreground
Example snippet: Seaside, sunset beach, rule of thirds, distant ocean
Module 3: Lighting, Color Temperature, Tone & Palette (Mood core)
Purpose: Control warm/cool, brightness and atmosphere, covering the film color theory from our previous guides.
Logic: After defining the scene, set the light condition.
Common keywords: golden hour soft light, diffused natural light, Tyndall effect, backlight, Rembrandt lighting; cool tone high color temperature, warm tone low color temperature, Fujifilm cyan tone, Kodak warm orange, low saturation, soft color
Example snippet: Sunset side backlight, warm tone, low color temperature, soft glow
Module 4: Art Style, Medium & Texture (Style layer)
Purpose: Decide whether it is a photo, film, oil painting, watercolor or anime.
⚠️ Important: Do not mix conflicting styles in one prompt! Avoid "Fujifilm film + classical oil painting".
Common keywords: Kodak Gold200 film, Fuji C200 film, realistic photography, cel-shaded anime, Chinese gongbi painting, watercolor hand-drawn, classical oil painting, impasto illustration, flat vector
Example snippet: Kodak Gold200 film, fine film grain, natural vignetting
Module 5: Image Quality, Sharpness & Details (Enhancement layer)
Purpose: Refine the image. These are secondary and carry low weight. Common keywords: 8K, RAW photo, ultra-detailed, sharp focus, shallow depth of field, rich texture, delicate skin
Module 6: Lens & Aspect Ratio (Last section)
Purpose: Lens type and canvas ratio, placed at the end. Common keywords: 50mm prime lens, aspect ratio 9:16 / 16:9 / 1:1
✅ Full example: Realistic film portrait
Positive Prompt Black-haired girl, half body, gentle smile, white linen shirt, seaside beach, distant sunset view, rule of thirds, side backlight, warm tone low color temperature, Kodak Gold200 film, medium film grain, natural vignetting, documentary photography, 8K, RAW photo, sharp focus, 50mm prime lens, aspect ratio 16:9 Negative Prompt deformed facial features, distorted hands, extra fingers, blurry, text, watermark, cyan cool cast, Fujifilm tone, oversaturated
✅ Full example: Anime illustration
Positive Prompt Silver-haired anime girl, full body character sheet, blue sailor uniform, under cherry blossom tree, spring courtyard, centered composition, soft diffused light, fresh low-saturation palette, cel shading, clean line art, high quality anime illustration, exquisite details, aspect ratio 3:4 Negative Prompt realistic photo, oil impasto, broken facial features, muddy color, text, watermark, distorted limbs
📌 Advanced: Keyword Weight Tips
- The earlier, the heavier the weight Put what you want to emphasize at the front. Decorative and quality keywords go to the back. If your priority is "Fujifilm cool film", move the film description forward. If character is your focus, keep subject as the first part.
- Do not stack too many conflicting styles Only one main style per prompt, one supporting texture at most. ❌ Wrong: Fujifilm film, watercolor, oil painting, cel shading, realistic photo ✅ Correct: Fuji C200 film, street photography
- Simple adjustment workflow Change background → Module 2 Change warm/cool mood → Module 3 Swap art style (Kodak to Fuji, illustration to oil painting) → Module 4 Switch vertical/horizontal format → Module 6
- For image-to-image generation The reference image locks composition and subject. Simplify subject words and focus prompts on lighting + style + color.
- Weight syntax difference Midjourney uses commas. Stable Diffusion uses parentheses for weight boost: (Kodak Gold200 film:1.2) Do not overuse parentheses; it can cause over-saturation and blown highlights.
📌 Common Mistakes
- Do not put quality keywords first: "8K ultra HD, girl, seaside" makes AI prioritize quality over subject
- Do not mix conflicting color tone and film styles, e.g. warm tone + Fujifilm cyan
- Do not put aspect ratio in the middle; keep it at the end
In short, the logic of this formula: tell AI what to draw, then where it is, how it is lit, what style it is, how detailed it should be, and what canvas size to use. Following this routine makes prompt writing predictable, not random.