ComfyPilotComfyPilot
工作流 / 图像 / Nano Banana 2 Lite:图像编辑
Nano Banana 2 Lite:图像编辑

Nano Banana 2 Lite:图像编辑

Nano Banana 2 Lite: Image Edit

使用Nano Banana 2 Lite(Google Gemini系列中最快的图像生成模型)编辑图像,生成原始图像与编辑结果的并排对比。

图像 4 个节点 1 个输入 52 次使用 ComfyUI ≥ 0.27.0 ComfyUI 5 KB

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

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

节点构成

GeminiNanoBanana2V2 × 1
SaveImageAdvanced × 1
LoadImage × 1
ImageCompare × 1

官方标注的模型

Nano Banana 2

工作流 JSON

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

1{
2 "id": "23df7256-245b-422d-8f14-d5cb6ee5f619",
3 "revision": 0,
4 "last_node_id": 9,
5 "last_link_id": 6,
6 "nodes": [
7 {
8 "id": 3,
9 "type": "GeminiNanoBanana2V2",
10 "pos": [
11 -280,
12 240
13 ],
14 "size": [
15 400,
16 460
17 ],
18 "flags": [],
19 "order": 1,
20 "mode": 0,
21 "inputs": [
22 {
23 "label": "image_1",
24 "name": "model.images.image_1",
25 "shape": 7,
26 "type": "IMAGE",
27 "link": 4
28 },
29 {
30 "label": "image_2",
31 "name": "model.images.image_2",
32 "shape": 7,
33 "type": "IMAGE",
34 "link": null
35 },
36 {
37 "label": "files",
38 "name": "model.files",
39 "shape": 7,
40 "type": "GEMINI_INPUT_FILES",
41 "link": null
42 }
43 ],
44 "outputs": [
45 {
46 "name": "IMAGE",
47 "type": "IMAGE",
48 "links": [
49 2
50 ]
51 },
52 {
53 "name": "STRING",
54 "type": "STRING",
55 "links": null
56 },
57 {
58 "name": "thought_image",
59 "type": "IMAGE",
60 "links": null
61 }
62 ],
63 "properties": {
64 "Node name for S&R": "GeminiNanoBanana2V2"
65 },
66 "widgets_values": [
67 "NO changes to the F1 car's position, shape, structure and all vehicle details, car repainted glossy golden yellow, all car logos replaced with \"nano banana\" white text, full photoreal car texture. Warm orange gradient poster background, horizontal speed streaks & motion blur for extreme speed, double exposure semi-transparent helmeted driver portrait only on top blank background (never cover car). Large slanted cream text \"Nano Banana 2 Lite\" on empty upper area, small slogan text on edge blank space, text not overlay car. Cinematic racing poster, film grain, warm lighting, sharp car, only background blurred, no extra objects",
68 "Nano Banana 2 Lite",
69 "auto",
70 "1K",
71 "MINIMAL",
72 557242843672064,
73 "randomize",
74 "IMAGE",
75 "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.",
76 1,
77 0.95
78 ],
79 "color": "#432",
80 "bgcolor": "#653"
81 },
82 {
83 "id": 4,
84 "type": "SaveImageAdvanced",
85 "pos": [
86 150,
87 240
88 ],
89 "size": [
90 800,
91 900
92 ],
93 "flags": [],
94 "order": 2,
95 "mode": 0,
96 "inputs": [
97 {
98 "name": "images",
99 "type": "IMAGE",
100 "link": 2
101 }
102 ],
103 "outputs": [
104 {
105 "name": "images",
106 "type": "IMAGE",
107 "links": [
108 6
109 ]
110 }
111 ],
112 "properties": [],
113 "widgets_values": [
114 "Nano_banana_2_lite",
115 "png",
116 "8-bit",
117 "sRGB"
118 ]
119 },
120 {
121 "id": 8,
122 "type": "LoadImage",
123 "pos": [
124 -660,
125 240
126 ],
127 "size": [
128 350,
129 470
130 ],
131 "flags": [],
132 "order": 0,
133 "mode": 0,
134 "inputs": [],
135 "outputs": [
136 {
137 "name": "IMAGE",
138 "type": "IMAGE",
139 "links": [
140 4,
141 5
142 ]
143 },
144 {
145 "name": "MASK",
146 "type": "MASK",
147 "links": null
148 }
149 ],
150 "properties": {
151 "Node name for S&R": "LoadImage"
152 },
153 "widgets_values": [
154 "red_f1_track_car.png",
155 "image"
156 ]
157 },
158 {
159 "id": 9,
160 "type": "ImageCompare",
161 "pos": [
162 990,
163 240
164 ],
165 "size": [
166 790,
167 900
168 ],
169 "flags": [],
170 "order": 3,
171 "mode": 0,
172 "inputs": [
173 {
174 "name": "image_a",
175 "shape": 7,
176 "type": "IMAGE",
177 "link": 5
178 },
179 {
180 "name": "image_b",
181 "shape": 7,
182 "type": "IMAGE",
183 "link": 6
184 }
185 ],
186 "outputs": [],
187 "properties": {
188 "Node name for S&R": "ImageCompare"
189 },
190 "widgets_values": []
191 }
192 ],
193 "links": [
194 [
195 2,
196 3,
197 0,
198 4,
199 0,
200 "IMAGE"
201 ],
202 [
203 4,
204 8,
205 0,
206 3,
207 0,
208 "IMAGE"
209 ],
210 [
211 5,
212 8,
213 0,
214 9,
215 0,
216 "IMAGE"
217 ],
218 [
219 6,
220 4,
221 0,
222 9,
223 1,
224 "IMAGE"
225 ]
226 ],
227 "groups": [],
228 "config": [],
229 "extra": {
230 "ds": {
231 "scale": 0.38554328942953164,
232 "offset": [
233 1301.723456905464,
234 535.6931067341777
235 ]
236 },
237 "frontendVersion": "1.47.6"
238 },
239 "version": 0.4
240}