gpt_image_generate
Generate or edit images using GPT Image via Comfy.org. Provide a text prompt to create new images or edit existing ones. Requires API key.
Instructions
Generate or edit an image using GPT Image via Comfy.org API.
Can generate from text alone, or edit an existing image with a prompt. All parameters except prompt are optional. Requires COMFY_API_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of images. Default: 1. Range: 1-4. | |
| seed | No | Random seed. Default: -1 (random). | |
| size | No | Image dimensions. Default: "auto". Valid: "auto", "1024x1024", "1024x1536", "1536x1024". | auto |
| model | No | Model name. Default: "gpt-image-1.5". Valid: "gpt-image-1", "gpt-image-1.5". | gpt-image-1.5 |
| prompt | Yes | Text description or edit instruction. | |
| quality | No | Image quality. Default: "low". Valid: "low", "medium", "high". | low |
| background | No | Background style. Default: "auto". Valid: "auto", "opaque", "transparent". | auto |
| input_image | No | Filename in ComfyUI input directory for editing. Default: "" (none, generate from scratch). Upload first with upload_image if needed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||