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

Flux.1 Kontext Pro

Flux.1 Kontext Pro

使用Flux.1 Kontext专业版图像编辑图像。

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

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

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

节点构成

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

官方标注的模型

FLUXFLUX.1 Kontext

工作流 JSON

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

1{
2 "id": "81ccfe3e-3540-49e3-88ae-4fde173b8c87",
3 "revision": 0,
4 "last_node_id": 94,
5 "last_link_id": 177,
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": 91,
39 "type": "ImageStitch",
40 "pos": [
41 384.0186462402344,
42 932.8209838867188
43 ],
44 "size": [
45 270,
46 150
47 ],
48 "flags": [],
49 "order": 5,
50 "mode": 0,
51 "inputs": [
52 {
53 "name": "image1",
54 "type": "IMAGE",
55 "link": 174
56 },
57 {
58 "name": "image2",
59 "shape": 7,
60 "type": "IMAGE",
61 "link": 175
62 }
63 ],
64 "outputs": [
65 {
66 "name": "IMAGE",
67 "type": "IMAGE",
68 "links": [
69 176
70 ]
71 }
72 ],
73 "properties": {
74 "cnr_id": "comfy-core",
75 "ver": "0.3.65",
76 "Node name for S&R": "ImageStitch",
77 "ue_properties": {
78 "widget_ue_connectable": [],
79 "version": "7.1",
80 "input_ue_unconnectable": []
81 }
82 },
83 "widgets_values": [
84 "right",
85 true,
86 8,
87 "white"
88 ]
89 },
90 {
91 "id": 85,
92 "type": "SaveImage",
93 "pos": [
94 1110,
95 930
96 ],
97 "size": [
98 270,
99 270
100 ],
101 "flags": [],
102 "order": 7,
103 "mode": 0,
104 "inputs": [
105 {
106 "name": "images",
107 "type": "IMAGE",
108 "link": 169
109 }
110 ],
111 "outputs": [],
112 "properties": {
113 "cnr_id": "comfy-core",
114 "ver": "0.3.65",
115 "ue_properties": {
116 "widget_ue_connectable": [],
117 "version": "7.1",
118 "input_ue_unconnectable": []
119 }
120 },
121 "widgets_values": [
122 "ComfyUI"
123 ]
124 },
125 {
126 "id": 83,
127 "type": "FluxKontextProImageNode",
128 "pos": [
129 690,
130 930
131 ],
132 "size": [
133 395.2944030761719,
134 323.6419372558594
135 ],
136 "flags": [],
137 "order": 6,
138 "mode": 0,
139 "inputs": [
140 {
141 "name": "input_image",
142 "shape": 7,
143 "type": "IMAGE",
144 "link": 176
145 }
146 ],
147 "outputs": [
148 {
149 "name": "IMAGE",
150 "type": "IMAGE",
151 "links": [
152 169
153 ]
154 }
155 ],
156 "properties": {
157 "cnr_id": "comfy-core",
158 "ver": "0.3.65",
159 "Node name for S&R": "FluxKontextProImageNode",
160 "ue_properties": {
161 "widget_ue_connectable": [],
162 "version": "7.1",
163 "input_ue_unconnectable": []
164 }
165 },
166 "widgets_values": [
167 "Change the image to pop art style poster",
168 "1:1",
169 3,
170 50,
171 1022368309905935,
172 "randomize",
173 false
174 ],
175 "color": "#432",
176 "bgcolor": "#653"
177 },
178 {
179 "id": 93,
180 "type": "MarkdownNote",
181 "pos": [
182 377.550537109375,
183 1304.835205078125
184 ],
185 "size": [
186 281.59576416015625,
187 202.95529174804688
188 ],
189 "flags": [],
190 "order": 1,
191 "mode": 0,
192 "inputs": [],
193 "outputs": [],
194 "properties": {
195 "ue_properties": {
196 "widget_ue_connectable": [],
197 "version": "7.1",
198 "input_ue_unconnectable": []
199 }
200 },
201 "widgets_values": [
202 "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"
203 ],
204 "color": "#222",
205 "bgcolor": "#000"
206 },
207 {
208 "id": 86,
209 "type": "MarkdownNote",
210 "pos": [
211 -351.2065124511719,
212 932.5810546875
213 ],
214 "size": [
215 380.9487609863281,
216 309.4496765136719
217 ],
218 "flags": [],
219 "order": 2,
220 "mode": 0,
221 "inputs": [],
222 "outputs": [],
223 "title": "About API Node",
224 "properties": {
225 "ue_properties": {
226 "widget_ue_connectable": [],
227 "version": "7.1",
228 "input_ue_unconnectable": []
229 }
230 },
231 "widgets_values": [
232 "[About API Node](https://docs.comfy.org/tutorials/partner-nodes/overview) | [关于 API 节点](https://docs.comfy.org/zh-CN/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"
233 ],
234 "color": "#222",
235 "bgcolor": "#000"
236 },
237 {
238 "id": 84,
239 "type": "LoadImage",
240 "pos": [
241 64.27711486816406,
242 928.7723999023438
243 ],
244 "size": [
245 274.080078125,
246 314
247 ],
248 "flags": [],
249 "order": 3,
250 "mode": 0,
251 "inputs": [],
252 "outputs": [
253 {
254 "name": "IMAGE",
255 "type": "IMAGE",
256 "links": [
257 174
258 ]
259 },
260 {
261 "name": "MASK",
262 "type": "MASK",
263 "links": null
264 }
265 ],
266 "properties": {
267 "cnr_id": "comfy-core",
268 "ver": "0.3.65",
269 "Node name for S&R": "LoadImage",
270 "ue_properties": {
271 "widget_ue_connectable": [],
272 "version": "7.1",
273 "input_ue_unconnectable": []
274 }
275 },
276 "widgets_values": [
277 "api_bfl_flux_1_kontext_pro_image_input_image.png",
278 "image"
279 ]
280 },
281 {
282 "id": 90,
283 "type": "LoadImage",
284 "pos": [
285 69.70362091064453,
286 1295.0821533203125
287 ],
288 "size": [
289 274.080078125,
290 314
291 ],
292 "flags": [],
293 "order": 4,
294 "mode": 4,
295 "inputs": [],
296 "outputs": [
297 {
298 "name": "IMAGE",
299 "type": "IMAGE",
300 "links": [
301 175
302 ]
303 },
304 {
305 "name": "MASK",
306 "type": "MASK",
307 "links": null
308 }
309 ],
310 "properties": {
311 "cnr_id": "comfy-core",
312 "ver": "0.3.65",
313 "Node name for S&R": "LoadImage",
314 "ue_properties": {
315 "widget_ue_connectable": [],
316 "version": "7.1",
317 "input_ue_unconnectable": []
318 }
319 },
320 "widgets_values": [
321 "api_bfl_flux_1_kontext_pro_image_input_image.png",
322 "image"
323 ]
324 }
325 ],
326 "links": [
327 [
328 169,
329 83,
330 0,
331 85,
332 0,
333 "IMAGE"
334 ],
335 [
336 174,
337 84,
338 0,
339 91,
340 0,
341 "IMAGE"
342 ],
343 [
344 175,
345 90,
346 0,
347 91,
348 1,
349 "IMAGE"
350 ],
351 [
352 176,
353 91,
354 0,
355 83,
356 0,
357 "IMAGE"
358 ]
359 ],
360 "groups": [],
361 "config": [],
362 "extra": {
363 "ds": {
364 "scale": 1.2175736571127846,
365 "offset": [
366 357.4535324861551,
367 -708.2435474754211
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}