工作流 /
图像 /
Nano Banana 2.1:图像编辑

Nano Banana 2.1:图像编辑
Nano Banana 2.1: Image Edit
使用自然语言和基于遮罩的局部编辑来编辑图像,由 Nano Banana 2.1 提供支持,输入一张图像并返回一个编辑结果以及并排对比视图。非常适合品牌营销海报、电商产品图和需要保持主体与文字一致性的多轮修图。
图像
5 个节点 1 个输入 1,997 次使用 ComfyUI ≥ 0.39.1 ComfyUI 8 KB
节点构成
GeminiNanoBanana2V2
× 1
LoadImage
× 1
SaveImageAdvanced
× 1
ImageCompare
× 1
MarkdownNote
× 1
官方标注的模型
Nano Banana
工作流 JSON
和上面「下载工作流 JSON」是同一份文件。
1{
2 "id": "932d44b6-d230-42e1-8797-6614e9376796",
3 "revision": 0,
4 "last_node_id": 12,
5 "last_link_id": 22,
6 "nodes": [
7 {
8 "id": 4,
9 "type": "GeminiNanoBanana2V2",
10 "pos": [
11 1168,
12 670
13 ],
14 "size": [
15 380,
16 670
17 ],
18 "flags": [],
19 "order": 2,
20 "mode": 0,
21 "inputs": [
22 {
23 "name": "model.images.image_1",
24 "shape": 7,
25 "type": "IMAGE",
26 "link": 17
27 },
28 {
29 "name": "model.images.image_2",
30 "shape": 7,
31 "type": "IMAGE",
32 "link": null
33 },
34 {
35 "name": "model.files",
36 "shape": 7,
37 "type": "GEMINI_INPUT_FILES",
38 "link": null
39 }
40 ],
41 "outputs": [
42 {
43 "name": "IMAGE",
44 "type": "IMAGE",
45 "links": [
46 18
47 ]
48 },
49 {
50 "name": "STRING",
51 "type": "STRING",
52 "links": null
53 },
54 {
55 "name": "thought_image",
56 "type": "IMAGE",
57 "links": null
58 }
59 ],
60 "properties": {
61 "Node name for S&R": "GeminiNanoBanana2V2"
62 },
63 "widgets_values": [
64 "Change the background to dark, and relight this portrait with dramatic blue light from the front and a warm amber rim light from behind. Keep the person, objects, pose, background, and framing unchanged.",
65 "Gemini Nano Banana 2.1",
66 "auto",
67 "1K",
68 "MEDIUM",
69 721648284798375,
70 "randomize",
71 "IMAGE",
72 "You are an expert image-generation engine. You must ALWAYS produce an image.\nInterpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition.\nIf a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept.\nPrioritize generating the visual representation above any text, formatting, or conversational requests.",
73 1,
74 0.95
75 ],
76 "widgets_values_named": {
77 "prompt": "Change the background to dark, and relight this portrait with dramatic blue light from the front and a warm amber rim light from behind. Keep the person, objects, pose, background, and framing unchanged.",
78 "model": "Gemini Nano Banana 2.1",
79 "model.aspect_ratio": "auto",
80 "model.resolution": "1K",
81 "model.thinking_level": "MEDIUM",
82 "seed": 721648284798375,
83 "control_after_generate": "randomize",
84 "response_modalities": "IMAGE",
85 "system_prompt": "You are an expert image-generation engine. You must ALWAYS produce an image.\nInterpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition.\nIf a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept.\nPrioritize generating the visual representation above any text, formatting, or conversational requests.",
86 "temperature": 1,
87 "top_p": 0.95
88 },
89 "color": "#432",
90 "bgcolor": "#653"
91 },
92 {
93 "id": 6,
94 "type": "LoadImage",
95 "pos": [
96 820,
97 670
98 ],
99 "size": [
100 300,
101 410
102 ],
103 "flags": [],
104 "order": 0,
105 "mode": 0,
106 "inputs": [],
107 "outputs": [
108 {
109 "name": "IMAGE",
110 "type": "IMAGE",
111 "links": [
112 17,
113 21
114 ]
115 },
116 {
117 "name": "MASK",
118 "type": "MASK",
119 "links": null
120 }
121 ],
122 "properties": {
123 "Node name for S&R": "LoadImage"
124 },
125 "widgets_values": [
126 "silver_frame_profile.png",
127 "image"
128 ],
129 "widgets_values_named": {
130 "image": "silver_frame_profile.png",
131 "upload": "image"
132 }
133 },
134 {
135 "id": 9,
136 "type": "SaveImageAdvanced",
137 "pos": [
138 1620,
139 670
140 ],
141 "size": [
142 360,
143 410
144 ],
145 "flags": [],
146 "order": 3,
147 "mode": 0,
148 "inputs": [
149 {
150 "name": "images",
151 "type": "IMAGE",
152 "link": 18
153 }
154 ],
155 "outputs": [
156 {
157 "name": "images",
158 "type": "IMAGE",
159 "links": [
160 22
161 ]
162 }
163 ],
164 "properties": [],
165 "widgets_values": [
166 "Nano_Banana_2.1",
167 "png",
168 "8-bit",
169 "sRGB"
170 ],
171 "widgets_values_named": {
172 "filename_prefix": "Nano_Banana_2.1",
173 "format": "png",
174 "format.bit_depth": "8-bit",
175 "format.input_color_space": "sRGB"
176 }
177 },
178 {
179 "id": 11,
180 "type": "ImageCompare",
181 "pos": [
182 2024,
183 670
184 ],
185 "size": [
186 420,
187 410
188 ],
189 "flags": [],
190 "order": 4,
191 "mode": 0,
192 "inputs": [
193 {
194 "name": "image_a",
195 "shape": 7,
196 "type": "IMAGE",
197 "link": 21
198 },
199 {
200 "name": "image_b",
201 "shape": 7,
202 "type": "IMAGE",
203 "link": 22
204 }
205 ],
206 "outputs": [],
207 "properties": {
208 "Node name for S&R": "ImageCompare"
209 },
210 "widgets_values": [],
211 "widgets_values_named": []
212 },
213 {
214 "id": 12,
215 "type": "MarkdownNote",
216 "pos": [
217 420,
218 670
219 ],
220 "size": [
221 330,
222 370
223 ],
224 "flags": [],
225 "order": 1,
226 "mode": 0,
227 "inputs": [],
228 "outputs": [],
229 "properties": [],
230 "widgets_values": [
231 "## Input Asset\n\n- [silver_frame_profile.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/silver_frame_profile.png)\n\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
232 ],
233 "widgets_values_named": {
234 "text": "## Input Asset\n\n- [silver_frame_profile.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/silver_frame_profile.png)\n\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
235 },
236 "color": "#222",
237 "bgcolor": "#000"
238 }
239 ],
240 "links": [
241 [
242 17,
243 6,
244 0,
245 4,
246 0,
247 "IMAGE"
248 ],
249 [
250 18,
251 4,
252 0,
253 9,
254 0,
255 "IMAGE"
256 ],
257 [
258 21,
259 6,
260 0,
261 11,
262 0,
263 "IMAGE"
264 ],
265 [
266 22,
267 9,
268 0,
269 11,
270 1,
271 "IMAGE"
272 ]
273 ],
274 "groups": [],
275 "config": [],
276 "extra": {
277 "ds": {
278 "scale": 0.4266251971064227,
279 "offset": [
280 1502.0147185802607,
281 -54.26348096738936
282 ]
283 },
284 "frontendVersion": "1.53.6"
285 },
286 "version": 0.4
287}