The Parts of an Image Prompt
An image prompt works best with a subject, setting, style, framing and lighting, and format. See each part and how to adjust the result.
Rodrigo Faustino ·
- Shelf
- Image prompts
- Call number
- IMG-001
- Level
- Beginner
- Reading
- 11 min
- Published
- Lab
- Before and after
An image prompt works best when it answers five questions: what appears, where it is, how it was made, where you’re viewing it from and in what light, and what format it has. The tool can’t guess what you didn’t say; it fills in the blanks its own way. The more parts you describe, the less it decides for you.
The Five Parts
The guides for the major tools don’t all use the same list. Google’s guide for Imagen 3 starts with three things: subject, context, and style. OpenAI’s guide asks you to state the subject and what the image is for, and to indicate the composition and the aspect ratio. This book combines everything into five parts. Splitting it into five is our own organization, not an official standard.
- Subject. What appears: a cup, a person, a street. This is the part almost everyone writes.
- Setting. Where the subject is and what surrounds it. Google calls this context and background.
- Style. How the image was made. It can be broad, like photography, painting, or drawing, or more specific, like watercolor or paper collage.
- Framing and lighting. Close up or far away, from above or below, soft light or harsh, daytime or night. OpenAI treats camera specifications as appearance cues, not as an exact camera simulation.
- Format. Vertical, horizontal, or square, and what the image will be used for.
Inside an Image Generator
Knowing what happens after you press the button helps explain why each part of the prompt matters. A modern image generator is usually built from three components working in a line. The model used for the examples in this book is Qwen Image 2.1 Turbo. The description below follows the technical report for Qwen-Image, the original model in that line, and we haven’t confirmed that the 2.1 Turbo version is organized the same way. Other models also arrange the components differently, but the general idea repeats.
- Text reader. It reads your request and turns it into numbers the generator can use. In Qwen-Image, this reader is a model that understands both text and images, Qwen2.5-VL. Anything you don’t write simply never reaches the generator, which is why the request has to contain what you want to see.
- Diffusion generator. This creates the image. The idea comes from a 2020 paper by Ho, Jain, and Abbeel: the model learns to remove noise from an image, and when generating, it starts from pure noise and removes it in steps, guided by the text. Instead of working with pixels, it works on a compressed version of the image. In Qwen-Image, the generator is an architecture called MMDiT.
- VAE. It compresses the image and later decompresses it. At the end of the process, it turns the compressed version into pixels you can see. According to the report, Qwen-Image’s decoder was tuned on text-rich images to preserve small lettering and fine detail.
In the author’s tool, each component shows up as a separate file: the text reader, the generator, and the VAE. If one of them is missing, generation won’t run. That’s a detail of the tool, not a general rule.
Each Part in Detail
Subject. Say how many and what they’re doing: “two cups, one of them steaming” says more than “cups.” For people, OpenAI recommends describing what matters for the scene, such as apparent age, clothing, and posture, and avoiding vague adjectives. If the subject is a person in close-up, writing “portrait” already helps the tool understand the framing.
Setting. Describe the background and the materials: dark wood, white marble, a brick wall, blurred foliage. Google’s guide suggests experimenting with different backgrounds, materials, and colors for the same subject, and that’s a good exercise: change only the setting and see what changes.
Style. If you want a photograph, ask for a photograph. When the style isn’t stated, the tool picks one, and what it picks might be an illustration. The Gemini and Imagen guides give different request templates for photos and for illustrations, which shows they’re two distinct paths. Describe the style by its characteristics, without naming living artists or brands.
Framing and lighting. Google’s guide lists modifiers such as close-up, low angle, natural light, and lens types. OpenAI notes that camera terms work as appearance cues, not as an exact simulation. Treat “85mm lens” as a request for a “portrait with a soft background,” not as a real setting.
Format. The aspect ratio changes the composition, because the tool arranges the elements to fit the space. Also say what the image is for: a cover, an ad, a profile photo. Each tool accepts its own list of aspect ratios.
Describe the Scene, Don’t Pile Up Words
It’s common to write an image prompt as a list of loose words: “coffee, window, rain, pretty.” Google’s documentation for Gemini says that describing the scene in detail gives you more control over the result. The list leaves gaps: is the cup inside or outside the window? Is it a photo or a drawing?
Opinion adjectives like “beautiful,” “amazing,” or “perfect” don’t describe anything you can see. Swap them for visible details: the material, the color, the light, the type of image. OpenAI itself suggests naming materials, light, colors, and the visual medium.
Try It: From the Subject Alone to the Full Scene
You’ll compare a request with only the subject against one with all five parts.
Illustrative data Answers written to show the difference, not generated by a model.
Before
Prompt
Answer
After
Prompt
Answer
What changed
- Setting: the cup gained a place, the wooden table, and a background, the rainy window.
- Style: now it's a photograph, not just any kind of image.
- Framing and light: close-up and soft morning light say where it's seen from and how it's lit.
- Format: vertical, 4:5 ratio, designed for a phone screen.
- What didn't change: the subject is the same. Writing more doesn't guarantee a better image, only an image closer to what you described. The answers above are hand-written descriptions of what each request describes. They were not generated by an image tool.
The lab could not load. The summary above still applies.
Open this lab on its own page →Notice what didn’t change: the subject is the same in both. The gain comes from the other four parts, which went from “the tool chooses” to “I chose.”
Now see what an image tool did with each of the two requests. The first image came from the subject-only request, and the second from the five-part request.


