ComfyUI Node
Gemini编辑丨API
A ComfyUI node in QING/API with 13 inputs and 3 outputs.
Gemini编辑丨API
- image1
- image2
- image3
- edited_image
- conversation_info
- total_tokens
◄text_input请编辑这张图片。►
◄platformGoogle AI Studio►
◄modelgemini-2.5-flash-image-preview►
◄max_tokens2048►
◄history4►
◄temperature0.20►
◄top_p0.80►
◄image_qualityhigh►
◄reasoning_effortmedium►
◄clear_historyfalse►
CategoryQING/API
Inputs (13)
| Name | Type | Default | Description |
|---|---|---|---|
| text_input | STRING | 请编辑这张图片。 | 输入图像编辑指令,描述你想要如何修改或生成图像。建议使用简洁明确的指令,如'将背景改为蓝天'、'转换为水彩画风格'等 |
| platform | COMBO | Google AI Studio | 选择Gemini编辑模型的服务平台 |
| model | COMBO | gemini-2.5-flash-image-preview | 选择要使用的Gemini编辑模型 📋 gemini-2.5-flash-image-preview特点: 专业图像编辑:支持精确的图像修改和生成 🖼️ 多图支持:可同时处理最多3张图像 🎭 风格转换:擅长艺术风格、滤镜效果转换 ✨ 内容编辑:智能添加、删除或修改图像元素 ⚡ 快速响应:针对图像编辑任务优化的高效模型 💡 最佳实践:使用较低temperature(0.2)确保编辑一致性 |
| max_tokens | INT | 20481–4096 | 模型生成文本时最多能使用的token数量(1-4096,图像编辑优化) |
| history | INT | 41–18 | 保持的历史对话轮数(1-18轮,编辑任务建议4轮) |
| image1 | IMAGE | 输入要编辑的第一张图像(必需) | |
| temperatureopt | FLOAT | 0.200–2 | 控制生成结果的随机性,越高越随机(0.0-2.0,编辑建议0.2确保一致性) |
| top_popt | FLOAT | 0.800–1 | 控制生成结果的多样性(0.0-1.0) |
| image_qualityopt | COMBO | high | 图像处理质量:auto(自动选择), low(低质量,速度快), high(高质量,精度高) |
| reasoning_effortopt | COMBO | medium | 推理努力程度:none(无), low(低), medium(中等), high(高) - 影响编辑质量和处理时间 |
| clear_historyopt | BOOLEAN | false | 是否清除历史对话记录 |
| image2opt | IMAGE | 输入要编辑的第二张图像(可选) | |
| image3opt | IMAGE | 输入要编辑的第三张图像(可选) |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| edited_image | IMAGE | — |
| conversation_info | STRING | — |
| total_tokens | INT | — |