A conceptual overview of prompting for AI image generation models. Learn the key components of a good image prompt, including subject, style, and composition. Lecture 17
From Text to Pixels
Welcome back! While most of this course has focused on text-based AI, many of the same principles apply to the exciting world of text-to-image generation. These are models like Midjourney, Stable Diffusion, and DALL-E that create pictures from your words.
Today, we’ll do a conceptual overview of how to prompt for images. The core idea is the same: clear, detailed instructions produce better results.
The Key Components of an Image Prompt
A good image prompt is a recipe with several key ingredients. While you don’t need all of them every time, combining them gives you more control.
1. Subject
What is the main thing you want to see in the image? Be as specific as possible.
Simple Subject: a cat
Detailed Subject: A fluffy, orange tabby cat with green eyes, sleeping on a stack of books.
2. Style / Medium
What should the image look like? Is it a photograph? A painting? A cartoon?
Examples: photograph, oil painting, watercolor sketch, 3D render, anime style, pixel art, line drawing.
3. Composition / Framing
How should the subject be framed? Where is the “camera”?
Examples: close-up shot, wide-angle landscape, portrait, from a low angle, macro shot.
4. Lighting
Lighting dramatically affects the mood of an image.
Examples: soft morning light, dramatic studio lighting, neon glow, cinematic lighting, backlit.
5. Color
You can guide the color palette of the image.
Examples: vibrant and colorful, monochromatic black and white, pastel colors, earthy tones.
6. Level of Detail and Realism
How realistic or detailed should it be?
Examples: highly detailed, 8k, photorealistic, hyperrealistic, minimalist, abstract.
Example: Building an Image Prompt from Scratch
Idea: I want a picture of a cool robot in a forest.
Prompt v1 (Simple):
A robot in a forest.
This is too vague. The result will be random.
Prompt v2 (Adding Detail):
Let’s add our components:
- Subject: A tall, sleek, humanoid robot with glowing blue eyes.
- Setting: Standing in a misty, ancient redwood forest.
- Style: A realistic, cinematic photograph.
- Lighting: Sunbeams filtering through the tall trees.
- Detail: Highly detailed, 4k.
Prompt v3 (Putting it all together):
A cinematic photograph of a tall, sleek, humanoid robot with glowing blue eyes, standing in a misty, ancient redwood forest. Sunbeams are filtering through the tall trees. Highly detailed, 4k, photorealistic.
This prompt will produce a much more specific and dramatic image that is closer to our original vision.
Negative Prompts
Many image models also allow for negative prompts. This is where you tell the model what you don’t want to see. It’s a very powerful tool for removing common errors or unwanted elements.
Example Negative Prompt: ugly, blurry, bad anatomy, extra limbs, disfigured, watermark, text

Key Takeaways from Lecture 17
- Image prompting uses the same core principle as text prompting: specificity is key.
- Build your prompt by combining components: Subject, Style, Composition, Lighting, Color, and Detail.
- Start with a simple idea and gradually add descriptive keywords and phrases.
- Use negative prompts to tell the AI what to avoid, which can significantly improve image quality.
- Image generation is highly iterative. Expect to try many variations of a prompt to get the perfect shot.
End of Lecture 17. You now have the conceptual tools to start creating visual art with AI. Next, we’ll learn how to evaluate the performance of our prompts and the AI’s responses.