Each request was generated just once, without picking the best of several, and with the tool’s same settings, including its default negative prompt, which asks it to avoid blurry, distorted, or watermarked images.
The tool already delivered a lovely photo with the short request, in close-up and on wood. But the rainy window, which was the setting you wanted, didn’t show up: the tool chose a different one. The long request didn’t make the image “better” overall. It gave you control over what appears.
Text Inside the Image
Asking for a sign, a poster, or a cover with words on it calls for extra care. According to OpenAI, the text that should appear goes in quotation marks, with the position and the style of the lettering described. For unusual words, it’s worth spelling them out letter by letter. The same documentation suggests asking for no additional text to appear and checking the spelling in the result.
Google’s guide for Imagen 3 recommends short texts, up to about 25 characters, and no more than two or three phrases. That guide was written for Imagen 3, an older model, and the page warns that the Vertex AI documentation is no longer being updated. Treat the number as an order of magnitude, not a rule: newer tools make fewer mistakes, but they still make them. Check every word.
Here’s a test with two short words, in the same tool as the examples above:

The text came out right in this image, with two words and no extra text. That’s why the guides recommend short phrases: with more words, checking becomes more important.
The Qwen-Image technical report claims the model was trained with special attention to text inside images and that it excels at it. That’s a claim by the model’s authors. Our test, with two words and a single attempt, neither confirms nor refutes that result: to find out whether it works with long sentences, run your own test.
In Practice: From an Idea to a Prompt
Write one line per part, like filling out a form. For long requests, OpenAI suggests named sections, such as scene, subject, details, and constraints. The form below plays that role:
Subject: a cup of coffee
Setting: on a wooden table, next to a rainy window
Style: photography
Framing and lighting: close-up, soft morning light
Format: vertical, 4:5 aspect ratio
Then adjust one part at a time. Both OpenAI and Google recommend improving the image in steps: ask for one change and look at the result before asking for the next.
For style, describe by characteristics: the line work, the colors, the light, the era. Instead of naming a living artist or a brand, write something like “watercolor illustration, soft colors, light edges.” That way you ask for the look without copying someone’s work.
A Complete Example, in Five Versions
To see each part in action, start from a complete form and create four variations, changing just one part in each. The requests below are suggestions for you to test. We didn’t generate these versions, so no results are shown here.
Version 1 (base)
Subject: a cup of coffee
Setting: on a wooden table, next to a rainy window
Style: photography
Framing and lighting: close-up, soft morning light
Format: vertical, 4:5 aspect ratio
Version 2 (changes the light)
Framing and lighting: close-up, harsh late-afternoon light, long shadows
Version 3 (changes the style)
Style: watercolor illustration, soft colors, light edges
Version 4 (changes the framing)
Framing and lighting: view from above, the cup in the center, soft morning light
Version 5 (changes the format)
Format: horizontal, 16:9 aspect ratio, with open space on the right for a title
In each version, the other four parts stay the same as the base. Generate each one once, side by side, and note what changed. It’s the fastest way to learn what each part controls in your tool.
When the Result Isn’t What You Asked For
The list below is a suggestion from this book, based on the five parts, not an official rule from any tool. Use it as a starting point:
- The image has the right subject but the wrong place. Reinforce the setting: background, materials, and surrounding objects.
- It looks like a drawing, but you wanted a photo. Ask for “photograph” explicitly, in the style part.
- The scene is too far away or too close. Adjust the framing: close-up, medium shot, or wide shot.
- The light is harsh or dark. Describe the light: soft, from a window, late afternoon, overcast day.
- The composition feels cramped or cropped. Revisit the format and say what the image is for.
- The text came out with wrong letters. Shorten the text, put it in quotation marks, and describe the position and style of the lettering.
Change one part, generate again, and compare. If the same thing is still wrong after two or three attempts, the way forward is to rewrite the description of that part in different words.
Common Mistakes and Cautions
Asking for everything at once. Five changes in a single attempt keep you from knowing what worked.
Expecting the same image every time. The same sentence can produce different images on each attempt. If one turned out well, save the prompt and the image.
Not noticing the prompt was rewritten. In some tools, an assistant rewrites your request before generating. OpenAI documents this for the image tool in its API and shows the rewritten text in the response. If the result strayed from what you wrote, check whether the tool shows the final prompt.
Real people, brands, and characters. Don’t ask for an image of a real person without their permission, and don’t upload someone else’s photo to be altered. Avoid well-known brands and characters: the image may resemble the original and cause problems if published.
Publishing without a close look. Check hands, objects, text, and the background before using the image.
Keep Reading
- How to Structure a Text Prompt
- The Types of AI You Already Use Without Realizing It
- When AI Makes Things Up: How to Check an Answer
References
- Google Cloud. Prompt and image attribute guide, Sections on subject, context and style, photography modifiers, and text in images (guide written for Imagen 3). Consultado em Nov 28, 2026.
- Google. Image generation with Gemini (Nano Banana), Section on prompts, aspect ratios, and multi-step editing. Consultado em Nov 28, 2026.
- OpenAI. Image prompting, Prompting fundamentals. Consultado em Nov 28, 2026.
- OpenAI. Image generation tool, Prompting tips and revised_prompt. Consultado em Nov 28, 2026.
- Wu, Chenfei et al.. Qwen-Image Technical Report, Description of the model's components (text encoder, generator, and VAE) and results with text in images (2025). Consultado em Nov 28, 2026.
- Ho, Jonathan; Jain, Ajay; Abbeel, Pieter. Denoising Diffusion Probabilistic Models, General idea of diffusion models (2020). Consultado em Nov 28, 2026.