batch_generate
Submit multiple prompts as a single batch to ComfyUI, applying shared parameters, optional per-job randomization, and unique seeds to run bulk image generation jobs.
Instructions
Submit batch jobs with optional per-generation randomization.
Args: prompts: List of positive prompt strings (one per job) shared_params: Static parameters applied to all generations randomize: Per-generation randomization specs (override shared_params) Supports: scalar, [min, max] range, choice pool, "random"/"random_unsafe" deduplicate_seeds: Ensure unique seeds across all jobs in this batch priority: Queue priority hint ("high" | "normal")
Returns: Batch metadata with batch_id, total_jobs, queued_jobs, job_ids
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompts": "<prompts>"
},
"name": "batch_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompts | Yes | ||
| priority | No | normal | |
| randomize | No | ||
| keep_loaded | No | ||
| shared_params | No | ||
| deduplicate_seeds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||