Nodes/Simple API · 简易 API/API Generate Image
ComfyUI Node

API Generate Image

Generate images. Connect images to Preview Image or Save Image. Supports Images, Gemini, chat and Responses image APIs. / 生成图像,输出连接预览或保存图像。

By playboy-dongan·Created 8 days ago·Updated 8 days ago· 0
API Generate Image
  • connection
  • options
  • images
  • text
  • response_json
◄model►
◄prompt►
◄sizeauto►
◄count1►
◄run_id0►
CategorySimple API

Inputs (7)

NameTypeDefaultDescription
connectionSA_CONNECTION—
modelSTRINGModel ID from your provider; any supported ID is allowed. / 填写平台提供的模型名。
promptSTRINGWrite your request or connect a text output. / 输入要求,也可连接文本输出。
sizeSTRINGautoImages API: 1024x1024 etc. Gemini/chat: auto or aspect ratio, e.g. 16:9. / Images 接口填像素尺寸;Gemini/chat 可填比例。
countINT11–16—
run_idINT00–2147483647Change this value to request again with identical inputs. / 相同输入再次请求时,更改此数值。
optionsoptSA_OPTIONS—

Outputs (3)

NameTypeDescription
imagesIMAGE—
textSTRING—
response_jsonSTRING—