ComfyUI Node
URL Gemini图像编辑丨API
A ComfyUI node in QING/API with 14 inputs and 4 outputs.
URL Gemini图像编辑丨API
- image
- image2
- image3
- image
- raw_response
- status
- debug_info
◄prompt►
◄custom_headers_json►
◄extra_body_json►
◄base_url►
◄model►
◄api_key_override►
◄api_key_modeAuthorization Bearer►
◄aspect_ratio1:1►
◄image_size1K►
◄response_modalitiesIMAGE►
◄timeout_sec300►
CategoryQING/API
Inputs (14)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | 图像编辑指令,只作为第一个 text part 发送 | |
| custom_headers_json | STRING | 可选JSON对象,例如 {"X-API-Key":"..."} | |
| extra_body_json | STRING | 可选JSON对象,会合并进请求体顶层 | |
| image | IMAGE | 要编辑的主图像 | |
| base_url | STRING | Gemini兼容服务根地址,如 https://api.apiyi.com | |
| model | STRING | Gemini图像模型ID,如 gemini-3-pro-image-preview | |
| api_key_override | STRING | 仅当前节点生效;留空时读取 CUSTOM_URL_API_KEY 或 QING custom_url_api_key | |
| api_key_mode | COMBO | Authorization Bearer | API密钥发送方式:网关常用Bearer,Gemini原生常用x-goog-api-key或query key |
| aspect_ratio | COMBO | 1:1 | 10 options: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, +4 |
| image_size | COMBO | 1K | 3 options: 1K, 2K, 4K |
| response_modalities | COMBO | IMAGE | generationConfig.responseModalities |
| timeout_sec | INT | 3005–900 | — |
| image2opt | IMAGE | 可选第二张参考图,作为独立 inlineData part 发送 | |
| image3opt | IMAGE | 可选第三张参考图,作为独立 inlineData part 发送 |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| raw_response | STRING | — |
| status | STRING | — |
| debug_info | STRING | — |