GuideImages
How to Write AI Image Prompts: Formula + Examples
How to write AI image prompts with a 6-part formula: 4 before/after examples, a copy-paste template and the pitfalls that ruin images in ChatGPT and Midjourney.
You type “coffee, autumn, nice photo” and get something that looks like 2010 stock photography. The generator isn’t broken – it got too little information and guessed.
Learning how to write AI image prompts comes down to a repeatable structure. Below you’ll get a six-part formula, four before/after examples, a copy-paste template and the pitfalls that trip up even experienced users. Every rule here is drawn from the official prompting guides of OpenAI, Google, Midjourney, Adobe, Black Forest Labs and Ideogram.
What makes a good AI image prompt?
A good image prompt describes a scene in full sentences instead of a keyword list: who or what is in the frame and what it’s doing, where it is, the style, the lighting, the camera angle and what the image is for. Put any text that must appear in quotes. Then refine the result one change at a time.
Google says it plainly: “Describe the scene, don’t just list keywords.” OpenAI recommends defining the result first – subject, intended use, composition and aspect ratio.
The image prompt formula: 6 parts
Each part answers a question the model has to settle anyway. If you don’t answer it, the model will – usually with the most average option.
- Subject and action – who or what, doing what (“a barista pouring milk into a cup”).
- Setting – where and under what circumstances (“a small café, rainy street outside the window”).
- Style and medium – photo, watercolor, flat vector illustration, 3D render. For photos, OpenAI suggests asking for “photorealistic” explicitly.
- Light and color – “soft window light from the left”, “palette: bottle green and cream white”.
- Composition and camera – shot size, angle, where the empty space goes. Photography terms (85mm lens, shallow depth of field) work, but OpenAI notes they are appearance cues, not an exact physical simulation.
- Purpose and format – “Instagram post, 4:5 portrait”, “blog header, 16:9”. Google advises giving context and intent, because the model picks better details when it knows what the image is for.
Plus text in the image: the exact words in quotes, their position, size and lettering style.
Two dialects: sentences vs keywords
Generators don’t read prompts the same way – worth knowing before you paste one description into several tools.
- ChatGPT (GPT Image models), Gemini (Nano Banana) and FLUX reward connected descriptions. Black Forest Labs advises writing how things relate instead of listing them, and notes that the model weights earlier words more. BFL puts most scenes at 30–80 words.
- Midjourney’s official docs say the opposite: short, simple prompts typically produce the best images. Parameters do the rest:
--ar(aspect ratio),--stylize(strength of Midjourney’s own aesthetic),--no(exclusions),--sref(style from a reference image),--oref(an object or character from a reference image; Midjourney says the V7 version of this feature is what’s available with the default V8.1 while an improved one is still being trained). - Adobe Firefly sits in between: subject, descriptors and keywords, at least three words, and avoid words like “generate” or “create”.
In our view the takeaway is simple: write sentences for ChatGPT, Gemini and FLUX, and keep it shorter for Midjourney. One caveat: Midjourney says its default V8.1 model adheres to detailed prompts better than earlier versions, so a longer description may no longer hurt there.
4 before-and-after prompt examples
1. Instagram post for a café
BEFORE:
coffee, cafe, autumn, nice photo
AFTER:
Photorealistic image for an Instagram post for a small neighborhood café.
On a wooden table by the window: a cappuccino with a heart in the foam
and a slice of apple pie on a white plate. Through the glass, a blurred
autumn street with yellow leaves. Soft afternoon light from the left,
warm colors: caramel, brown, cream. Shot from above at 45 degrees, cup
in the right third, upper-left area calm and empty for text.
Portrait format 4:5. No text and no logos.
What changed: the model now knows the hero, the light direction, the color scheme and where to leave room for your headline. “No text and no logos” is the kind of exclusion OpenAI recommends: you write it into the prompt, and the GPT Image API has no separate negative-prompt parameter.
2. LinkedIn banner with a tagline
BEFORE:
banner for an accounting firm with text about peace of mind
AFTER:
Wide banner for an accounting firm's company page. Minimal flat
illustration: a tidy desk, a closed binder, a potted plant. Lots of
empty space, navy and light beige palette. On the left, the exact text:
"Your books. Our calm." Bold, simple sans-serif lettering in navy.
The text appears only once. No other text.
What changed: exact wording in quotes, placement, typography and how many times the text should appear – all straight from OpenAI’s guidance. Google’s Nano Banana Pro tips also say to state clearly what text should appear and how it should look (their example names font style, weight, color and placement). Still, proofread every letter before posting.
3. Product on a table (with your own photo)
BEFORE:
olive oil bottle on a kitchen table
AFTER:
Image 1 is a photo of my olive oil bottle – keep its shape, label,
color and proportions exactly as in the photo. Place it on a light
stone countertop in a sunny Mediterranean-style kitchen. Next to it,
a sprig of rosemary and a small bowl of olives, slightly out of focus.
The bottle stands on the counter and casts a natural shadow. Morning
light from the right. Close-up, camera at bottle height. Format 1:1.
What changed: the reference image has a role (“image 1 is…”) – OpenAI recommends identifying each input image by number and purpose (e.g. subject, style, background). The line about the shadow prevents the “floating product” look. Before you put such images in a store, read our guide to AI product photography – it covers what you must never “improve”.
4. Blog illustration in Midjourney
BEFORE (too long for Midjourney):
I'd like an illustration for an article about remote work where a person
sits at a laptop with documents flying around, but with no writing at
all and calm colors...
AFTER:
flat vector illustration, woman at a laptop, paper documents floating
around her, calm pastel palette, plenty of empty space --ar 16:9 --no text, letters
What changed: a short description, with format and exclusions moved into parameters. Watch out with --no: Midjourney reads each word separately, so --no modern clothing excludes both “modern” and “clothing”.
Copy-paste prompt template
[Style/medium] of [subject] [doing what].
Setting: [place, time of day, weather].
Light: [direction, quality]. Colors: [2–3 colors].
Framing: [shot size, angle, where the empty space goes].
Purpose: [where it will be used], format [aspect ratio].
Text in image: "[exact words]" – [position, lettering, color], once only.
Avoid: [described positively, e.g. "an empty street"].
How to exclude things in each tool
| Tool | How to exclude an element | Watch out |
|---|---|---|
| ChatGPT / GPT Image | A plain sentence in the prompt: “No watermarks, no logos” | The API has no separate parameter |
| Gemini / Nano Banana | Describe it positively: “an empty street with no signs of traffic” instead of “no cars” | Google calls these semantic negative prompts |
| FLUX | Rewrite as what you want: “a healthy garden, sunset gold light” | BFL says describe what you want, not what you don’t |
| Midjourney | --no fruit, apple parameter |
“no cake” in the prompt text can still give you cake |
| Ideogram | In Ideogram 3.0: Advanced settings → “Things to avoid” | Docs still recommend describing what should be visible |
| Imagen (Vertex AI) | A list in the negative prompt field: “wall, frame” | Don’t use “no” or “don’t” |
Editing: how not to ruin a good image
The first version is rarely the final one. Instead of rewriting the prompt, refine it in the same conversation:
- Name one change: “Change the mug color to navy.”
- Say what stays: “Do not change anything else” – the phrasing OpenAI uses in its own examples.
- Check the result before asking for the next change.
- If the image starts to drift (a face or product slowly changes), go back to the best version. Google suggests starting a new conversation with a detailed description. OpenAI advises restating critical constraints when results drift, and if part of the image must stay pixel-identical, compositing the approved edit into the original.
You can then clean up, cut out or enlarge the finished image – see our guide to removing backgrounds and upscaling photos with AI.
Pitfalls few people mention
- Non-English and accented text. Ideogram’s docs warn that accented letters and non-Latin scripts can come out wrong or not at all, and that English is most accurate. If your audience reads Spanish, French or German, check every accent.
- Ideogram’s Magic Prompt rewrites your words. It’s on by default, enhances your prompt and can translate it into English. Turn it off when exact wording matters.
- Prohibitions inside the prompt. Midjourney warns that mentioning a party with “no cake” can still give you cake – naming an element can pull it in. Describe what should be there instead.
- Numbers and facts. A generator will happily draw a chart with plausible-looking but invented numbers. OpenAI and Google both tell you to fact-check infographics. It’s the same mechanism as with text – we explain it in our piece on why AI hallucinates.
- Small text. Google’s Imagen guide recommends 25 characters or fewer and two or three phrases at most. Google’s Nano Banana Pro tips also list small text as a weak spot.
Which generator for which job?
The same prompt gives different results in different tools. If you’re still choosing, see our comparison of the best AI image generators for social media – we cover text quality, pricing and licenses.
FAQ
How long should an AI image prompt be?
For ChatGPT, Gemini and FLUX, usually a few sentences – BFL puts most scenes at 30–80 words. For Midjourney, shorter: a few precise descriptors plus parameters.
How do I get correct text in an AI image?
Give the exact words in quotes, plus position, lettering style and how many times it appears, and add “no other text”. Short taglines work better than long sentences. Always proofread, or add the text in an editor afterwards.
How do I keep something out of an image?
In Midjourney use --no; in Ideogram 3.0 use the “Things to avoid” field and in Imagen the negative prompt field. In ChatGPT write a plain exclusion sentence. In Gemini and FLUX describe what should be in that spot instead.
Does one prompt work in every generator?
Partly. The six-part formula works everywhere, but for Midjourney shorten the description and move format and exclusions into parameters.
Start with one image you actually need this week: copy the template, fill in the six parts and compare the result with what you were getting before.
Sources
- OpenAI – Image generation models prompting guide (Cookbook)
- OpenAI – Image prompting guide
- OpenAI – Introducing ChatGPT Images 2.5
- Google Developers Blog – How to prompt Gemini 2.5 Flash Image
- Google AI for Developers – Image generation
- Google – Prompting tips for Nano Banana Pro
- Google Cloud – Imagen prompt and image attribute guide
- Midjourney – Prompts
- Midjourney – No parameter
- Midjourney – Parameter list
- Midjourney – Style Reference
- Midjourney – V8.1 is now the default model
- Adobe – Firefly tips and tricks
- Black Forest Labs – Prompting guide (FLUX)
- Ideogram – Text and typography
- Ideogram – Using Magic Prompt