create_workflow
Generate a ComfyUI workflow JSON from a named template. Choose from txt2img, img2img, upscale, inpaint, controlnet, or ip_adapter, and set parameters to get a ready-to-execute workflow.
Instructions
Create a ComfyUI workflow from a named template. Available templates: txt2img, img2img, upscale, inpaint, controlnet, ip_adapter. Returns the complete workflow JSON ready for execution or further modification.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | Template parameters (e.g. checkpoint, positive_prompt, negative_prompt, width, height, steps, cfg, seed, sampler_name, scheduler, denoise, image_path, mask_path, upscale_model) | |
| template | Yes | Template name: txt2img, img2img, upscale, or inpaint |