📜Image Generation 15 min read

How to Write Perfect AI Image Prompts

A guide to writing effective AI image prompts, covering the anatomy of a prompt, style keywords, negative prompts, and examples.

How to Write Perfect AI Image Prompts

In the world of AI image generation, the prompt is everything. It's the language you use to communicate your vision to the AI, and a well-crafted prompt can be the difference between a mediocre image and a masterpiece. This guide will break down the anatomy of a perfect prompt, introduce you to essential style keywords, explain the power of negative prompts, and provide you with examples to get you started.

The Anatomy of a Prompt

A good prompt is more than just a simple description. It's a carefully constructed set of instructions that guides the AI toward your desired outcome. Here are the key components of a perfect prompt:

  1. Subject: This is the main focus of your image. Be as specific as possible. Instead of 'a dog,' try 'a golden retriever puppy playing in a field of wildflowers.'
  2. Style: This determines the overall look and feel of the image. Do you want a photograph, a painting, a sculpture, or something else entirely? We'll dive deeper into style keywords below.
  3. Composition: This refers to the arrangement of elements in your image. You can use keywords like 'close-up,' 'wide shot,' 'portrait,' 'landscape,' 'from above,' or 'from below' to control the composition.
  4. Lighting: Lighting is crucial for setting the mood of your image. Experiment with keywords like 'cinematic lighting,' 'soft light,' 'hard light,' 'volumetric lighting,' 'neon glow,' 'golden hour,' or 'blue hour.'
  5. Color: You can specify a color palette to use in your image. For example, you could ask for 'a vibrant and colorful image,' 'a monochromatic image,' or 'an image with a pastel color palette.'
  6. Details: Add any other important details that you want to see in the image. This could include things like the time of day, the weather, or specific objects in the background.

Here's an example of a prompt that incorporates all of these elements:

A photorealistic close-up portrait of a wise old wizard with a long white beard and a pointed hat, holding a glowing crystal ball. The lighting is dramatic and cinematic, with a single beam of light illuminating his face. The background is a dark and mysterious library filled with ancient books. The color palette is deep blues and purples, with a touch of gold from the glowing crystal.

Style Keywords

Style keywords are the magic words that transform your prompt from a simple description into a work of art. Here are some of the most popular and effective style keywords to use:

  • Artistic Styles: 'in the style of [artist name],' 'impressionism,' 'surrealism,' 'cubism,' 'pop art,' 'art nouveau,' 'gothic art,' 'fantasy art,' 'sci-fi art.'
  • Photography Styles: 'photorealistic,' 'hyperrealistic,' '8k,' '4k,' 'macro photography,' 'long exposure,' 'double exposure,' 'black and white photography,' 'vintage photography.'
  • Illustration Styles: 'anime style,' 'manga style,' 'concept art,' 'character design,' 'sticker design,' 'tattoo design,' 'coloring book page,' 'pixel art,' 'vaporwave.'
  • 3D and Rendering Styles: '3D render,' 'Unreal Engine,' 'Octane Render,' 'ray tracing,' 'isometric.'

The Power of Negative Prompts

A negative prompt is a list of things that you don't want to see in your image. This is an incredibly powerful tool for refining your results and avoiding common AI art problems. You can use negative prompts to remove things like:

  • Unwanted objects: 'no people,' 'no cars,' 'no text,' 'no watermarks.'
  • Poor quality: 'blurry,' 'low resolution,' 'jpeg artifacts,' 'out of frame.'
  • Anatomical problems: 'disfigured,' 'extra limbs,' 'missing fingers,' 'ugly,' 'deformed.'
  • Unwanted colors: 'no red,' 'no green.'

Examples to Get You Started

Here are a few more examples of prompts to inspire you:

  • Prompt: A beautiful and serene landscape of a Japanese garden in the spring, with cherry blossom trees in full bloom, a tranquil pond with koi fish, and a traditional wooden bridge. The style is a watercolor painting with soft, pastel colors. Negative Prompt: blurry, harsh lines, dark colors
  • Prompt: A cyberpunk city street at night, with towering skyscrapers, neon signs, flying vehicles, and a diverse crowd of people. The style is a detailed and gritty digital painting. Negative Prompt: clean, sterile, empty
  • Prompt: A majestic and powerful dragon perched on top of a mountain, breathing fire into the sky. The style is a realistic and detailed 3D render. Negative Prompt: cartoonish, 2D, flat

Now it's your turn! Start experimenting with these techniques and see what amazing images you can create. The more you practice, the better you'll become at writing the perfect AI image prompts. Happy prompting!