{"repo":"aigem/comfyui_gemini_nano_banana","free":true,"listed":false,"github":"https://github.com/aigem/comfyui_gemini_nano_banana","clone":"git clone https://github.com/aigem/comfyui_gemini_nano_banana.git","description":"支持Gemini原生格式的 Nano Banana ComfyUI API 节点【附实惠稳定API用法】，更新到下面仓库了，这个不再更新","language":"Python","stars":59,"topics":["api","comfyui","comfyui-custom-node","comfyui-nodes","gemini","nanobanana"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"最新 Nano Banana Pro 节点请查看 https://github.com/aigem/ComfyUI KuAi Power ComfyUI 节点：Gemini Nano Banana Edit改图助手 [kuai.host] 一个面向生产的 ComfyUI 节点，使用 Gemini 2.5 Flash Image（兼容 API）对输入图像进行编辑。将本项目放入 ComfyUI/custom nodes/ 后，即可在 ComfyUI 中用自然语言指令进行图像修改。 环境要求 - ComfyUI - Python 环境安装依赖：numpy、pillow、requests、torch（ComfyUI 环境通常已含） - 可用的 Gemini 兼容 API Key（支持自定义 Base URL） 默认为 https://apis.kuai.host/ 安装 1. 复制或克隆本仓库到 ComfyUI/custom nodes/confyui-gemini-nano-banana 。 2. 在 ComfyUI 使用的 Python 环境中执行： pip install -r requirements.txt （一般都有了，无需安装）。 3. 重启 ComfyUI。节点显示为“AI / Gemini - Gemini Nano Banana Edit改图助手 [kuai.host]”。 节点输出 - image：编辑后的图像张量（保持输入布局：BHWC 或 BCHW） - metrics json：JSON 字符串，包含延迟、重试次数、请求次数、token 使用等指标 参数与行为 必填 - image：输入图像张数或 PIL Image。批大小必须为 1。 - prompt：自然语言说明如何编辑图像。节点会限制最大 1000 字符。 - api key：Gemini 兼容 API 的 Key。 - timeout：HTTP 请求超时时间（默认为60秒）。 可选 - instruction preset：从 instruction presets/ 选择 JSON 预设（下拉出现相对路径，如 enhanced/color-flat.json ）。用于追加模板化指令或系统说明，帮助风格/安全/一致性。 - system prompt：从 instruction presets/system prompt/ 选择系统提示词（Markdown）。作为系统级指令影响整体行为；可留空以保持中性。 - image 2 / image 3 / image 4：额外参考图像，帮助模型将角色/道具/细节融合到主图。 - max output tokens：响应 token 上限（控制模型“说话”量与成本；0 用服务默认）。 - minimal response：启用后，在提示中追加“仅返回编辑后 PNG，不要文字说明”的提醒，减小模型返回文本的几率。 - edit strength：编辑强度提示（0=保守，1=强烈）。 - color lock：鼓励保留原始配色（品牌素材常用）。 - style lock：鼓励保持原始画风/笔触。 - temperature：采样温度覆写（提高多样性，接近 0 更稳定）。 - top p：核采样上限（降低可能减少幻觉但牺牲多样性）。 - base url：Gemini 兼容服务基础地址，默认 https://apis.kuai.host/ （与官方接口格式一致即兼容）。 工作流建议 - 基本流程： Load Image - Gemi","default_branch":null,"files":null,"tree":[],"storefront":"/r/aigem","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aigem/comfyui_gemini_nano_banana/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}