This page covers everything to do with prompts, prompt structure and best practices for you to craft your best prompts for amazing images. Everything is super new and changing all the time so be sure to experiment and discover cool tricks for yourself.
Prompt Formatting
Basic Formatting
Prompts can be practically anything you'd like them to be and can work with a simple sentence like
I have not been able to test this properly yet, but the use of underscores or hypens should work well and be read as expected. Although you can simply use a space between words like normal.
Prompt Order
Prompt order is the easiest way to change the image in subtle ways without having to add more prompts or add negative prompts. Essentially, whatever prompt is at the front of your list, will influence the model more than prompts further down the list. So, if you have a prompt like
Parenthesis
The more parenthesis you add, the stronger the influence, however, I have not tested what are the maximum amount of parenthesis that will actually affect the model. I would currently recommend using a maximum of 3 or 4 parenthesis as it doesn't make much sense to add more than that. Each parenthesis increases the influence of the prompt by roughly 10% (but not exactly 10%).
If you're wanting to reduce the influence of a prompt, but you still want it to be in your prompt list, you can use square brackets in the exact same way as parenthesis but to reduce a prompts influence instead of increasing it.
If you need to use the literal parenthesis/bracket characters in your prompts, you must prefix them with a backslash. For example,
Number Multiplier
Similar to using parenthesis, you can use a format like
A
A quick way to change prompt weighting is to select the prompt you want to change and click
You can use multipliers within multipliers and the values will be multiplied instead of added together. For example,
AND Operator
According to u/StoryStoryDie the AND operator is not actually a feature of the WebGUI, but I have kept this here for reference. I personally feel AND does influence generation, but that's simply my own opinion.
The AND operator is available through the WebGUI. It signals the AI to try to combine the two prompts togther. The AND operator can work well when you're trying to add an object to a character, for example, if you want a character to wear glasses, using
Alternate Prompts
Alternative prompts are similar to the AND operator however instead of simply adding two prompts together, these prompts will be switch with each other every sampling step. The syntax to use alternating prompts is
You can use alternating prompts within alternating prompts, however logically it will not affect much if you were to create something like
In the linked Reddit post, they have combined long prompts together instead of just 2 words which could be an interesting this to experiment with.
Transitional Prompts
Transitional Prompts also known as Prompt Editing, is when you can swap out one of your prompts mid-rendering with a different prompt to achieve an effect where the image looks like a mix of those two prompts in a different way compared to simply listing both prompts seperately.
The syntax is
The
You can have multiple transitional prompts in your prompts list and they can all have different
In my limited testing, I haven't been able to get this method to work that well, but further testing is needed
Scheduled Prompts
This has been taken from u/StoryStoryDie. Scheduled prompts are a way to insert or remove a prompt from the generation at a specific sampling step. The format is
You could be mistaken for thinking that this format is for de-emphasising a prompt and you're not completely wrong, it simply de-emphasises in a different way by completely removing the prompt from the list at a certain point in the generation.
Japanese Prompts
If you are going for anime style artwork, it may be useful to use actual Japanese characters as prompts as that will prompt the AI to use images in its database that have been uploaded by Japanese artists or posted to Japanese sites which will have a much larger pool of anime related imagery to draw from. Unfortunately, I do not speak/ write Japanese, so I am unable to assist with what Japanese phrases to use, but a good starting point may be to use Google Translate, or try visiting Japanese websites, especially manga related ones that have stories and images listed by tags.
Romanji (the English spelling of Japanese words) does work in a lot of cases, so feel free to expriment with that. Words like Kawaii, gyaru and neko work to some effect.
Negative Prompts
Negative Prompts are just as important as normal prompts and as the name suggests, anything in your negative prompts lists will be objects/ characteristics that the AI will try to avoid or reduce its influence on the image generation. This is extremely useful to remove disfigured body parts or unwanted characteristics of a person.
Negative prompts give you just as much flexibility in prompt order as normal prompts, which means you can use parenthesis, brackets, numbering and ording to choose how negatively these prompts will affect your image.
My current general use negative prompts list is as follows, click the text below to copy it.
Another crazy negative prompt list provided by Reddit user u/Superb-Ad-4661 covers a huge list of bad prompts and supposedly improves hand generation.
The user mentions that
Prompt research
I've put some time into trying to find out what prompts work, what don't, and what can produce interesting results. There are some prompts that will completely change an image, and others that will barely change anything. It takes a lot of trail and error to find out what works, and it all depends on what you're trying to create.
If you want to see my extensive list of prompts that I've tested, you can see my Prompt List Page that includes descriptions of how each prompt can change an image. I mostly use Waifu Diffusion and Euler/Euler A for generating images, so prompts may affect your image differently depending on your specific settings, but since the amount of variables are practically limitless, my testing should be a good starting point to help you get what you're looking for.
Interrogator
The interrogator is a feature of the webGUI that allows you to give it any image and it will try to figure out what promtps best describe the image. It won't always work perfectly, but it can be a good starting point if you're unsure of how to describe an image or can be useful in learning new prompts and what prompts match an image.
The interrogate option is under the img2img tab of the webGUI as a button under the "Generate" button. All you need to do is drag an image onto the image drop area with the img2img tab selected, and then click the interrogate button.
If you are using the webGUI, you can add the COMMANDLINE_ARGS
InstructPix2Pix
InstructPix2Pix is a new method of model instruction. Currently, it is not available on the AUTO web UI, but it can be accessed using the NMKD GUI.
InstructPix2Pix enables you to communicate with the model in a more human-like manner, allowing you to instruct it on the desired image generation and how to generate it more effectively than traditional prompts.
For instance, you can say "Make this image look like a scene from the anime Akira" and the model will understand your request and generate the corresponding image. As the technology advances, this method of instruction will provide more control over image generation, including the ability to position objects in a scene or combine objects, such as "Create an image of a turtle holding a rose and standing in the corner of a room".
This new method of instruction will represent a significant connection between language learning models like ChatGPT and image generation.
Prompt Resources
- How to create what's in your head (How to direct) by u/MrBeforeMyTime
- A script to test your prompt so you don't have to use lengty descriptions by U/Extraltodeus
- Prompting: What you need to know (Part 1) by u/magekinnarus
- Some detailed notes on automatic1111 prompts as implemented today by u/StoryStoryDie