Site icon CodeRevolution Knowledge Base

Basics of AI Prompt Engineering for Best Quality Images

“Prompt Engineering” is an important skill to create better generations with this text to image AI. After reading this document and applying these simple steps, you’ll be able to generate better images with the same amount of effort.

Note: Your prompt should be in English as the AI model was only trained with English labels, and will function poorly with other languages. If you speak another language you can use a online translation tool, which should provide excellent results as it does not have to be perfect.

1. Raw prompt

Raw prompt is the simplest way of describing what you want to generate, for instance;

  1. Panda
  2. A warrior with a sword
  3. Skeleton

This is the basic building block of any prompt. Most new people start by only using raw prompts, this is usually a mistake as the images you generate like this tend to get random and chaotic. It’s best to include as much detail as possible in your prompt describing exactly what you want to see in the scene.

2. Style

Style is a crucial part of the prompt. The AI, when missing a specified style, usually chooses the one it has seen the most in related images, for example, if you generated landscape, it would probably generate realistic or oil painting looking images. Having a well chosen style + raw prompt is sometimes enough, as the style influences the image the most right after the raw prompt.

The most commonly used styles include:

  1. Realistic
  2. Oil painting
  3. Pencil drawing
  4. Concept art

In the case of a realistic image, there are various ways of making it the style, most resulting in similar images. Here are some commonly used techniques of making the image realistic:

  1. a photo of + raw prompt
  2. a photograph of + raw prompt
  3. raw prompt, hyperrealistic
  4. raw prompt, realistic

You can of course combine these to get more and more realistic images.

To get oil painting you can just simply add “an oil painting of” to your prompt. This sometimes results in the image showing an oil painting in a frame, to fix this you can just re-run the prompt or use raw prompt + “oil painting”

To make a pencil drawing just simply add “a pencil drawing of” to your raw prompt or make your prompt raw prompt + “pencil drawing”.

The same applies to landscape art.

3. Artist

To make your style more specific, or the image more coherent, you can use artists’ names in your prompt. For instance, if you want a very abstract image, you can add “made by Pablo Picasso” or just simply, “Picasso”.

Below are lists of artists in different styles that you can use, but we encourage you to search for different artists as it is a cool way of discovering new art.

Portrait:

  1. John Singer Sargent
  2. Edgar Degas
  3. Paul Cézanne
  4. Jan van Eyck

Oil painting:

  1. Leonardo DaVinci
  2. Vincent Van Gogh
  3. Johannes Vermeer
  4. Rembrandt

Pencil/Pen drawing:

  1. Albrecht Dürer
  2. Leonardo da Vinci
  3. Michelangelo
  4. Jean-Auguste-Dominique Ingres

Landscape art:

  1. Thomas Moran
  2. Claude Monet
  3. Alfred Bierstadt
  4. Frederic Edwin Church

Mixing the artists is highly encouraged, as it can lead to interesting-looking art.

4. Finishing touches

This is the part that some people take to extremes, leading to longer prompts than this article. Finishing touches are the final things that you add to your prompt to make it look like you want. For instance, if you want to make your image more artistic, add “trending on art station”. If you want to add more realistic lighting add “Unreal Engine.” You can add anything you want, but here are some examples:

Highly detailed, surrealism, trending on art station, triadic color scheme, smooth, sharp focus, matte, elegant, the most beautiful image ever seen, illustration, digital paint, dark, gloomy, octane render, 8k, 4k, washed colors, sharp, dramatic lighting, beautiful, post processing, picture of the day, ambient lighting, epic composition, bokeh, etc.

5. Conclusion

Prompt engineering allows you to have better control of what the image will look like. It (if done right) improves the image quality by a lot in every aspect.

Exit mobile version