Nodes/AUN ComfyUI Nodes/AUN Multi Prompt Cycler
ComfyUI Node

AUN Multi Prompt Cycler

Render every prompt variation in one queue run, not one at a time

By loz2754·Created 7 months ago·Updated about 8 hours ago· 5
AUN Multi Prompt Cycler
    • prompt
    • prompt_title
    moderange
    mode_input1-10
    custom_promptsEnter prompts here...

    Most prompt cyclers in ComfyUI pick one prompt and hand it down; you queue, look, re-queue, look again. AUNMultiPromptCycler is the batch version - it outputs all prompts matching your range or search as a list, and because both outputs are marked as lists (OUTPUT_IS_LIST), each list element triggers its own downstream execution. Queue once, get every variation in a single run. For iterating on prompts or sweep-testing a concept across ten phrasings, that's the whole workflow, automated.

    You drive it with two things. mode is either range or search. In range mode, mode_input takes comma-separated indices and ranges - 1,2,4-8,11 - with a special case: 0 means all prompts. In search mode, mode_input becomes a keyword filter where spaces mean AND and commas mean OR, so mountain sunset, forest matches prompts containing ("mountain" AND "sunset") OR "forest", filtering against both titles and text.

    Your prompts go in custom_prompts, one per line. Give each a title with the Title: Prompt text format, or leave it and get auto-generated titles ("Prompt 1", "Prompt 2"...). The node ships with ten example prompts (mountain, city, forest, coral...) so you can see the mechanism working before you replace them - that's a nice touch for a first run. Dynamic prompts are supported in the text, too.

    Outputs are just two: prompt (STRING) and prompt_title (STRING), and both are lists. That's what makes this different from the single-selection cyclers - the list-ness is the feature, not an accident. Wire prompt into a CLIP Text Encode and the sampler will run once per element. Pair the cycler with AUNLoRAsByPromptIndex for per-variation LoRA stacks: keep a prompt-index node feeding the LoRA loader, and each element's execution resolves the right LoRAs on its own.

    The one honest caveat: list fan-out means each element is a full execution. Ten prompts × high steps × high batch is ten samplers' worth of VRAM time, back to back. The tool doesn't make that cheaper; it makes it unattended.

    Install: ComfyUI Manager (search "AUN"), or cd ComfyUI/custom_nodes && git clone https://github.com/loz2754/AUN-ComfyUI-Nodes, restart. Missing piexif/cv2 on a manual install? pip install -r custom_nodes/AUN-ComfyUI-Nodes/requirements.txt.

    Troubleshooting:

    • Only one prompt comes out → check mode_input; 0 = all, otherwise you're telling it exactly which range to use.
    • A search returns nothing → remember space=AND; mountain sunset needs both words present.
    • Your custom prompts don't show → the node only falls back to its built-ins when custom_prompts is empty; once you type anything, yours are used.
    CategoryAUN Nodes/Prompts

    Inputs (3)

    NameTypeDefaultDescription
    modeCOMBOrangeRange: select by index. Search: filter by keywords.
    mode_inputSTRING1-10Range mode: comma-separated indices/ranges (e.g. '1,2,4-8,11'). Use '0' for all prompts. Search mode: space=AND, comma=OR (e.g. 'mountain sunset, forest').
    custom_promptsoptSTRINGEnter prompts here...Enter your own prompts, one per line. Optional title: use 'Title: Prompt text' format. Lines without a title get auto-generated ones (e.g., 'Prompt 1').

    Outputs (2)

    NameTypeDescription
    promptSTRING
    prompt_titleSTRING