comfyui_generate_image
Generate images from text prompts or edit existing images using ComfyUI workflows. Provide a prompt and optional image references to create or modify visuals.
Instructions
Generate or edit images with the default image workflow (preset "image").
Without images it generates from the prompt. With images (URLs, base64, or ComfyUI
input filenames) it edits them following the prompt, if the workflow supports it; refer to
them in the prompt as , ... in the order given.
Size: width/height in pixels, or aspect_ratio (any ratio: "16:9", "5:4", "1.5") and/or
megapixels (1.0 = ~1024x1024), converted to pixels. Without any size it generates
1024x1024; when editing it uses the size of (scaled down if very large).
upscale toggles the extra upscaled output when the workflow has one. Each output file has a
label (e.g. "base", "upscale") when the workflow defines them.
Empty arguments keep the workflow's own values. extra sets more workflow params or raw
"." overrides; workflow swaps the preset for another workflow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cfg | No | ||
| seed | No | ||
| wait | No | ||
| extra | No | ||
| steps | No | ||
| width | No | ||
| height | No | ||
| images | No | ||
| prompt | Yes | ||
| preview | No | ||
| timeout | No | ||
| upscale | No | ||
| workflow | No | ||
| batch_size | No | ||
| megapixels | No | ||
| aspect_ratio | No | ||
| negative_prompt | No |