getimg.ai
Pricing
Log in

Guide to Stable Diffusion Prompt Weights

How to use prompt weights in getimg.ai


Prompt weighting provides a way to emphasize or de-emphasize certain parts of a prompt, allowing for more control over the generated image. This guide will show you how to weigh your prompts.


Prompt weighting basics

  • In order to increase emphasis on a word or phrase, add a + or number between 1.1 and 2 at the end.

  • In order to reduce emphasis on a word or phrase, add a - or number between 0 and 0.9 at the end.

  • The default weight = 1

  • The more weight you add, the greater the risk of lower quality there is.


The following syntax is recognized:

  • single words without parentheses:

    • penguin holding a beer+

  • single or multiple words with parentheses:

    • penguin holding a (beer)+

    • penguin holding a (beer)-

    • penguin (holding a beer)+

    • penguin (holding a beer)-

  • more symbols result in more effect:

    • penguin (holding a beer)+++

    • penguin (holding a beer)+++

  • nesting:

    • penguin (holding a beer+)++ --> beer effectively gets +++

  • all of the above with numbers:

    • penguin holding (a beer)1.1

    • penguin (holding (a beer)1.3)1.1

  • Weighting with numbers

    • + is equivalent to 1.1 ; ++ is equivalent to 1.1^2 ; +++ is equivalent to 1.1^3 etc.

    • - is equivalent to 0.9 ; -- is equivalent to 0.9^2 ; --- is equivalent to 0.9^3 etc.



Prompt weighting also works with negative prompts

If you really don't want to have something in your image and want to make sure it won't appear, just add more weight to the negative prompt.



Examples of how the prompt weighting works

Let's take a look at two examples showing how prompt weighting works and how to use it.


Example 1

You can use prompt weighting to increase or decrease the amount of something. We will use the prompt "penguin holding a beer" as an example and see what happens if we increase or decrease the amount of attention we want Stable Diffusion to pay to the word "beer".


Using - to reduce beer-ness:

penguin holding a beer
penguin holding a beer-
penguin holding a beer--
penguin holding a beer---

Using + to increase beer-ness:

penguin holding a beer
penguin holding a beer+
penguin holding a beer+++
penguin holding a beer+++++

Example 2

You can also change the balance between different parts of a prompt. Let's take a look at an example of an apple pie below.


Apple pie with more apple:

apple pie
apple+++ pie
apple++++++ pie


Alternatively, apple pie with more pie:

apple pie
apple pie+++
apple pie++++++


Prompt weighting is available in all of the getimg.ai tools. This means you can test your new knowledge with the AI Generator, Image Editor, AI Canvas, and DreamBooth.




FAQ


Should the symbols +- follow the phrase directly or after a space?

The symbols +- should follow the word or phrase directly. There shouldn’t be a space between these two. e.g. a horse++


To what extent does a symbol change the weight?

  • + is equivalent to 1.1, ++ to 1.1^2, +++ to 1.1^3, etc.

  • - is equivalent to 0.9, -- to 0.9^2, --- to 0.9^3, etc.


How to weigh multi-word phrases?

If you want to weigh the phrase "in the style of Tamara Łempicka", you should put the phrase in brackets. e.g. (in the style of Tamara Łempicka)++


What about complex phrases: "in the style of Tamara Łempicka and expressionism"? How can I have more expressionism and less Tamara Łempicka?

If you want to have more "expressionism" and less "Tamara Łempicka", you should do the following:

in the style of (Tamara Łempicka)- and (expressionism)+

or

(in the style of Tamara Łempicka)-, (in the style of expressionism)+