ComfyPilotComfyPilot
工作流 / 图像 / Google Gemini 图像
Google Gemini 图像

Google Gemini 图像

Nano Banana

Nano-banana (Gemini-2.5-Flash Image) - 使用一致性进行图像编辑。

图像 9 个节点 1 个输入 30 次使用 ComfyUI ≥ 0.8.0 ComfyUI 9 KB

下载工作流 JSON 查看官方来源

下载后把文件拖进 ComfyUI 窗口即可打开。

节点构成

GeminiInputFiles × 2
MarkdownNote × 2
PreviewAny × 1
LoadImage × 1
SaveImage × 1
GeminiImageNode × 1
BatchImagesNode × 1

官方标注的模型

Gemini-2.5-FlashNano BananaGoogle

工作流 JSON

和上面「下载工作流 JSON」是同一份文件。

1{
2 "id": "d2a78457-e57e-448b-a5dc-b1c4edbf74a0",
3 "revision": 0,
4 "last_node_id": 33,
5 "last_link_id": 43,
6 "nodes": [
7 {
8 "id": 9,
9 "type": "GeminiInputFiles",
10 "pos": [
11 -1260,
12 690
13 ],
14 "size": [
15 330,
16 110
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 4,
21 "inputs": [
22 {
23 "name": "GEMINI_INPUT_FILES",
24 "shape": 7,
25 "type": "GEMINI_INPUT_FILES",
26 "link": null
27 }
28 ],
29 "outputs": [
30 {
31 "name": "GEMINI_INPUT_FILES",
32 "type": "GEMINI_INPUT_FILES",
33 "links": [
34 8
35 ]
36 }
37 ],
38 "properties": {
39 "Node name for S&R": "GeminiInputFiles",
40 "cnr_id": "comfy-core",
41 "ver": "0.3.52",
42 "ue_properties": {
43 "widget_ue_connectable": [],
44 "version": "7.1",
45 "input_ue_unconnectable": []
46 }
47 },
48 "widgets_values": [
49 "api_flux2 copy.txt"
50 ]
51 },
52 {
53 "id": 7,
54 "type": "GeminiInputFiles",
55 "pos": [
56 -800,
57 690
58 ],
59 "size": [
60 330,
61 110
62 ],
63 "flags": [],
64 "order": 4,
65 "mode": 4,
66 "inputs": [
67 {
68 "name": "GEMINI_INPUT_FILES",
69 "shape": 7,
70 "type": "GEMINI_INPUT_FILES",
71 "link": 8
72 }
73 ],
74 "outputs": [
75 {
76 "name": "GEMINI_INPUT_FILES",
77 "type": "GEMINI_INPUT_FILES",
78 "links": [
79 7
80 ]
81 }
82 ],
83 "properties": {
84 "Node name for S&R": "GeminiInputFiles",
85 "cnr_id": "comfy-core",
86 "ver": "0.3.52",
87 "ue_properties": {
88 "widget_ue_connectable": [],
89 "version": "7.1",
90 "input_ue_unconnectable": []
91 }
92 },
93 "widgets_values": [
94 "api_flux2 copy.txt"
95 ]
96 },
97 {
98 "id": 8,
99 "type": "MarkdownNote",
100 "pos": [
101 -800,
102 870
103 ],
104 "size": [
105 330,
106 120
107 ],
108 "flags": [],
109 "order": 1,
110 "mode": 0,
111 "inputs": [],
112 "outputs": [],
113 "title": "About Gemini Input Files",
114 "properties": {
115 "ue_properties": {
116 "widget_ue_connectable": [],
117 "version": "7.1",
118 "input_ue_unconnectable": []
119 }
120 },
121 "widgets_values": [
122 "The files need to be in the \"ComfyUI/input\" folder first. This node still needs updating to let you upload directly in the node.\n"
123 ],
124 "color": "#222",
125 "bgcolor": "#000"
126 },
127 {
128 "id": 4,
129 "type": "PreviewAny",
130 "pos": [
131 140,
132 580
133 ],
134 "size": [
135 400,
136 190
137 ],
138 "flags": [],
139 "order": 8,
140 "mode": 0,
141 "inputs": [
142 {
143 "name": "source",
144 "type": "*",
145 "link": 6
146 }
147 ],
148 "outputs": [
149 {
150 "name": "STRING",
151 "type": "STRING",
152 "links": null
153 }
154 ],
155 "properties": {
156 "Node name for S&R": "PreviewAny",
157 "cnr_id": "comfy-core",
158 "ver": "0.3.52",
159 "ue_properties": {
160 "widget_ue_connectable": [],
161 "version": "7.1",
162 "input_ue_unconnectable": []
163 }
164 },
165 "widgets_values": [
166 null,
167 null,
168 null
169 ]
170 },
171 {
172 "id": 2,
173 "type": "LoadImage",
174 "pos": [
175 -1280,
176 90
177 ],
178 "size": [
179 340,
180 450
181 ],
182 "flags": [],
183 "order": 2,
184 "mode": 0,
185 "inputs": [],
186 "outputs": [
187 {
188 "name": "IMAGE",
189 "type": "IMAGE",
190 "links": [
191 42
192 ]
193 },
194 {
195 "name": "MASK",
196 "type": "MASK",
197 "links": null
198 }
199 ],
200 "properties": {
201 "Node name for S&R": "LoadImage",
202 "cnr_id": "comfy-core",
203 "ver": "0.3.52",
204 "ue_properties": {
205 "widget_ue_connectable": [],
206 "version": "7.1",
207 "input_ue_unconnectable": []
208 }
209 },
210 "widgets_values": [
211 "comfyui_logo.png",
212 "image"
213 ]
214 },
215 {
216 "id": 30,
217 "type": "SaveImage",
218 "pos": [
219 150,
220 80
221 ],
222 "size": [
223 390,
224 440
225 ],
226 "flags": [],
227 "order": 7,
228 "mode": 0,
229 "inputs": [
230 {
231 "name": "images",
232 "type": "IMAGE",
233 "link": 39
234 }
235 ],
236 "outputs": [
237 {
238 "name": "images",
239 "type": "IMAGE",
240 "links": null
241 }
242 ],
243 "properties": {
244 "cnr_id": "comfy-core",
245 "ver": "0.3.56",
246 "ue_properties": {
247 "widget_ue_connectable": [],
248 "version": "7.1",
249 "input_ue_unconnectable": []
250 }
251 },
252 "widgets_values": [
253 "ComfyUI"
254 ]
255 },
256 {
257 "id": 5,
258 "type": "GeminiImageNode",
259 "pos": [
260 -290,
261 80
262 ],
263 "size": [
264 400,
265 620
266 ],
267 "flags": [],
268 "order": 6,
269 "mode": 0,
270 "showAdvanced": false,
271 "inputs": [
272 {
273 "name": "images",
274 "shape": 7,
275 "type": "IMAGE",
276 "link": 43
277 },
278 {
279 "name": "files",
280 "shape": 7,
281 "type": "GEMINI_INPUT_FILES",
282 "link": 7
283 }
284 ],
285 "outputs": [
286 {
287 "name": "IMAGE",
288 "type": "IMAGE",
289 "links": [
290 39
291 ]
292 },
293 {
294 "name": "STRING",
295 "type": "STRING",
296 "links": [
297 6
298 ]
299 }
300 ],
301 "properties": {
302 "Node name for S&R": "GeminiImageNode",
303 "cnr_id": "comfy-core",
304 "ver": "0.3.52",
305 "ue_properties": {
306 "widget_ue_connectable": [],
307 "version": "7.1",
308 "input_ue_unconnectable": []
309 }
310 },
311 "widgets_values": [
312 "A giant yellow balloon in the shape of the letter 'C' floating high above a bustling city street with tall skyscrapers, viewed from street level, with traffic and pedestrians below. The sky is bright blue with some clouds. The architectural style of the buildings is modern and classic New York City",
313 "gemini-2.5-flash-image",
314 223380808661768,
315 "randomize",
316 "auto",
317 "IMAGE+TEXT",
318 "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."
319 ],
320 "color": "#432",
321 "bgcolor": "#653"
322 },
323 {
324 "id": 32,
325 "type": "MarkdownNote",
326 "pos": [
327 -740,
328 270
329 ],
330 "size": [
331 230,
332 120
333 ],
334 "flags": [],
335 "order": 3,
336 "mode": 0,
337 "inputs": [],
338 "outputs": [],
339 "properties": [],
340 "widgets_values": [
341 "Select `Batch Images` node and press Ctrl-B to enable multiple inputs.\n"
342 ],
343 "color": "#222",
344 "bgcolor": "#000"
345 },
346 {
347 "id": 33,
348 "type": "BatchImagesNode",
349 "pos": [
350 -740,
351 90
352 ],
353 "size": [
354 225,
355 96
356 ],
357 "flags": [],
358 "order": 5,
359 "mode": 0,
360 "inputs": [
361 {
362 "label": "image0",
363 "name": "images.image0",
364 "type": "IMAGE",
365 "link": 42
366 },
367 {
368 "label": "image1",
369 "name": "images.image1",
370 "shape": 7,
371 "type": "IMAGE",
372 "link": null
373 }
374 ],
375 "outputs": [
376 {
377 "name": "IMAGE",
378 "type": "IMAGE",
379 "links": [
380 43
381 ]
382 }
383 ],
384 "properties": {
385 "Node name for S&R": "BatchImagesNode"
386 },
387 "widgets_values": []
388 }
389 ],
390 "links": [
391 [
392 6,
393 5,
394 1,
395 4,
396 0,
397 "*"
398 ],
399 [
400 7,
401 7,
402 0,
403 5,
404 1,
405 "GEMINI_INPUT_FILES"
406 ],
407 [
408 8,
409 9,
410 0,
411 7,
412 0,
413 "GEMINI_INPUT_FILES"
414 ],
415 [
416 39,
417 5,
418 0,
419 30,
420 0,
421 "IMAGE"
422 ],
423 [
424 42,
425 2,
426 0,
427 33,
428 0,
429 "IMAGE"
430 ],
431 [
432 43,
433 33,
434 0,
435 5,
436 0,
437 "IMAGE"
438 ]
439 ],
440 "groups": [
441 {
442 "id": 1,
443 "title": "Files input (Ctrl-B to enable)",
444 "bounding": [
445 -1280,
446 590,
447 860,
448 430
449 ],
450 "color": "#3f789e",
451 "flags": []
452 }
453 ],
454 "config": [],
455 "extra": {
456 "ds": {
457 "scale": 0.5998192148760331,
458 "offset": [
459 1514.2671533866621,
460 261.37260180852263
461 ]
462 },
463 "frontendVersion": "1.45.15",
464 "VHS_latentpreview": false,
465 "VHS_latentpreviewrate": 0,
466 "VHS_MetadataImage": true,
467 "VHS_KeepIntermediate": true,
468 "ue_links": [],
469 "links_added_by_ue": []
470 },
471 "version": 0.4
472}