Dynamic Prompting

Modified on Mon, 02 Oct 2023 at 09:44 PM

Dynamic Prompts are a powerful feature designed to produce a variety of prompts based on user-defined options. Using a special syntax, you can construct a prompt with multiple possibilities, allowing for ideation, exploring various scenarios, or testing different concepts swiftly and efficiently.


Structure of a Dynamic Prompt

A Dynamic Prompt comprises of regular text, supplemented with alternatives enclosed within curly braces {} and separated by a vertical bar "|"

For example the dynamic prompt: {cat|dog|hamster}

Will create the following prompts:

  • cat
  • dog
  • hamster

Dynamic Prompts can also  designate multiple selections from a single group of options. This feature is triggered by prefixing the options with a numerical value followed by $$.

For example, in: {2$$cat|dog|hamster}, the prompts created will be:

  • cat , dog
  • cat , hamster
  • dog , hamster

Using Dynamic Prompts

Once a Dynamic Prompt is configured, the system generates an array of combinations using the options provided. These combinations will then be ran in random order until the "Images" setting has been reached.

Seed Behavior:

Seed behavior controls the seed value used during image generation if “Random Seed” is selected. If “Random Seed” is not selected, the same seed value will be used for all generations in the batch

  • Seed Per Image will use a new seed value for every image generation
  • Seed Per Iteration will use a new seed value for each iteration, preserving the seed between prompts in the same iteration

Seed Per Prompt helps provide a larger variety of images, while Seed Per Iteration helps fine tune prompts and identify the differences between prompts.


Max Prompts

The max prompts settings determines the maximum number of prompts that will be executed per iteration.

For example, with the prompt: {cat|dog|hamster}

If Max Prompts = 2, and Iterations = 2 the following prompts will be added to the queue:

Iteration 1:

  1. cat
  2. dog

Iteration 2:

  1. cat
  2. dog

Tips and Tricks for Using Dynamic Prompts

  • Utilize Dynamic Prompts to generate a wide spectrum of prompts, perfect for brainstorming and exploring diverse ideas.
  • Ensure that the options within a group are contextually relevant to the part of the sentence where they are used. For instance, group building types together, and seasons together.
  • Apply the $$ prefix when you want to incorporate more than one option from a single group. This becomes quite handy when mixing and matching different elements. Experiment with different quantities for the prefix. For example, 3$$ will select three distinct options.
  • Be aware of coherence in your prompts. Although the system can generate all possible combinations, not all may semantically make sense. Therefore, carefully choose the options for each group.
  • Always review and fine-tune the generated prompts as needed. While Dynamic Prompts can help you generate a multitude of combinations, the final polishing and refining remain in your hands.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article