Writing image generation prompts
Course contents (20 lessons)
- Getting to know Meta AI and Llama
- What Meta AI is and where you can use it
- Meta AI versus Llama: the assistant and the models
- Your first chat with Meta AI
- Prompt basics that work
- The anatomy of a good prompt
- Context, tone, length and follow-ups
- Everyday uses
- Writing and replying to messages
- Captions, posts and bios
- Planning and study help
- Customer replies for a small business
- Images, groups and privacy
- Writing image generation prompts
- Group chats, etiquette and privacy
- Working with Llama models directly
- Running a Llama model on your own computer
- System prompts and chat templates
- Parameters: temperature, top_p and max tokens
- Few-shot examples and structured JSON output
- Advanced prompting
- Prompting Llama for code
- Retrieval-augmented prompting: answering from your own documents
- Evaluating and comparing answers
- Safety, limits and a final project
- Safety, limits and responsible use
- Final project: build a study buddy assistant
What image prompts are
Some versions of Meta AI can create pictures from a written description. Availability depends on your country and app version, and the way you start it can change, so I will not describe buttons. I will describe what to write once you are there.
An image prompt is a description of a picture that does not exist yet. The generator has no idea what is in your head. Everything you leave out, it picks by itself.
A simple formula
I use five parts, in this order:
- Subject: the main thing. "A tabby cat", "an old wooden bookshop".
- Action or situation: what is happening. "Sleeping on a windowsill".
- Setting: where and when. "Rainy evening, a narrow street in an old city".
- Style: the look. "Watercolour", "flat vector illustration", "realistic photo", "pencil sketch".
- Light and composition: "Warm lamp light", "close-up", "wide shot from above".
A tabby cat sleeping on a windowsill, rainy evening, warm lamp light inside the room, soft blurry city lights outside, watercolour style, close-up, calm mood.
Why it works
Each part removes a decision from the generator. The more decisions you make, the closer the result is to your idea. But there is a balance. If you list twenty details, some will be ignored or will fight each other. Five to eight clear ideas usually work better than a very long list.
Prompts for practical uses
A flat vector illustration of a smiling delivery rider on a motorbike, bright orange and white colours, simple shapes, plain light background, space on the left for text.
A clean product-style photo of a glass jar of honey on a wooden table, soft morning light from the left, shallow depth of field, neutral background.
The first leaves "space on the left for text" because I plan to add a headline. The second names the light direction and the background, which are two things that otherwise change at random.
Iterating
You will rarely get the perfect picture at once. Change one thing per round, so you know what caused the change.
Same scene, but make it night, remove the lamp, and make the colours cooler and bluer.
Some tools can edit an existing image from a text instruction. Others can only generate a new one each time. Try a small edit request and see what your version does.
Limits to expect
- Text in images: generated letters are often wrong or garbled. Add words later in a design app.
- Hands, small details and counts: fingers, number of items and fine patterns are often off. Ask for "five apples" and you may get seven.
- Real people: do not ask for pictures that make a real person look like they did something they did not. This can harm them, and tools often block it.
- Brands and characters: do not ask for protected logos or characters for commercial use. You may break the law, and the tool may refuse.
Honesty with images
If you share an AI-made picture, do not present it as a real photograph of a real event. Many platforms ask you to label AI images, and rules are getting stricter. Even where they do not, it is the honest thing to do. A fake photo of a flood or an accident can spread and cause real fear.
The common mistake
The common mistake is describing feelings but not things, such as "a beautiful, inspiring image of success". The generator cannot draw "success". Describe what the eye would see: a person on a hilltop at sunrise, arms raised, long shadows. Concrete nouns produce concrete pictures.
Try it yourself
Pick a simple idea, such as a poster for a school bake sale. Write one prompt using all five parts. Generate it. Then change only the style three times (for example watercolour, flat vector and pencil sketch) and compare. Write one line about which style suits the poster and why.
This course is free to read. Create a free account to enrol, save your progress and pick up where you left off.
Sign up free I already have an account