Sub topic 4
Writing effective image prompts
This chapter assumes you have a written creative brief (the previous chapter) and know what an aspect ratio and a resolution are. The Python examples need only basic knowledge of dictionaries and functions. The advice applies to any text-to-image tool, though each tool handles details such as weighting and exclusions differently.
A prompt is a specification
A prompt is the text instruction that tells an image generator what to produce. Treat it as a short specification, not a wish. The generator fills every gap you leave with its own defaults, which tend toward generic, stock-photo-looking results. Each element you state removes one guess. Each element you omit leaves one.
A good prompt turns the brief into image requirements. The brief says "energetic, optimistic, space for a headline." The prompt says what the camera sees, how the light falls, and where the empty space goes.
The five elements
Most effective marketing prompts cover five elements. You do not need long sentences for each. A short phrase is usually enough.
| Element | What it answers | Example phrase |
|---|---|---|
| Subject | What is in the image, and what is it doing? | a stainless steel water bottle on a flat rock beside a mountain lake |
| Style | What kind of image is it? | clean product photography, shallow depth of field |
| Lighting | Where does the light come from, and what is its quality? | soft natural light, early morning |
| Color | Which colors dominate? | cool blues and warm gray |
| Composition | Where does everything sit in the frame? | bottle on the right third, empty space on the left |
Composition is the element marketers most often skip, and it matters most for marketing. A photo that looks good but has no room for a headline or a call-to-action button fails the brief. State the empty space explicitly, and say which side or edge it is on.
Be specific about what matters
Specificity should go where the image can go wrong, not everywhere. Compare these two prompts for the same trail-running campaign.
- Vague: "a runner on a trail, nice lighting, professional"
- Specific: "a runner in a navy jacket mid-stride on a forest trail, seen from the side at knee height, low golden morning light through the trees, shallow depth of field, empty sky in the upper third"
The vague prompt leaves the runner's clothing, the camera angle, the light, and the layout to chance. Words such as "nice," "professional," and "high quality" also add little, because they describe nearly every image in the training data. Replace them with concrete choices: a lens or camera distance ("wide shot," "close-up at eye level"), a light direction ("backlit," "overcast"), and a material or texture ("brushed steel," "matte ceramic").
Prefer words that name something visible. "Energetic" is a mood, and the tool may interpret it in unpredictable ways. "Mid-stride, motion blur in the background, warm light" gives it things to draw.
Order and length
Many tools give more weight to words near the start of a prompt, so put the subject first. Style and composition follow. Details that matter less go last.
Length has a sweet spot. A prompt of one short phrase leaves too much open. A prompt of several paragraphs often causes the tool to ignore some of it, or to mix conflicting instructions. For most marketing images, one to three sentences or around 30 to 80 words is a workable range. If you need to write more, check whether you are describing two images and should be making two.
Tools differ in how they read text. Some read natural sentences well ("a bottle on the right third of the frame"). Others respond better to comma-separated keywords. Test your tool with the same content written both ways and keep the form that follows your instructions more closely.
Build prompts from structured fields
Writing each prompt from scratch makes consistency hard. A better habit is to keep the five elements as named fields and assemble the prompt with code. You can then change one field at a time and reuse the brand fields (style, palette) across a whole campaign.
BRIEF = {
"subject": "a stainless steel water bottle on a flat rock beside a mountain lake",
"style": "clean product photography, soft natural light, shallow depth of field",
"palette": "cool blues and warm gray",
"composition": "bottle on the right third of the frame, empty space on the left for a headline",
"avoid": "text, logos, people",
}
def build_prompt(brief):
parts = [
brief["subject"],
brief["style"],
f"Color palette: {brief['palette']}",
f"Composition: {brief['composition']}",
f"Do not include: {brief['avoid']}",
]
return ". ".join(parts) + "."
print(build_prompt(BRIEF))Running it prints one assembled prompt:
a stainless steel water bottle on a flat rock beside a mountain lake. clean product photography, soft natural light, shallow depth of field. Color palette: cool blues and warm gray. Composition: bottle on the right third of the frame, empty space on the left for a headline. Do not include: text, logos, people.Because the fields are separate, you can make a variant by copying the dictionary and changing a single entry. This keeps your tests clean, which the iteration chapter builds on.
BRIEF = {
"subject": "a stainless steel water bottle on a flat rock beside a mountain lake",
"style": "clean product photography, soft natural light, shallow depth of field",
"palette": "cool blues and warm gray",
"composition": "bottle on the right third of the frame, empty space on the left for a headline",
}
def variant(brief, **changes):
return {**brief, **changes}
sunrise = variant(brief=BRIEF, palette="warm amber and soft pink")
print(sunrise["palette"])
print(sunrise["subject"] == BRIEF["subject"])This prints warm amber and soft pink and then True. The copy changes only the palette and leaves the original brief untouched.
Exclusions in a prompt
The first example ends with "Do not include: text, logos, people." That is one common way to exclude elements. Some tools offer a separate negative prompt field instead, and some ignore negations written in the main prompt. A model can even draw the thing you named, because naming it puts it in the scene. The next chapter covers exclusions in detail. For now, prefer positive descriptions where you can: "an empty trail" says more than "no people."
Common errors
- Stacking conflicting styles. "Photorealistic watercolor, flat vector, cinematic 3D render" asks for three looks at once. Pick one.
- Leaving out composition. The result looks fine but has no space for a headline, which forces a re-generation or a crop that cuts the subject.
- Using abstract praise. Words like "stunning" and "award-winning" rarely change the output in a useful way. Name the light, the lens, and the setting instead.
- Describing text you want to appear. Generators often misspell words. Ask for empty space and add text afterwards, as a later chapter explains.
- Changing many things between attempts. If the second image is better, you will not know which change caused it.
- Naming real brands, artists, or people. This can raise legal and ethical problems, which the licensing chapter covers. Describe the qualities you want instead.
A short checklist
Before generating, check each item against the brief:
- The subject is named first, with its action or position.
- A style is given, and it is one style.
- Light direction and quality are stated.
- Colors are named, or the brand hex values are translated into color words, since many tools do not read hex codes reliably.
- Composition says where the subject sits and where the empty space goes.
- Unwanted elements are listed once, in the way your tool supports.
Exercise
A brief for a spring trail-running promotion asks for an energetic, optimistic image with a trail setting, morning light, and space for a headline at the top. A colleague's prompt is "an amazing, professional photo of a runner, high quality, energetic." Rewrite it using the five elements, and name two problems in the original.
Show answer
One possible rewrite: "A runner in a navy jacket mid-stride on a forest trail, seen from the side at knee height. Candid outdoor sports photography, shallow depth of field. Low golden morning light through the trees. Color palette: deep blue and amber. Composition: runner in the lower third, empty sky across the top third for a headline." Problems in the original: (1) "amazing," "professional," and "high quality" are abstract praise that gives the tool nothing to draw, and "energetic" is a mood with no visible cues. (2) It omits the lighting, the color, the setting (trail), and the composition, so there is no reserved space for the headline. Any two of these are a correct answer.