How to write an AI image prompt

Before opening your image tool, picture the shadow. Its direction tells you where to put the light. Its edge tells you whether to ask for direct sun or a large, soft source.

Write the scene in five parts

Subject. Name one object or person and one visible detail, such as a cobalt tumbler with a thick rim.

Light. Give the source a position. “Afternoon sun from the upper left” is something you can check in the result.

Frame. Specify the crop, orientation, and camera height. In a portrait, “mid-chest upward” is more useful than “professional.”

Surface. Name the texture that matters: woven linen, matte paper, brushed metal, or transparent glass.

Constraints. For edits, identify exactly what to preserve. For a new image, leave the model some freedom around incidental details.

A reusable prompt formula

Create a [framing] image of [subject and one identifying detail] against [background]. Light the scene from [direction] with [source]. Show [material or texture]. Keep [important constraint].

Make a comparison you can learn from

Save the first image and its prompt. For a second run, change a single phrase. Try “large north-facing window” in place of “direct afternoon sun.” Compare the shadow edge and highlight size, then record the model and the change beside the image.

Try an example

Open the cobalt glass study to see how one instruction produces both a shadow and a pool of blue light. For reference-image editing, see the portrait background edit.