Prompting for Images
Writing effective prompts for image generation is different from writing prompts for text generation. Image prompts need to be visual and descriptive. They benefit from specific details about subject, setting, style, lighting, and composition.
12 min•By Priygop Team•Updated 2026
Anatomy of a Good Image Prompt
- Subject: what is the main focus? (a red fox, a futuristic city, a bowl of fruit)
- Setting or background: where is it? (in a dense forest, on Mars, in a cozy kitchen)
- Style: what artistic style? (photorealistic, watercolor, oil painting, digital art, anime, minimalist)
- Lighting: what kind of light? (golden hour sunlight, soft studio lighting, dramatic shadows, neon glow)
- Mood or atmosphere: what feeling? (peaceful, dramatic, mysterious, joyful, epic)
- Camera or perspective: what viewpoint? (wide angle, close-up, aerial view, eye level)
- Quality modifiers: '4K', 'highly detailed', 'sharp focus', 'professional photography'
Prompt Examples: Weak vs Strong
Prompt Examples: Weak vs Strong
# Comparing weak and strong image prompts
weak_and_strong_prompts = [
{
"weak": "A dog",
"strong": "A golden retriever puppy playing in autumn leaves, soft afternoon sunlight, shallow depth of field, bokeh background, photorealistic photography, warm colors",
"improvement": "Added breed, action, setting, lighting, technique, and mood"
},
{
"weak": "A city at night",
"strong": "A cyberpunk cityscape at night, towering neon-lit skyscrapers, rain-slicked streets reflecting colorful lights, fog in the air, futuristic flying vehicles, cinematic wide shot, 4K digital art",
"improvement": "Added genre (cyberpunk), specific visual details, atmosphere, lighting conditions, camera shot type, and quality"
},
{
"weak": "A portrait",
"strong": "A professional studio portrait of an elderly woman with kind eyes and silver hair, soft directional lighting, neutral gray background, natural expression, Canon 85mm lens feel, sharp focus",
"improvement": "Added subject description, lighting type, background, emotional quality, technical photography details"
},
]
for i, example in enumerate(weak_and_strong_prompts, 1):
print(f"Example {i}:")
print(f" Weak: '{example['weak']}'")
print(f" Strong: '{example['strong'][:80]}...'")
print(f" Why better: {example['improvement']}")
print()Diagram
Loading diagram…
Deep Learning ⊂ Machine Learning ⊂ Artificial Intelligence
Key Takeaways
- Writing effective prompts for image generation is different from writing prompts for text generation.
- Subject: what is the main focus? (a red fox, a futuristic city, a bowl of fruit)
- Setting or background: where is it? (in a dense forest, on Mars, in a cozy kitchen)
- Style: what artistic style? (photorealistic, watercolor, oil painting, digital art, anime, minimalist)