How to Write Prompts for AI Image Generation
A practical guide to AI image prompts: the elements to include, a before-and-after example, how to refine results one change at a time, and the limits and responsible-use rules to know.
Short answer: to write prompts for AI image generation, describe the subject, the setting, the style, the lighting and the camera view in specific, concrete words. Then generate, look at what is wrong, and change one thing at a time. Clear, visual details beat long, vague sentences.
How Does an AI Image Generator Read Your Prompt?
Image generators turn text into pictures by learning links between words and visual patterns from huge collections of images. They are not following instructions like a person; they are steering towards images that fit your words. That is why vague words give generic pictures and specific words give specific ones. The process is explained in how generative AI creates content.
How to Write Prompts for AI Image Generation: What to Include
Element | What to say | Example |
|---|---|---|
Subject | Who or what, with key details | an old fisherman mending a net |
Setting | Where and when | on a wooden jetty at sunrise |
Style | The medium or look | watercolour illustration |
Lighting | Mood and light source | soft warm light |
Composition | Shot type and angle | wide shot, from a low angle |
Colour | Palette words | muted colours |
You do not need every element every time. Start with subject, setting and style, and add the rest if the result is not right.
What Is a Before-and-After Example?
Vague: a man fishing
Better: an old fisherman mending a net on a wooden jetty at sunrise, watercolour illustration, soft warm light, wide shot, muted colours
The second gives the generator a clear scene, a look and a mood to aim for. You can even keep your prompts tidy with a small template in Python:
def build_prompt(subject, setting, style, light, extras=()):
parts = [subject, setting, style, light, *extras]
return ", ".join(p for p in parts if p)
print(build_prompt(
"an old fisherman mending a net",
"on a wooden jetty at sunrise",
"watercolour illustration",
"soft warm light",
("wide shot", "muted colours"),
))
It prints the better prompt above as one line. Saving parts like this makes it easy to swap only the style or the lighting and compare results. Our post on prompt engineering explains the same habit for text.
How Do You Improve a Result?
Change one thing at a time. If you change five words, you will not know which one helped.
Be concrete. Replace "nice" or "beautiful" with visible details such as colours, materials and time of day.
Say what to avoid in positive terms where possible. Some tools have a separate field for unwanted elements; others do not, so check the tool's guide.
Try the language you write best, then English. Many tools understand English most reliably, so test both for your tool.
Use the tool's settings. Aspect ratio, image size and variations are often controls, not prompt words.
What Are the Limits and Responsible Use Rules?
Text inside images is often misspelt, and details such as hands or small objects can come out wrong. Check carefully.
Real people: do not create misleading images of real individuals. See what a deepfake is.
Artists' names and brands: asking for a living artist's exact style or a company's logo can raise ethical and legal questions.
Copyright and ownership of AI images differ from place to place and between tools, so check your local law and the tool's terms. This is not legal advice.
Say it is AI-made when it could be mistaken for a photograph.
Common Mistakes
Writing very long prompts full of unrelated ideas that compete with each other
Using contradictory words, such as "dark night" and "bright sunny day"
Expecting a perfect result on the first try instead of iterating
Skipping a check for odd details before sharing or publishing
Key Takeaway
Describe subject, setting, style, light and view in concrete words, then refine one change at a time. Use AI images honestly, and check details before you share them.
Ready to start? Learn to write clear prompts for text, images and documents, with practice and checklists. Begin with the free course Prompt Engineering for AI: Beginner.
Related articles
More in Prompt Engineering
What Is Context Engineering? Going Beyond Prompts
Context engineering decides everything a model sees: instructions, history, documents and tool results. Learn how it differs from prompt engineering, with a runnable example.
6 min readNov 29, 2026Writing Your CV and Cover Letter With ChatGPT
How to use ChatGPT to improve your CV and draft a cover letter without inventing facts: working prompts, a safety checklist and common mistakes.
4 min readNov 16, 2026What Is Prompt Injection?
Prompt injection tricks an AI app into following an attacker's instructions. Learn the types, why it is dangerous and the layers of defence that reduce the risk.
4 min readNov 12, 2026What Is a System Prompt and Why Does It Matter?
A system prompt is the standing instruction that sets an AI model's role, rules and format. Learn how it differs from a user prompt, what to put in it and its limits.
3 min readNov 10, 2026Editing Photos With ChatGPT: Prompts That Work and Their Limits
Copy-ready ChatGPT prompts for photo editing, a simple formula for writing your own, and an honest look at what ChatGPT cannot do well.
3 min readNov 6, 202610 Reusable ChatGPT Prompt Templates
Ten fill-in-the-blank ChatGPT prompt templates you can copy and paste, plus the five-part pattern (role, task, context, format, constraints) that makes any prompt work better.
5 min readNov 2, 2026
Comments
Sign in to join the discussion.



