A practical guide to writing prompts for image generation and image editing, with reusable templates and examples.
Think of a prompt as a structured brief: start with the core subject, add the details that matter, then use constraints to narrow the output. This approach improves consistency and reduces “close, but not quite” results.
Break down what you want to generate into pieces, and list them from most important to least important. Earlier details have more influence on the final result.
Subject + Action/relationship + Setting (place/time/weather) + Style/medium + Composition/camera + Lighting/color + Key details + Constraints (what to avoid)
A woman in a light trench coat standing on a rainy city street, wet pavement reflections, neon signs softly blurred in the distance. Realistic photography, 35mm lens, medium shot, shallow depth of field, nighttime, cool color palette, detailed skin texture, clean frame. No text, no watermarks, no extra people.

An orange cat wearing swim goggles raises a paw next to a transparent fish tank, with bubbles and small fish. Clean Japanese flat illustration, fresh color palette, consistent line weight, lots of negative space, centered composition, high contrast but not harsh. Not photorealistic. No text.

A wooden cabin at the foot of snowy mountains. In the foreground, a cup of coffee with visible steam; in the background, blurred pine trees and morning mist. Cinematic look, wide composition with a clear focal point, golden sunrise backlight, atmospheric perspective, subtle film grain. Calm mood. Not oversaturated. Not cartoon.

For editing, be explicit about what must stay the same and what should change. The more it reads like a change request, the more stable the results.
Keep (must not change) + Change (what to modify) + How (style/strength/direction) + Constraints (avoid side effects)
Keep the person’s facial features, hairstyle, pose, and outfit unchanged, and keep the original composition and light direction. Replace the background with a seaside boardwalk at dusk, warm sunset tones with slight backlight, and soft reflections on the ocean in the distance. Do not change the expression. No text or watermarks.


Add a small desk lamp on the right side of the table: metal body, matte white lampshade, soft warm glow. Keep the original perspective and depth of field. Make the lamp shadow direction consistent with the existing light source. Do not block the main subject. Do not change the overall color grading.


Keep the layout of the person and the scene unchanged. Convert the image into a watercolor illustration: soft bleeding edges, paper texture, gentle washes. Colors should be brighter but not oversaturated. Do not add new elements. No text.


Subject (count/traits) + Action + Setting (place/time/weather) + Style/medium + Composition/camera + Lighting/color + Key details + Constraints
Keep (must not change) + Change (what to modify) + Location/strength + Style + Lighting consistency + Constraints (avoid side effects)