Combination Prompts
Leverage Combination Prompts in Sogni Batch Generations
Last updated
Leverage Combination Prompts in Sogni Batch Generations
Last updated
When requesting more than 1 image at a time from Sogni’s Relaxed and Fast Supernet (aka batch generations) you can add prompt text variations for each image returned from your single prompt request.
This dynamic prompt templating feature is called combination prompts. You may template your prompt using the | (pipe) character inside curly braces {} within your prompt text to separate words or phrases. Each separate word or phrase is used to create a different image. The curly brace can be around your entire prompt to completely change prompts for each image or just a small portion of the text.
For example a prompt for “A woman with {black|blonde} hair” will generate 2 prompts:
Prompt 1: A woman with black hair
Prompt 2: A woman with blonde hair
If you then request a batch of 4 images, image 1 will use Prompt 1 and image 2 will use Prompt 2.
When you have more images requested than prompt combinations generated then the next set of images will loop back to the start of your combinations. So Image 3 will use Prompt 1, and image 4 will use Prompt 2.
You can add spaces inside the curly brace options to make the prompt more readable for yourself and those spaces will be ignored. So these 2 examples will produce the same images:
“A woman with {black|blonde} hair”
“A woman with { black | blonde } hair”
There is no limit to the number of options you can include in the curly braces and you may include multiple curly brace combinations in your prompt. The only limiting factor is the overall prompt box character limit as well as being sure to request a minimum number of batch images to meet the number of variations you are requesting.
For example this prompt:
{man|woman} holding a {dog|cat} in the {winter|summer}
will generate 2 x 2 x 2 = 8 prompt variations so you should hit 9 on the image count tab bar.
man holding a dog in the winter
man holding a dog in the summer
man holding a cat in the winter
man holding a cat in the summer
woman holding a dog in the winter
woman holding a dog in the summer
woman holding a cat in the winter
woman holding a cat in the summer
man holding a dog in the winter <- image 9 cycles back to the first prompt
You can use this feature in any or all of the prompt fields: Prompt, Style, Avoid / Negative Prompt.
One additional tip:
If you want the composition and other elements of the images generated from your prompt variations to stay as similar as possible be sure to use a “fixed seed”. This means locking the Seed number so it doesn’t change between generations. You can also explore using Guide Image and Controlnet features with this feature.
Note: The final images displayed in your Sogni App from a Combination Prompt batch image request may not appear in the prompt order outlined above since image jobs are done by several worker machines in parallel and are displayed to you in the order they are completed and downloaded by your machine.
▶️ Tutorial video: Sogni AI Prompt Engineering: Your Guide to Stunning Results
Need help? Ask in our Discord!
For any questions regarding the use of Sogni, tips, suggestions, bugs, sharing art, discussing AI and life, or simply hanging out... Join our Discord community! Join Sogni Discord ✨