submit_batch
Enqueue multiple ComfyUI workflows under a single batch ID, with optional parameter sweeps for varied inputs. Returns a batch ID for tracking and output retrieval.
Instructions
Enqueue MANY ComfyUI workflows under one durable batch_id. Provide EITHER workflows (array of API-format workflows) OR one workflow plus a sweep (array of flat input-override sets — each set produces one job, applied to every node that already has that input, like modify_workflow). Reuses the enqueue_workflow path (seeds re-randomized unless disable_random_seed). Returns { batch_id, count, prompt_ids }; the batch_id → prompt_ids mapping is persisted to disk and stays valid across server restarts. Follow with get_batch_status / wait_for_batch / get_batch_output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sweep | No | Param sweep: one job per override set, e.g. [{"cfg":6},{"cfg":8,"steps":30}]. Each key is set on every node that already has that input. | |
| workflow | No | One base workflow in API format, used with `sweep`. | |
| workflows | No | Array of ComfyUI workflows in API format (node ID -> {class_type, inputs}). Mutually exclusive with workflow+sweep. | |
| disable_random_seed | No | If true, do not randomize seed values (default randomizes per job). |