The 'Prompt Multi Batch Generation' workflow in ComfyUI offers a powerful approach to comparing multiple prompts simultaneously. By utilizing the FL_PromptMulti node, users can send different prompts at the same time, each generating its own output independently. This setup is ideal for batch processing where variations in prompts need to be evaluated quickly and efficiently. The workflow is particularly useful when connected to Blueprint or Partner Nodes, enabling users to process different modalities in a batch, thus saving time and resources. One of the key differences in this workflow is the ability to handle multiple prompts in a single queue entry, which contrasts with traditional methods that require sequential processing. This parallel processing capability allows for faster iteration and comparison, although it requires careful management of resources, as each prompt slot equates to a separate run, potentially increasing costs when using Partner Nodes.

API

Use this workflow from code

Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.

GET https://comfy.org/workflows/download/c51538d3e644.json
Fetching workflow JSON…

Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

# Install (beta)
pip install comfy-sdk        # Python
npm i @comfyorg/sdk          # TypeScript

# Run "Prompt Multi Batch Generation" (Python)
from comfy_sdk import Comfy

client = Comfy(api_key="comfyui-...")

# This workflow, exported in API format (see note below)
wf = client.workflows.from_file("templates_purz_batch_generation_api.json")

job = client.run(wf)
for output in job.get_outputs("36"):  # SaveImage
    output.to_file(output.name)

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key

FAQ

Frequently Asked Questions

View all workflows
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates