run_workflow
Execute a saved ComfyUI workflow with custom inputs, image uploads, and node enable/bypass toggles, optionally waiting for and downloading results.
Instructions
Run a saved workflow with your inputs. set: {"<node id|title|class>.": value}, e.g. {"Positive.text": "a cat", "KSampler.seed": 7, "EmptyLatentImage.width": 1024}. images: {"<LoadImage node id|title>": local file path (uploaded) or a file name already on the server}. enable / bypass: node ids or titles to switch on or bypass for this run (e.g. an optional LoRA). wait_seconds: wait up to this long (capped by COMFY_MAX_WAIT) and download results; otherwise poll get_job.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | No | ||
| name | Yes | ||
| bypass | No | ||
| enable | No | ||
| images | No | ||
| download_dir | No | ||
| wait_seconds | No |