ComfyUI Node
API Generate Image
Generate images. Connect images to Preview Image or Save Image. Supports Images, Gemini, chat and Responses image APIs. / 生成图像,输出连接预览或保存图像。
API Generate Image
- connection
- options
- images
- text
- response_json
◄model►
◄prompt►
◄sizeauto►
◄count1►
◄run_id0►
CategorySimple API
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| connection | SA_CONNECTION | — | |
| model | STRING | Model ID from your provider; any supported ID is allowed. / 填写平台提供的模型名。 | |
| prompt | STRING | Write your request or connect a text output. / 输入要求,也可连接文本输出。 | |
| size | STRING | auto | Images API: 1024x1024 etc. Gemini/chat: auto or aspect ratio, e.g. 16:9. / Images 接口填像素尺寸;Gemini/chat 可填比例。 |
| count | INT | 11–16 | — |
| run_id | INT | 00–2147483647 | Change this value to request again with identical inputs. / 相同输入再次请求时,更改此数值。 |
| optionsopt | SA_OPTIONS | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | — |
| text | STRING | — |
| response_json | STRING | — |