22 Feb 2023
How to write a good prompt for AI text to image generation

Writing a good text prompt for text-to-image AI generation, like Stable Diffusion or similar models, involves providing clear, concise, and descriptive instructions or cues that guide the AI in generating the desired image. Here are some tips for writing effective prompts:

Be Specific

Clearly describe the scene or concept you want the AI to generate. Use descriptive language to convey the details, such as setting, objects, characters, actions, emotions, etc.

Provide Context

Give the AI enough context to understand the prompt. Include relevant information about the environment, characters, relationships, mood, and any other pertinent details.

Use Clear Language

Write in a straightforward manner to avoid ambiguity. Use simple and precise language that leaves little room for interpretation.

Include Constraints

If there are specific constraints or requirements for the generated image (e.g., color palette, style, composition), mention them in the prompt to guide the AI accordingly.

Encourage Creativity

While providing specific details, leave room for creativity and interpretation. Allow the AI to generate unique and imaginative responses based on the given prompt.

Consider Length

Keep the prompt concise but comprehensive. Avoid unnecessary details or overly long descriptions that may confuse the AI.

Here's an example of a well-written text prompt for generating an image of a beach scene using Stable Diffusion:

"Serene beach at sunset. Sandy shore with gentle waves lapping against it, palm trees, colorful sky."

Let's try this prompt on Retouch Pro, we will use one of our public characters Lee in this image:

A pretty good result! As we can see, by following these guidelines, you can create prompts that effectively communicate your vision to the AI and facilitate the generation of compelling and coherent images.

Recent posts

How to generate full body shots with Stable Diffusion XL One of the common problems that AI enthusiasts experience is that AI models (such as Stable Diffusion) generate images of the up...
How to write a good prompt for AI text to image generation Writing a good text prompt for text-to-image AI generation, like Stable Diffusion or similar models, involves providing clear, c...