Skip to content
Image prompts

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 ·

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.

  1. Subject. What appears: a cup, a person, a street. This is the part almost everyone writes.
  2. Setting. Where the subject is and what surrounds it. Google calls this context and background.
  3. Style. How the image was made. It can be broad, like photography, painting, or drawing, or more specific, like watercolor or paper collage.
  4. 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.
  5. Format. Vertical, horizontal, or square, and what the image will be used for.
Five rows with the parts of an image prompt and an example of each: subject, a cup of coffee; setting, on a wooden table next to a rainy window; style, photography; framing and lighting, close-up and soft morning light; format, vertical 4:5. Below, the five together form the complete request
Each part answers a question. Together, they form a request that reads like a scene.

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.

Vertical flow of five cards connected by arrows: your text request; text reader, which turns the request into numbers; diffusion generator, which creates the image in steps starting from noise; VAE, which turns the compressed image back into visible pixels; and the final image
The three components of an image generator, from the sentence to the finished image.
  1. 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.
  2. 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.
  3. 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.

Five rectangles to scale showing the most common formats: square 1:1, feed 4:5, photograph 4:3, widescreen 16:9, and stories 9:16. Below, a note reminds you that each tool has its own list of aspect ratios, and that the choice should follow where the image will be used
The most common formats, to scale. Choose based on where the image will be used.

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.

Two stacked cards. The first, in a brick tone, shows a pile of loose words and three questions the tool has to guess at: is the cup inside or outside the window, is it a photo or a drawing, is it close or far. The second, in green, shows the scene described in sentences, which already answers each question
A pile of words leaves questions open. A described scene closes each one.

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.

LabBefore and After: A Cup of CoffeeTry it

Illustrative data Answers written to show the difference, not generated by a model.

Before

Prompt

A cup of coffee.

Answer

Image requested: only the subject. Setting, style, angle, light, and format are left up to the tool. You might get a photo or a drawing, close or far, on a counter, on a table, or against a white background.

After

Prompt

A cup of coffee on a wooden table, next to a rainy window. Close-up photograph, soft morning light. Vertical format, 4:5 ratio.

Answer

Image requested: a vertical, close-up photograph of a cup of coffee on wood. Behind it, a window with raindrops. The light is soft, from the morning. Every part of the request has an answer you can check by looking.

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.
Open this lab on its own page →
What to notice: The responses here are hand-written descriptions of what each request describes, not generated images. See how many decisions the request on the left leaves up to the tool.

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.

Vertical close-up photograph of a white coffee cup with foam art, on a white saucer and a dark wooden table
Prompt (originally written in Portuguese): “A cup of coffee.” Generated on November 28, 2026 in the author's own tool, with the Qwen Image 2.1 Turbo model, 576 x 736 pixels. A single attempt.
Vertical photograph of a white cup of coffee on a wooden table, next to a window with raindrops and blurred foliage in the background, in soft light
Request with all five parts. Generated on November 28, 2026 in the same tool and with the same model, 576 x 736 pixels. A single attempt.

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:

Wooden sign hanging from ropes on a brick wall, with the text Bom dia (Portuguese for good morning) in hand-painted white letters, centered, with no other text in the image
Prompt (originally in Portuguese): wooden sign with the text “Bom dia” (“Good morning”) in white letters, no other text. Generated on November 28, 2026, same tool and model, 576 x 736 pixels. A single attempt.

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.

Four steps in sequence, with a return arrow from the fourth to the second: write the five parts; generate and look carefully; choose just one part to change; generate again and compare. Below, a warning: if you change five things at once, you won't know which one helped
One change at a time shows what each part does.

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

References

  1. 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.
  2. Google. Image generation with Gemini (Nano Banana), Section on prompts, aspect ratios, and multi-step editing. Consultado em Nov 28, 2026.
  3. OpenAI. Image prompting, Prompting fundamentals. Consultado em Nov 28, 2026.
  4. OpenAI. Image generation tool, Prompting tips and revised_prompt. Consultado em Nov 28, 2026.
  5. 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.
  6. Ho, Jonathan; Jain, Ajay; Abbeel, Pieter. Denoising Diffusion Probabilistic Models, General idea of diffusion models (2020). Consultado em Nov 28, 2026.