1 of 23

How to prompt AI

Images, part 1

2 of 23

Prompting image generators

  • DALL-E
  • Stable Diffusion (Leonardo)
  • Midjourney
  • Adobe Firefly
  • Ideogram

3 of 23

  1. Start with a good prompt
  2. Respond in ways that work well with the prompt
  3. Be critical

Process for using Generative AI

4 of 23

  • Evaluate and choose good tool
  • Start with a good prompt
  • Respond in ways that work well with the prompt
  • Be critical

Process for using Generative AI

5 of 23

  • Evaluate and choose good tool
    1. Find comparisons/ratings
    2. Look at the terms of service for privacy, etc

Process for using Generative AI

6 of 23

Image generators strengths and weaknesses

Ratings by Matt Wolfe, October 2023

7 of 23

Ideogram.ai

  • πŸ‘ Best at generating text in an image
  • πŸ‘ Free
  • ⚠️ Your generation will be public
  • ⚠️ May collect your data for model training

8 of 23

  • Evaluate and choose good tool
  • Start with a good prompt
  • Respond in ways that work well with the prompt
    • ⬆️ weight images like what you want
    • Try variations on your prompt

Process for using Generative AI

9 of 23

Compared to text generation

  • Commas rather than sentences
  • More options for model and style
  • You can weight the influence of a previous image
  • Requires upsampling for a decent resolution
  • Takes longer

  • Still requires incremental changes

10 of 23

Medium

πŸ“·

✏️

βœ’οΈ

Image prompt template

}

Anatomy of a text prompt

11 of 23

Medium

Subject

πŸ“·

🐰

✏️

🐢

βœ’οΈ

🐡

Image prompt template

}

Anatomy of a text prompt

12 of 23

Medium

Subject

Details

πŸ“·

🐰

πŸ‘„

✏️

🐢

πŸ‘οΈ

βœ’οΈ

🐡

πŸ‘ƒ

Image prompt template

}

Anatomy of a text prompt

13 of 23

Naive prompt with Leonardo.ai

A screenshot of leonardo interface with the prompt

Screenshot of the output

14 of 23

Critique of Leonardo.ai output

Screenshot of the output

πŸ‘ Accurate occupations

πŸ‘ No malformed bodies

πŸ‘ Photorealistic detail

πŸ‘Ž Not engaged in an activity

πŸ‘Ž Unrealistically attractive

(the β€œmidpoint hottie” problem”)

15 of 23

Medium

Subject

Details

Style

πŸ“·

🐰

πŸ‘„

πŸ‘¨β€πŸŽ¨

✏️

🐢

πŸ‘οΈ

πŸ‘©β€πŸŽ¨

βœ’οΈ

🐡

πŸ‘ƒ

πŸ§‘β€πŸŽ¨

Image prompt template

}

Anatomy of a text prompt

16 of 23

Medium

Subject

Details

Style

Composition

πŸ“·

🐰

πŸ‘„

πŸ‘¨β€πŸŽ¨

πŸ“ˆ

✏️

🐢

πŸ‘οΈ

πŸ‘©β€πŸŽ¨

πŸ“‰

βœ’οΈ

🐡

πŸ‘ƒ

πŸ§‘β€πŸŽ¨

πŸ–ΌοΈ

Image prompt template

}

Anatomy of a text prompt

17 of 23

A [medium] of a [subject] with [details] in the style of [style] with [composition].

Medium

Subject

Details

Style

Composition

πŸ–ŒοΈ

🐢

πŸ‘οΈ

πŸ§‘β€πŸŽ¨

πŸ–ΌοΈ

Image prompt template

18 of 23

A digital illustration of a mystical forest with glowing mushrooms and ethereal creatures in the style of fantasy art with a central composition that draws the eye to a shimmering river running through the scene.

Medium

Subject

Details

Style

Composition

πŸ–ŒοΈ

🐢

πŸ‘οΈ

πŸ§‘β€πŸŽ¨

πŸ–ΌοΈ

Image prompt template

19 of 23

You should check out how other people got their creations and use their prompts for examples of how to compose your prompt

Examples from Leonardo.ai

Image prompt examples

20 of 23

Examples from Leonardo.ai

Some are very simple prompts that get a good result

Image prompt examples

21 of 23

These are much more common, because extensive prompts get better results often

Examples from Leonardo.ai

Others have extensive descriptions of how they want the result to look

Image prompt examples

22 of 23

Examples from Leonardo.ai

Using the same prompt doesn’t mean you’ll get the same image.

But the more extensive prompts are much more consistent

Probabilistic outputs

23 of 23

  • Evaluate and choose good tool
  • Start with a good prompt
  • Respond in ways that work well with the prompt
  • Be critical
    • Change prompt to work better
    • Evaluate output for correctness, bias; seek other sources (e.g. Google, textbooks, etc)

Process for using Generative AI