Tutorials / Prompting Meta AI and Llama Models / Writing image generation prompts

Writing image generation prompts

10 min read text
Course contents (20 lessons)
  1. Getting to know Meta AI and Llama
  2. What Meta AI is and where you can use it
  3. Meta AI versus Llama: the assistant and the models
  4. Your first chat with Meta AI
  5. Prompt basics that work
  6. The anatomy of a good prompt
  7. Context, tone, length and follow-ups
  8. Everyday uses
  9. Writing and replying to messages
  10. Captions, posts and bios
  11. Planning and study help
  12. Customer replies for a small business
  13. Images, groups and privacy
  14. Writing image generation prompts
  15. Group chats, etiquette and privacy
  16. Working with Llama models directly
  17. Running a Llama model on your own computer
  18. System prompts and chat templates
  19. Parameters: temperature, top_p and max tokens
  20. Few-shot examples and structured JSON output
  21. Advanced prompting
  22. Prompting Llama for code
  23. Retrieval-augmented prompting: answering from your own documents
  24. Evaluating and comparing answers
  25. Safety, limits and a final project
  26. Safety, limits and responsible use
  27. 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:

  1. Subject: the main thing. "A tabby cat", "an old wooden bookshop".
  2. Action or situation: what is happening. "Sleeping on a windowsill".
  3. Setting: where and when. "Rainy evening, a narrow street in an old city".
  4. Style: the look. "Watercolour", "flat vector illustration", "realistic photo", "pencil sketch".
  5. 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