工作流 /
图像 /
Flux.1 Schnell Full: 文生图

Flux.1 Schnell Full: 文生图
Flux.1 Schnell Full: Text to Image
使用Flux Schnell完整版本快速生成图像。使用Apache2.0许可证,仅需4步即可生成图像,同时保持良好的图像质量。
图像
10 个节点 52 次使用 ComfyUI ≥ 0.0.4 ComfyUI 11 KB
需要的权重
这个工作流引用了 4 个权重文件,其中 4 个能在本站模型库里找到。
ae.safetensors
在模型库查看
clip_l.safetensors
在模型库查看
flux1-schnell.safetensors
在模型库查看
t5xxl_fp16.safetensors
在模型库查看
节点构成
VAELoader
× 1
DualCLIPLoader
× 1
EmptySD3LatentImage
× 1
ConditioningZeroOut
× 1
VAEDecode
× 1
SaveImage
× 1
UNETLoader
× 1
KSampler
× 1
CLIPTextEncodeFlux
× 1
MarkdownNote
× 1
官方标注的模型
FLUX.1FLUX
工作流 JSON
和上面「下载工作流 JSON」是同一份文件。
1{
2 "id": "908d0bfb-e192-4627-9b57-147496e6e2dd",
3 "revision": 0,
4 "last_node_id": 44,
5 "last_link_id": 63,
6 "nodes": [
7 {
8 "id": 39,
9 "type": "VAELoader",
10 "pos": [
11 -320,
12 470
13 ],
14 "size": [
15 270,
16 58
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [],
22 "outputs": [
23 {
24 "name": "VAE",
25 "type": "VAE",
26 "links": [
27 58
28 ]
29 }
30 ],
31 "properties": {
32 "Node name for S&R": "VAELoader",
33 "cnr_id": "comfy-core",
34 "ver": "0.3.40",
35 "models": [
36 {
37 "name": "ae.safetensors",
38 "url": "https://huggingface.co/Comfy-Org/Lumina_Image_2.0_Repackaged/resolve/main/split_files/vae/ae.safetensors",
39 "directory": "vae"
40 }
41 ]
42 },
43 "widgets_values": [
44 "ae.safetensors"
45 ]
46 },
47 {
48 "id": 40,
49 "type": "DualCLIPLoader",
50 "pos": [
51 -320,
52 290
53 ],
54 "size": [
55 270,
56 130
57 ],
58 "flags": [],
59 "order": 1,
60 "mode": 0,
61 "inputs": [],
62 "outputs": [
63 {
64 "name": "CLIP",
65 "type": "CLIP",
66 "links": [
67 59
68 ]
69 }
70 ],
71 "properties": {
72 "Node name for S&R": "DualCLIPLoader",
73 "cnr_id": "comfy-core",
74 "ver": "0.3.40",
75 "models": [
76 {
77 "name": "clip_l.safetensors",
78 "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors",
79 "directory": "text_encoders"
80 },
81 {
82 "name": "t5xxl_fp16.safetensors",
83 "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors",
84 "directory": "text_encoders"
85 }
86 ]
87 },
88 "widgets_values": [
89 "clip_l.safetensors",
90 "t5xxl_fp16.safetensors",
91 "flux",
92 "default"
93 ]
94 },
95 {
96 "id": 27,
97 "type": "EmptySD3LatentImage",
98 "pos": [
99 -320,
100 630
101 ],
102 "size": [
103 270,
104 120
105 ],
106 "flags": [],
107 "order": 2,
108 "mode": 0,
109 "inputs": [],
110 "outputs": [
111 {
112 "name": "LATENT",
113 "type": "LATENT",
114 "slot_index": 0,
115 "links": [
116 51
117 ]
118 }
119 ],
120 "properties": {
121 "Node name for S&R": "EmptySD3LatentImage",
122 "cnr_id": "comfy-core",
123 "ver": "0.3.40"
124 },
125 "widgets_values": [
126 1024,
127 1024,
128 1
129 ]
130 },
131 {
132 "id": 42,
133 "type": "ConditioningZeroOut",
134 "pos": [
135 10,
136 470
137 ],
138 "size": [
139 200,
140 30
141 ],
142 "flags": {
143 "collapsed": true
144 },
145 "order": 6,
146 "mode": 0,
147 "inputs": [
148 {
149 "name": "conditioning",
150 "type": "CONDITIONING",
151 "link": 62
152 }
153 ],
154 "outputs": [
155 {
156 "name": "CONDITIONING",
157 "type": "CONDITIONING",
158 "links": [
159 63
160 ]
161 }
162 ],
163 "properties": {
164 "Node name for S&R": "ConditioningZeroOut",
165 "cnr_id": "comfy-core",
166 "ver": "0.3.40"
167 },
168 "widgets_values": []
169 },
170 {
171 "id": 8,
172 "type": "VAEDecode",
173 "pos": [
174 200,
175 470
176 ],
177 "size": [
178 210,
179 46
180 ],
181 "flags": {
182 "collapsed": true
183 },
184 "order": 8,
185 "mode": 0,
186 "inputs": [
187 {
188 "name": "samples",
189 "type": "LATENT",
190 "link": 52
191 },
192 {
193 "name": "vae",
194 "type": "VAE",
195 "link": 58
196 }
197 ],
198 "outputs": [
199 {
200 "name": "IMAGE",
201 "type": "IMAGE",
202 "slot_index": 0,
203 "links": [
204 9
205 ]
206 }
207 ],
208 "properties": {
209 "Node name for S&R": "VAEDecode",
210 "cnr_id": "comfy-core",
211 "ver": "0.3.40"
212 },
213 "widgets_values": []
214 },
215 {
216 "id": 9,
217 "type": "SaveImage",
218 "pos": [
219 380,
220 110
221 ],
222 "size": [
223 640,
224 660
225 ],
226 "flags": [],
227 "order": 9,
228 "mode": 0,
229 "inputs": [
230 {
231 "name": "images",
232 "type": "IMAGE",
233 "link": 9
234 }
235 ],
236 "outputs": [],
237 "properties": {
238 "cnr_id": "comfy-core",
239 "ver": "0.3.40"
240 },
241 "widgets_values": [
242 "ComfyUI"
243 ]
244 },
245 {
246 "id": 38,
247 "type": "UNETLoader",
248 "pos": [
249 -320,
250 150
251 ],
252 "size": [
253 270,
254 82
255 ],
256 "flags": [],
257 "order": 3,
258 "mode": 0,
259 "inputs": [],
260 "outputs": [
261 {
262 "name": "MODEL",
263 "type": "MODEL",
264 "links": [
265 61
266 ]
267 }
268 ],
269 "properties": {
270 "Node name for S&R": "UNETLoader",
271 "cnr_id": "comfy-core",
272 "ver": "0.3.40",
273 "models": [
274 {
275 "name": "flux1-schnell.safetensors",
276 "url": "https://huggingface.co/Comfy-Org/flux1-schnell/resolve/main/flux1-schnell.safetensors",
277 "directory": "diffusion_models"
278 }
279 ]
280 },
281 "widgets_values": [
282 "flux1-schnell.safetensors",
283 "default"
284 ]
285 },
286 {
287 "id": 31,
288 "type": "KSampler",
289 "pos": [
290 10,
291 520
292 ],
293 "size": [
294 315,
295 262
296 ],
297 "flags": [],
298 "order": 7,
299 "mode": 0,
300 "inputs": [
301 {
302 "name": "model",
303 "type": "MODEL",
304 "link": 61
305 },
306 {
307 "name": "positive",
308 "type": "CONDITIONING",
309 "link": 60
310 },
311 {
312 "name": "negative",
313 "type": "CONDITIONING",
314 "link": 63
315 },
316 {
317 "name": "latent_image",
318 "type": "LATENT",
319 "link": 51
320 }
321 ],
322 "outputs": [
323 {
324 "name": "LATENT",
325 "type": "LATENT",
326 "slot_index": 0,
327 "links": [
328 52
329 ]
330 }
331 ],
332 "properties": {
333 "Node name for S&R": "KSampler",
334 "cnr_id": "comfy-core",
335 "ver": "0.3.40"
336 },
337 "widgets_values": [
338 167447334682596,
339 "randomize",
340 4,
341 1,
342 "euler",
343 "simple",
344 1
345 ]
346 },
347 {
348 "id": 41,
349 "type": "CLIPTextEncodeFlux",
350 "pos": [
351 0,
352 150
353 ],
354 "size": [
355 340,
356 250
357 ],
358 "flags": [],
359 "order": 5,
360 "mode": 0,
361 "inputs": [
362 {
363 "name": "clip",
364 "type": "CLIP",
365 "link": 59
366 }
367 ],
368 "outputs": [
369 {
370 "name": "CONDITIONING",
371 "type": "CONDITIONING",
372 "links": [
373 60,
374 62
375 ]
376 }
377 ],
378 "properties": {
379 "Node name for S&R": "CLIPTextEncodeFlux",
380 "cnr_id": "comfy-core",
381 "ver": "0.3.40"
382 },
383 "widgets_values": [
384 "Cute retro mini car, pastel - colored 3D flowers overflowing from it, soft green background, minimalist and fresh style, high - precision rendering, spring - like vibrant atmosphere, delicate petal details, gentle color grading, whimsical and lovely scene",
385 "Create a 3D - styled image: A cute, retro - looking mini car with soft, pastel - colored flowers (like daisies, pink blooms) overflowing from it. Set against a gentle green background, giving a fresh, spring - vibe. Make it look whimsical and delicate, like a sweet illustration.",
386 3.5
387 ]
388 },
389 {
390 "id": 43,
391 "type": "MarkdownNote",
392 "pos": [
393 -910,
394 110
395 ],
396 "size": [
397 560,
398 360
399 ],
400 "flags": [],
401 "order": 4,
402 "mode": 0,
403 "inputs": [],
404 "outputs": [],
405 "properties": [],
406 "widgets_values": [
407 "## Model Links\n\n- [Hugging Face:Comfy-Org/flux1-schnell](https://huggingface.co/Comfy-Org/flux1-schnell)\n- [Hugging Face:Comfy-Org/Lumina_Image_2.0_Repackaged](https://huggingface.co/Comfy-Org/Lumina_Image_2.0_Repackaged)\n\n**ModelScope mirrors** (alternative repo location)\n\n- [ModelScope:Comfy-Org/flux1-schnell](https://modelscope.cn/models/Comfy-Org/flux1-schnell)\n- [ModelScope:Comfy-Org/Lumina_Image_2.0_Repackaged](https://modelscope.cn/models/Comfy-Org/Lumina_Image_2.0_Repackaged)\n\n**Diffusion Model**\n\n- [flux1-schnell.safetensors](https://huggingface.co/Comfy-Org/flux1-schnell/resolve/main/flux1-schnell.safetensors) (22.15 GB)\n\n**Text Encoder**\n\n- [clip_l.safetensors](https://huggingface.co/comfyanonymous/flux_text_encoders/blob/main/clip_l.safetensors)\n\n- [t5xxl_fp16.safetensors](https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors) (9.12 GB) or [t5xxl_fp8_e4m3fn_scaled.safetensors](https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp8_e4m3fn_scaled.safetensors) (4.8 GB)\n\n**VAE**\n\n- [ae.safetensors](https://huggingface.co/Comfy-Org/Lumina_Image_2.0_Repackaged/resolve/main/split_files/vae/ae.safetensors) (319.8 MB)\n\n```\nComfyUI/\n├── models/\n│ ├── diffusion_models/\n│ │ └─── flux1-schnell.safetensors\n│ ├── text_encoders/\n│ │ ├── clip_l.safetensors\n│ │ └─── t5xxl_fp16.safetensors # or t5xxl_fp8_e4m3fn_scaled.safetensors\n│ └── vae/\n│ └── ae.safetensors\n```\n"
408 ],
409 "color": "#222",
410 "bgcolor": "#000"
411 }
412 ],
413 "links": [
414 [
415 9,
416 8,
417 0,
418 9,
419 0,
420 "IMAGE"
421 ],
422 [
423 51,
424 27,
425 0,
426 31,
427 3,
428 "LATENT"
429 ],
430 [
431 52,
432 31,
433 0,
434 8,
435 0,
436 "LATENT"
437 ],
438 [
439 58,
440 39,
441 0,
442 8,
443 1,
444 "VAE"
445 ],
446 [
447 59,
448 40,
449 0,
450 41,
451 0,
452 "CLIP"
453 ],
454 [
455 60,
456 41,
457 0,
458 31,
459 1,
460 "CONDITIONING"
461 ],
462 [
463 61,
464 38,
465 0,
466 31,
467 0,
468 "MODEL"
469 ],
470 [
471 62,
472 41,
473 0,
474 42,
475 0,
476 "CONDITIONING"
477 ],
478 [
479 63,
480 42,
481 0,
482 31,
483 2,
484 "CONDITIONING"
485 ]
486 ],
487 "groups": [
488 {
489 "id": 1,
490 "title": "Step 1 - Load Models Here",
491 "bounding": [
492 -330,
493 80,
494 300,
495 460
496 ],
497 "color": "#3f789e",
498 "font_size": 24,
499 "flags": []
500 },
501 {
502 "id": 2,
503 "title": "Step 2 - Image Size",
504 "bounding": [
505 -330,
506 560,
507 300,
508 200
509 ],
510 "color": "#3f789e",
511 "font_size": 24,
512 "flags": []
513 },
514 {
515 "id": 3,
516 "title": "Step 3 - Prompt",
517 "bounding": [
518 -10,
519 80,
520 360,
521 333.6000061035156
522 ],
523 "color": "#3f789e",
524 "font_size": 24,
525 "flags": []
526 }
527 ],
528 "config": [],
529 "extra": {
530 "ds": {
531 "scale": 0.5679798080000055,
532 "offset": [
533 1202.176611719162,
534 306.8752233580118
535 ]
536 },
537 "frontendVersion": "1.28.6",
538 "VHS_latentpreview": false,
539 "VHS_latentpreviewrate": 0,
540 "VHS_MetadataImage": true,
541 "VHS_KeepIntermediate": true
542 },
543 "version": 0.4
544}