Stability Seconds: How to Use Prompt Weighting
In this week’s Stability Seconds, we’re showing you how to use prompt weighting, a technique that helps you control which parts of your prompt have more or less influence on the final image. It’s a fast way to steer your image toward your desired output without rewriting your prompt.
By adding weights to specific words in your prompt, you can guide the model’s attention, making some parts more prominent than others. It’s a fast way to steer your image toward your desired output without rewriting your prompt.
Here’s how you can do it:
Emphasize elements: Put parentheses around the part of your prompt you want to focus on, then add a colon and a number. For example, (trench coat:1.5) tells the model to emphasize the trench coat. The higher the number, the more it stands out.
De-emphasize elements: Put parentheses around the part of your prompt you want to make less prominent, then add a colon and a number below one. For example, (background:0.5). The lower the number, the less it stands out.
From there, you can use Stable Image Ultra to try prompt weighting on ComfyUI through its native API nodes, or access the model directly on the Stability AI API.
If you’re catching up, last week we shared how to use simple prompting techniques to create more precise images faster by not having to rewrite your prompt. You can check it out here if you missed it.