ComfyPilotComfyPilot
工作流 / 图像 / Flux.1 Kontext Max
Flux.1 Kontext Max

Flux.1 Kontext Max

Flux.1 Kontext Max

使用Flux.1 Kontext最大版图像编辑图像。

图像 8 个节点 1 个输入 19 次使用 ComfyUI ≥ 0.3.40 ComfyUI 10 KB

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

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

节点构成

MarkdownNote × 3
LoadImage × 2
ImageStitch × 1
FluxKontextMaxImageNode × 1
SaveImage × 1

官方标注的模型

FLUX.1 KontextFLUX

工作流 JSON

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

1{
2 "id": "81ccfe3e-3540-49e3-88ae-4fde173b8c87",
3 "revision": 0,
4 "last_node_id": 95,
5 "last_link_id": 180,
6 "nodes": [
7 {
8 "id": 88,
9 "type": "MarkdownNote",
10 "pos": [
11 -353.1586608886719,
12 1293.6602783203125
13 ],
14 "size": [
15 383.78765869140625,
16 273.2510070800781
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [],
22 "outputs": [],
23 "title": "Flux Kontext Prompt Techniques",
24 "properties": {
25 "ue_properties": {
26 "widget_ue_connectable": [],
27 "version": "7.1",
28 "input_ue_unconnectable": []
29 }
30 },
31 "widgets_values": [
32 "### 1. Basic Modifications\n- Simple and direct: `\"Change the car color to red\"`\n- Maintain style: `\"Change to daytime while maintaining the same style of the painting\"`\n\n### 2. Style Transfer\n**Principles:**\n- Clearly name style: `\"Transform to Bauhaus art style\"`\n- Describe characteristics: `\"Transform to oil painting with visible brushstrokes, thick paint texture\"`\n- Preserve composition: `\"Change to Bauhaus style while maintaining the original composition\"`\n\n### 3. Character Consistency\n**Framework:**\n- Specific description: `\"The woman with short black hair\"` instead of \"she\"\n- Preserve features: `\"while maintaining the same facial features, hairstyle, and expression\"`\n- Step-by-step modifications: Change background first, then actions\n\n### 4. Text Editing\n- Use quotes: `\"Replace 'joy' with 'BFL'\"`\n- Maintain format: `\"Replace text while maintaining the same font style\"`\n\n## Common Problem Solutions\n\n### Character Changes Too Much\n❌ Wrong: `\"Transform the person into a Viking\"`\n✅ Correct: `\"Change the clothes to be a viking warrior while preserving facial features\"`\n\n### Composition Position Changes\n❌ Wrong: `\"Put him on a beach\"`\n✅ Correct: `\"Change the background to a beach while keeping the person in the exact same position, scale, and pose\"`\n\n### Style Application Inaccuracy\n❌ Wrong: `\"Make it a sketch\"`\n✅ Correct: `\"Convert to pencil sketch with natural graphite lines, cross-hatching, and visible paper texture\"`\n\n## Core Principles\n\n1. **Be Specific and Clear** - Use precise descriptions, avoid vague terms\n2. **Step-by-step Editing** - Break complex modifications into multiple simple steps\n3. **Explicit Preservation** - State what should remain unchanged\n4. **Verb Selection** - Use \"change\", \"replace\" rather than \"transform\"\n\n## Best Practice Templates\n\n**Object Modification:**\n`\"Change [object] to [new state], keep [content to preserve] unchanged\"`\n\n**Style Transfer:**\n`\"Transform to [specific style], while maintaining [composition/character/other] unchanged\"`\n\n**Background Replacement:**\n`\"Change the background to [new background], keep the subject in the exact same position and pose\"`\n\n**Text Editing:**\n`\"Replace '[original text]' with '[new text]', maintain the same font style\"`\n\n> **Remember:** The more specific, the better. Kontext excels at understanding detailed instructions and maintaining consistency. "
33 ],
34 "color": "#222",
35 "bgcolor": "#000"
36 },
37 {
38 "id": 90,
39 "type": "LoadImage",
40 "pos": [
41 69.70362091064453,
42 1295.0821533203125
43 ],
44 "size": [
45 274.080078125,
46 314
47 ],
48 "flags": [],
49 "order": 1,
50 "mode": 4,
51 "inputs": [],
52 "outputs": [
53 {
54 "name": "IMAGE",
55 "type": "IMAGE",
56 "links": [
57 175
58 ]
59 },
60 {
61 "name": "MASK",
62 "type": "MASK",
63 "links": null
64 }
65 ],
66 "properties": {
67 "cnr_id": "comfy-core",
68 "ver": "0.3.65",
69 "Node name for S&R": "LoadImage",
70 "ue_properties": {
71 "widget_ue_connectable": [],
72 "version": "7.1",
73 "input_ue_unconnectable": []
74 }
75 },
76 "widgets_values": [
77 "api_bfl_flux_1_kontext_max_image_style_ref.png",
78 "image"
79 ]
80 },
81 {
82 "id": 84,
83 "type": "LoadImage",
84 "pos": [
85 64.27711486816406,
86 928.7723999023438
87 ],
88 "size": [
89 274.080078125,
90 314
91 ],
92 "flags": [],
93 "order": 2,
94 "mode": 0,
95 "inputs": [],
96 "outputs": [
97 {
98 "name": "IMAGE",
99 "type": "IMAGE",
100 "links": [
101 174
102 ]
103 },
104 {
105 "name": "MASK",
106 "type": "MASK",
107 "links": null
108 }
109 ],
110 "properties": {
111 "cnr_id": "comfy-core",
112 "ver": "0.3.65",
113 "Node name for S&R": "LoadImage",
114 "ue_properties": {
115 "widget_ue_connectable": [],
116 "version": "7.1",
117 "input_ue_unconnectable": []
118 }
119 },
120 "widgets_values": [
121 "api_bfl_flux_1_kontext_max_image_style_ref.png",
122 "image"
123 ]
124 },
125 {
126 "id": 91,
127 "type": "ImageStitch",
128 "pos": [
129 384.0186462402344,
130 932.8209838867188
131 ],
132 "size": [
133 270,
134 150
135 ],
136 "flags": [],
137 "order": 5,
138 "mode": 0,
139 "inputs": [
140 {
141 "name": "image1",
142 "type": "IMAGE",
143 "link": 174
144 },
145 {
146 "name": "image2",
147 "shape": 7,
148 "type": "IMAGE",
149 "link": 175
150 }
151 ],
152 "outputs": [
153 {
154 "name": "IMAGE",
155 "type": "IMAGE",
156 "links": [
157 179
158 ]
159 }
160 ],
161 "properties": {
162 "cnr_id": "comfy-core",
163 "ver": "0.3.65",
164 "Node name for S&R": "ImageStitch",
165 "ue_properties": {
166 "widget_ue_connectable": [],
167 "version": "7.1",
168 "input_ue_unconnectable": []
169 }
170 },
171 "widgets_values": [
172 "right",
173 true,
174 8,
175 "white"
176 ]
177 },
178 {
179 "id": 95,
180 "type": "FluxKontextMaxImageNode",
181 "pos": [
182 682.624755859375,
183 935.3181762695312
184 ],
185 "size": [
186 412.510009765625,
187 342.5639953613281
188 ],
189 "flags": [],
190 "order": 6,
191 "mode": 0,
192 "inputs": [
193 {
194 "name": "input_image",
195 "shape": 7,
196 "type": "IMAGE",
197 "link": 179
198 }
199 ],
200 "outputs": [
201 {
202 "name": "IMAGE",
203 "type": "IMAGE",
204 "links": [
205 180
206 ]
207 }
208 ],
209 "properties": {
210 "cnr_id": "comfy-core",
211 "ver": "0.3.65",
212 "Node name for S&R": "FluxKontextMaxImageNode",
213 "ue_properties": {
214 "widget_ue_connectable": [],
215 "version": "7.1",
216 "input_ue_unconnectable": []
217 }
218 },
219 "widgets_values": [
220 "Using this style, a bunny, a dog and a cat are having a tea party seated around a small white table",
221 "1:1",
222 3,
223 50,
224 1044116463319391,
225 "randomize",
226 false
227 ],
228 "color": "#432",
229 "bgcolor": "#653"
230 },
231 {
232 "id": 85,
233 "type": "SaveImage",
234 "pos": [
235 1127.7618408203125,
236 938.6339721679688
237 ],
238 "size": [
239 270,
240 270
241 ],
242 "flags": [],
243 "order": 7,
244 "mode": 0,
245 "inputs": [
246 {
247 "name": "images",
248 "type": "IMAGE",
249 "link": 180
250 }
251 ],
252 "outputs": [],
253 "properties": {
254 "cnr_id": "comfy-core",
255 "ver": "0.3.65",
256 "ue_properties": {
257 "widget_ue_connectable": [],
258 "version": "7.1",
259 "input_ue_unconnectable": []
260 }
261 },
262 "widgets_values": [
263 "ComfyUI"
264 ]
265 },
266 {
267 "id": 86,
268 "type": "MarkdownNote",
269 "pos": [
270 -351.2065124511719,
271 932.5810546875
272 ],
273 "size": [
274 380.9487609863281,
275 309.4496765136719
276 ],
277 "flags": [],
278 "order": 3,
279 "mode": 0,
280 "inputs": [],
281 "outputs": [],
282 "title": "About API Node",
283 "properties": {
284 "ue_properties": {
285 "widget_ue_connectable": [],
286 "version": "7.1",
287 "input_ue_unconnectable": []
288 }
289 },
290 "widgets_values": [
291 "[About API Node](https://docs.comfy.org/tutorials/partner-nodes/overview)\n\nTo use the API, you must be in a secure network environment:\n\n- Allows access from `127.0.0.1` or `localhost`.\n\n- Use our API Node in website services starting with `https`\n\n- Make sure you can normally connect to our API services (some regions may need a proxy).\n\n- Make sure you are logged in in the settings and that your account still has enough credits to cover the consumption of API calls.\n\n- On non-whitelisted sites or local area networks (LANs), please try to [log in using an API Key](https://docs.comfy.org/interface/user#logging-in-with-an-api-key).\n"
292 ],
293 "color": "#222",
294 "bgcolor": "#000"
295 },
296 {
297 "id": 93,
298 "type": "MarkdownNote",
299 "pos": [
300 377.550537109375,
301 1304.835205078125
302 ],
303 "size": [
304 281.59576416015625,
305 202.95529174804688
306 ],
307 "flags": [],
308 "order": 4,
309 "mode": 0,
310 "inputs": [],
311 "outputs": [],
312 "properties": {
313 "ue_properties": {
314 "widget_ue_connectable": [],
315 "version": "7.1",
316 "input_ue_unconnectable": []
317 }
318 },
319 "widgets_values": [
320 "If you need to input multiple images, you can set the mode of this \"load image\" node to Always. Of course, you can also combine more images together.\n"
321 ],
322 "color": "#222",
323 "bgcolor": "#000"
324 }
325 ],
326 "links": [
327 [
328 174,
329 84,
330 0,
331 91,
332 0,
333 "IMAGE"
334 ],
335 [
336 175,
337 90,
338 0,
339 91,
340 1,
341 "IMAGE"
342 ],
343 [
344 179,
345 91,
346 0,
347 95,
348 0,
349 "IMAGE"
350 ],
351 [
352 180,
353 95,
354 0,
355 85,
356 0,
357 "IMAGE"
358 ]
359 ],
360 "groups": [],
361 "config": [],
362 "extra": {
363 "ds": {
364 "scale": 1.1605742800147927,
365 "offset": [
366 362.5117877001977,
367 -656.5666114503343
368 ]
369 },
370 "frontendVersion": "1.27.10",
371 "ue_links": [],
372 "VHS_latentpreview": false,
373 "VHS_latentpreviewrate": 0,
374 "VHS_MetadataImage": true,
375 "VHS_KeepIntermediate": true
376 },
377 "version": 0.4
378}