ComfyPilotComfyPilot
工作流 / 节点基础 / 切换节点
切换节点

切换节点

Switch Node

关于切换节点如何工作的指南:简单的文本切换和LoRA切换

节点基础 19 个节点 14 次使用 ComfyUI ≥ 0.4.0 ComfyUI 40 KB

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

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

需要的权重

这个工作流引用了 4 个权重文件,其中 3 个能在本站模型库里找到。

ae.safetensors 在模型库查看
pixel_art_style_z_image_turbo.safetensors 模型库暂未收录
qwen_3_4b.safetensors 在模型库查看
z_image_turbo_bf16.safetensors 在模型库查看

节点构成

ComfySwitchNode × 4
PrimitiveString × 4
PrimitiveStringMultiline × 2
MarkdownNote × 2
PreviewAny × 2
LoraLoaderModelOnly × 1
SaveImage × 1
UNETLoader × 1
PrimitiveBoolean × 1
0f79b7f9-d214-4587-b475-bc429519b976 × 1

官方标注的模型

Z-Image-Turbo

工作流 JSON

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

1{
2 "id": "30235234-3bb4-42cc-9e1c-33ad1bba0192",
3 "revision": 0,
4 "last_node_id": 71,
5 "last_link_id": 77,
6 "nodes": [
7 {
8 "id": 62,
9 "type": "LoraLoaderModelOnly",
10 "pos": [
11 -1959.9999379250391,
12 2800.000026137862
13 ],
14 "size": [
15 400,
16 140
17 ],
18 "flags": [],
19 "order": 10,
20 "mode": 0,
21 "inputs": [
22 {
23 "name": "model",
24 "type": "MODEL",
25 "link": 60
26 }
27 ],
28 "outputs": [
29 {
30 "name": "MODEL",
31 "type": "MODEL",
32 "links": [
33 59
34 ]
35 }
36 ],
37 "properties": {
38 "Node name for S&R": "LoraLoaderModelOnly",
39 "cnr_id": "comfy-core",
40 "ver": "0.18.1",
41 "models": [
42 {
43 "name": "pixel_art_style_z_image_turbo.safetensors",
44 "url": "https://huggingface.co/tarn59/pixel_art_style_lora_z_image_turbo/resolve/main/pixel_art_style_z_image_turbo.safetensors",
45 "directory": "loras"
46 }
47 ],
48 "enableTabs": false,
49 "tabWidth": 65,
50 "tabXOffset": 10,
51 "hasSecondTab": false,
52 "secondTabText": "Send Back",
53 "secondTabOffset": 80,
54 "secondTabWidth": 65
55 },
56 "widgets_values": [
57 "pixel_art_style_z_image_turbo.safetensors",
58 1
59 ]
60 },
61 {
62 "id": 63,
63 "type": "SaveImage",
64 "pos": [
65 -440.00038950438307,
66 2697.0000332440654
67 ],
68 "size": [
69 310,
70 520
71 ],
72 "flags": [],
73 "order": 18,
74 "mode": 0,
75 "inputs": [
76 {
77 "name": "images",
78 "type": "IMAGE",
79 "link": 61
80 }
81 ],
82 "outputs": [],
83 "properties": {
84 "Node name for S&R": "SaveImage",
85 "cnr_id": "comfy-core",
86 "ver": "0.18.1",
87 "enableTabs": false,
88 "tabWidth": 65,
89 "tabXOffset": 10,
90 "hasSecondTab": false,
91 "secondTabText": "Send Back",
92 "secondTabOffset": 80,
93 "secondTabWidth": 65
94 },
95 "widgets_values": [
96 "ComfyUI"
97 ]
98 },
99 {
100 "id": 60,
101 "type": "UNETLoader",
102 "pos": [
103 -2009.9999125047716,
104 2607.0000425009116
105 ],
106 "size": [
107 460,
108 110
109 ],
110 "flags": [],
111 "order": 0,
112 "mode": 0,
113 "inputs": [],
114 "outputs": [
115 {
116 "name": "MODEL",
117 "type": "MODEL",
118 "links": [
119 58,
120 60
121 ]
122 }
123 ],
124 "properties": {
125 "Node name for S&R": "UNETLoader",
126 "cnr_id": "comfy-core",
127 "ver": "0.3.73",
128 "models": [
129 {
130 "name": "z_image_turbo_bf16.safetensors",
131 "url": "https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/diffusion_models/z_image_turbo_bf16.safetensors",
132 "directory": "diffusion_models"
133 }
134 ],
135 "enableTabs": false,
136 "tabWidth": 65,
137 "tabXOffset": 10,
138 "hasSecondTab": false,
139 "secondTabText": "Send Back",
140 "secondTabOffset": 80,
141 "secondTabWidth": 65
142 },
143 "widgets_values": [
144 "z_image_turbo_bf16.safetensors",
145 "default"
146 ]
147 },
148 {
149 "id": 65,
150 "type": "ComfySwitchNode",
151 "pos": [
152 -1100.0004919524756,
153 3126.999997127941
154 ],
155 "size": [
156 270,
157 130
158 ],
159 "flags": [],
160 "order": 11,
161 "mode": 0,
162 "inputs": [
163 {
164 "name": "on_false",
165 "type": "STRING",
166 "link": 65
167 },
168 {
169 "name": "on_true",
170 "type": "STRING",
171 "link": 66
172 },
173 {
174 "name": "switch",
175 "type": "BOOLEAN",
176 "widget": {
177 "name": "switch"
178 },
179 "link": 64
180 }
181 ],
182 "outputs": [
183 {
184 "name": "output",
185 "type": "STRING",
186 "links": [
187 68
188 ]
189 }
190 ],
191 "title": "Prompt Switch (CLIP)",
192 "properties": {
193 "Node name for S&R": "ComfySwitchNode",
194 "cnr_id": "comfy-core",
195 "ver": "0.18.1",
196 "enableTabs": false,
197 "tabWidth": 65,
198 "tabXOffset": 10,
199 "hasSecondTab": false,
200 "secondTabText": "Send Back",
201 "secondTabOffset": 80,
202 "secondTabWidth": 65
203 },
204 "widgets_values": [
205 true
206 ]
207 },
208 {
209 "id": 67,
210 "type": "PrimitiveStringMultiline",
211 "pos": [
212 -1959.9999379250391,
213 3029.999996803756
214 ],
215 "size": [
216 400,
217 200
218 ],
219 "flags": [],
220 "order": 1,
221 "mode": 0,
222 "inputs": [],
223 "outputs": [
224 {
225 "name": "STRING",
226 "type": "STRING",
227 "links": [
228 65
229 ]
230 }
231 ],
232 "title": "Prompt - No LoRA",
233 "properties": {
234 "Node name for S&R": "PrimitiveStringMultiline",
235 "cnr_id": "comfy-core",
236 "ver": "0.18.1",
237 "enableTabs": false,
238 "tabWidth": 65,
239 "tabXOffset": 10,
240 "hasSecondTab": false,
241 "secondTabText": "Send Back",
242 "secondTabOffset": 80,
243 "secondTabWidth": 65
244 },
245 "widgets_values": [
246 "a 27 year old man wearing a baseball uniform, smiling at the camera and holding a bat"
247 ]
248 },
249 {
250 "id": 68,
251 "type": "PrimitiveStringMultiline",
252 "pos": [
253 -1959.9999379250391,
254 3279.999986501251
255 ],
256 "size": [
257 400,
258 200
259 ],
260 "flags": [],
261 "order": 2,
262 "mode": 0,
263 "inputs": [],
264 "outputs": [
265 {
266 "name": "STRING",
267 "type": "STRING",
268 "links": [
269 66
270 ]
271 }
272 ],
273 "title": "Prompt - With LoRA Trigger",
274 "properties": {
275 "Node name for S&R": "PrimitiveStringMultiline",
276 "cnr_id": "comfy-core",
277 "ver": "0.18.1",
278 "enableTabs": false,
279 "tabWidth": 65,
280 "tabXOffset": 10,
281 "hasSecondTab": false,
282 "secondTabText": "Send Back",
283 "secondTabOffset": 80,
284 "secondTabWidth": 65
285 },
286 "widgets_values": [
287 "Pixel art style, retro, a 27 year old man wearing a baseball uniform, smiling at the camera and holding a bat"
288 ]
289 },
290 {
291 "id": 66,
292 "type": "PrimitiveBoolean",
293 "pos": [
294 -1469.999977170758,
295 2930.0000184445826
296 ],
297 "size": [
298 270,
299 100
300 ],
301 "flags": [],
302 "order": 3,
303 "mode": 0,
304 "inputs": [],
305 "outputs": [
306 {
307 "name": "BOOLEAN",
308 "type": "BOOLEAN",
309 "links": [
310 63,
311 64
312 ]
313 }
314 ],
315 "title": "LoRA Switch",
316 "properties": {
317 "Node name for S&R": "PrimitiveBoolean",
318 "cnr_id": "comfy-core",
319 "ver": "0.18.1",
320 "enableTabs": false,
321 "tabWidth": 65,
322 "tabXOffset": 10,
323 "hasSecondTab": false,
324 "secondTabText": "Send Back",
325 "secondTabOffset": 80,
326 "secondTabWidth": 65
327 },
328 "widgets_values": [
329 true
330 ],
331 "color": "#232",
332 "bgcolor": "#353"
333 },
334 {
335 "id": 61,
336 "type": "ComfySwitchNode",
337 "pos": [
338 -1110.0003700695888,
339 2697.0000332440654
340 ],
341 "size": [
342 270,
343 130
344 ],
345 "flags": [],
346 "order": 14,
347 "mode": 0,
348 "inputs": [
349 {
350 "name": "on_false",
351 "type": "MODEL",
352 "link": 58
353 },
354 {
355 "name": "on_true",
356 "type": "MODEL",
357 "link": 59
358 },
359 {
360 "name": "switch",
361 "type": "BOOLEAN",
362 "widget": {
363 "name": "switch"
364 },
365 "link": 63
366 }
367 ],
368 "outputs": [
369 {
370 "name": "output",
371 "type": "MODEL",
372 "links": [
373 62
374 ]
375 }
376 ],
377 "title": "Model Switch (MODEL)",
378 "properties": {
379 "Node name for S&R": "ComfySwitchNode",
380 "cnr_id": "comfy-core",
381 "ver": "0.18.1",
382 "enableTabs": false,
383 "tabWidth": 65,
384 "tabXOffset": 10,
385 "hasSecondTab": false,
386 "secondTabText": "Send Back",
387 "secondTabOffset": 80,
388 "secondTabWidth": 65
389 },
390 "widgets_values": [
391 true
392 ]
393 },
394 {
395 "id": 69,
396 "type": "MarkdownNote",
397 "pos": [
398 -2859.9998015570136,
399 2100.000090024525
400 ],
401 "size": [
402 790,
403 1040
404 ],
405 "flags": [],
406 "order": 4,
407 "mode": 0,
408 "inputs": [],
409 "outputs": [],
410 "properties": [],
411 "widgets_values": [
412 "# ComfyUI Switch Node\n\nRoutes between two inputs via a boolean toggle. **OFF → `on_false`, ON → `on_true`.**\n\n| Pin | Role |\n|---|---|\n| `on_false` | Output when switch is OFF |\n| `on_true` | Output when switch is ON |\n| `switch` | Boolean toggle |\n| `output` | Selected value |\n\n---\n\n## Example 1 — String Switch\n\n```\nString(\"true\") → on_false ┐\n Switch [OFF] → \"true\"\nString(\"false\") → on_true ┘\n```\n\nThe pin name describes *which state picks it*, not what the value is.\n\n---\n\n## Example 2 — LoRA Toggle\n\nA single **LoRA Switch** boolean drives two switches in sync:\n\n| LoRA Switch | Model | Prompt |\n|---|---|---|\n| OFF | Base model | `\"a person smiling\"` |\n| ON | Base + LoRA | `\"3d stylized style, a person smiling\"` |\n\nOne toggle flips both the model and its trigger-word prompt together — clean A/B testing with no manual rewiring.\n\n---\n\n## Key Takeaways\n\n- **Works with any type** — STRING, MODEL, CLIP, IMAGE, etc. ComfyUI infers it from the connection.\n- **No mixing types** — both pins must carry the same data type or the workflow breaks.\n- **One boolean, many switches** — wire a single toggle to multiple Switch nodes to keep everything in sync.\n- Always include the **LoRA trigger word** in your `on_true` prompt or the LoRA effect will be weak."
413 ],
414 "color": "#222",
415 "bgcolor": "#000"
416 },
417 {
418 "id": 71,
419 "type": "MarkdownNote",
420 "pos": [
421 -2849.9998358407756,
422 3209.999759292251
423 ],
424 "size": [
425 790,
426 680.765625
427 ],
428 "flags": [],
429 "order": 5,
430 "mode": 0,
431 "inputs": [],
432 "outputs": [],
433 "title": "Mdode Links",
434 "properties": [],
435 "widgets_values": [
436 "## Model Links\n\n- [Hugging Face:Comfy-Org/z_image_turbo](https://huggingface.co/Comfy-Org/z_image_turbo)\n- [ModelScope:Comfy-Org/z_image_turbo](https://modelscope.cn/models/Comfy-Org/z_image_turbo)\n\n**loras**\n\n- [pixel_art_style_z_image_turbo.safetensors](https://huggingface.co/tarn59/pixel_art_style_lora_z_image_turbo/resolve/main/pixel_art_style_z_image_turbo.safetensors) (162.2 MB)\n\n**diffusion_models**\n\n- [z_image_turbo_bf16.safetensors](https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/diffusion_models/z_image_turbo_bf16.safetensors) (11.46 GB)\n\n**text_encoders**\n\n- [qwen_3_4b.safetensors](https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/text_encoders/qwen_3_4b.safetensors) (7.49 GB)\n\n**vae**\n\n- [ae.safetensors](https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/vae/ae.safetensors) (319.8 MB)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 loras/\n│ │ └── pixel_art_style_z_image_turbo.safetensors\n│ ├── 📂 diffusion_models/\n│ │ └── z_image_turbo_bf16.safetensors\n│ ├── 📂 text_encoders/\n│ │ └── qwen_3_4b.safetensors\n│ └── 📂 vae/\n│ └── ae.safetensors\n```"
437 ],
438 "color": "#222",
439 "bgcolor": "#000"
440 },
441 {
442 "id": 64,
443 "type": "0f79b7f9-d214-4587-b475-bc429519b976",
444 "pos": [
445 -780.0000414483131,
446 2700.0000331788347
447 ],
448 "size": [
449 300,
450 500
451 ],
452 "flags": [],
453 "order": 17,
454 "mode": 0,
455 "inputs": [
456 {
457 "name": "model",
458 "type": "MODEL",
459 "link": 62
460 },
461 {
462 "name": "text",
463 "type": "STRING",
464 "widget": {
465 "name": "text"
466 },
467 "link": 68
468 }
469 ],
470 "outputs": [
471 {
472 "name": "IMAGE",
473 "type": "IMAGE",
474 "links": [
475 61
476 ]
477 }
478 ],
479 "properties": {
480 "proxyWidgets": [
481 [
482 "56",
483 "text"
484 ],
485 [
486 "52",
487 "clip_name"
488 ],
489 [
490 "53",
491 "vae_name"
492 ],
493 [
494 "57",
495 "width"
496 ],
497 [
498 "57",
499 "height"
500 ],
501 [
502 "58",
503 "seed"
504 ]
505 ],
506 "cnr_id": "comfy-core",
507 "ver": "0.18.1",
508 "enableTabs": false,
509 "tabWidth": 65,
510 "tabXOffset": 10,
511 "hasSecondTab": false,
512 "secondTabText": "Send Back",
513 "secondTabOffset": 80,
514 "secondTabWidth": 65
515 },
516 "widgets_values": []
517 },
518 {
519 "id": 2,
520 "type": "PrimitiveString",
521 "pos": [
522 -1979.9999277569323,
523 2302.0000807657107
524 ],
525 "size": [
526 225,
527 110
528 ],
529 "flags": [],
530 "order": 6,
531 "mode": 0,
532 "inputs": [],
533 "outputs": [
534 {
535 "name": "STRING",
536 "type": "STRING",
537 "links": [
538 71
539 ]
540 }
541 ],
542 "properties": {
543 "Node name for S&R": "PrimitiveString",
544 "cnr_id": "comfy-core",
545 "ver": "0.18.1",
546 "enableTabs": false,
547 "tabWidth": 65,
548 "tabXOffset": 10,
549 "hasSecondTab": false,
550 "secondTabText": "Send Back",
551 "secondTabOffset": 80,
552 "secondTabWidth": 65
553 },
554 "widgets_values": [
555 "true"
556 ]
557 },
558 {
559 "id": 3,
560 "type": "PrimitiveString",
561 "pos": [
562 -1979.9999277569323,
563 2152.000098627097
564 ],
565 "size": [
566 225,
567 110
568 ],
569 "flags": [],
570 "order": 7,
571 "mode": 0,
572 "inputs": [],
573 "outputs": [
574 {
575 "name": "STRING",
576 "type": "STRING",
577 "links": [
578 70
579 ]
580 }
581 ],
582 "properties": {
583 "Node name for S&R": "PrimitiveString",
584 "cnr_id": "comfy-core",
585 "ver": "0.18.1",
586 "enableTabs": false,
587 "tabWidth": 65,
588 "tabXOffset": 10,
589 "hasSecondTab": false,
590 "secondTabText": "Send Back",
591 "secondTabOffset": 80,
592 "secondTabWidth": 65
593 },
594 "widgets_values": [
595 "false"
596 ]
597 },
598 {
599 "id": 6,
600 "type": "PrimitiveString",
601 "pos": [
602 -1060.0002494913147,
603 2312.000075681657
604 ],
605 "size": [
606 225,
607 108
608 ],
609 "flags": [],
610 "order": 8,
611 "mode": 0,
612 "inputs": [],
613 "outputs": [
614 {
615 "name": "STRING",
616 "type": "STRING",
617 "links": [
618 72
619 ]
620 }
621 ],
622 "properties": {
623 "Node name for S&R": "PrimitiveString",
624 "cnr_id": "comfy-core",
625 "ver": "0.18.1",
626 "enableTabs": false,
627 "tabWidth": 65,
628 "tabXOffset": 10,
629 "hasSecondTab": false,
630 "secondTabText": "Send Back",
631 "secondTabOffset": 80,
632 "secondTabWidth": 65
633 },
634 "widgets_values": [
635 "true"
636 ]
637 },
638 {
639 "id": 1,
640 "type": "ComfySwitchNode",
641 "pos": [
642 -1720.0001913410113,
643 2152.000098627097
644 ],
645 "size": [
646 270,
647 130
648 ],
649 "flags": [],
650 "order": 12,
651 "mode": 0,
652 "inputs": [
653 {
654 "name": "on_false",
655 "type": "STRING",
656 "link": 70
657 },
658 {
659 "name": "on_true",
660 "type": "STRING",
661 "link": 71
662 }
663 ],
664 "outputs": [
665 {
666 "name": "output",
667 "type": "STRING",
668 "links": [
669 3
670 ]
671 }
672 ],
673 "properties": {
674 "Node name for S&R": "ComfySwitchNode",
675 "cnr_id": "comfy-core",
676 "ver": "0.18.1",
677 "enableTabs": false,
678 "tabWidth": 65,
679 "tabXOffset": 10,
680 "hasSecondTab": false,
681 "secondTabText": "Send Back",
682 "secondTabOffset": 80,
683 "secondTabWidth": 65
684 },
685 "widgets_values": [
686 false
687 ],
688 "color": "#232",
689 "bgcolor": "#353"
690 },
691 {
692 "id": 4,
693 "type": "PreviewAny",
694 "pos": [
695 -1410.0003489466706,
696 2152.000098627097
697 ],
698 "size": [
699 280,
700 210
701 ],
702 "flags": [],
703 "order": 15,
704 "mode": 0,
705 "inputs": [
706 {
707 "name": "source",
708 "type": "*",
709 "link": 3
710 }
711 ],
712 "outputs": [
713 {
714 "name": "STRING",
715 "type": "STRING",
716 "links": null
717 }
718 ],
719 "properties": {
720 "Node name for S&R": "PreviewAny",
721 "cnr_id": "comfy-core",
722 "ver": "0.18.1",
723 "enableTabs": false,
724 "tabWidth": 65,
725 "tabXOffset": 10,
726 "hasSecondTab": false,
727 "secondTabText": "Send Back",
728 "secondTabOffset": 80,
729 "secondTabWidth": 65
730 },
731 "widgets_values": [
732 null,
733 null,
734 null
735 ]
736 },
737 {
738 "id": 5,
739 "type": "ComfySwitchNode",
740 "pos": [
741 -770.0003677291585,
742 2152.000098627097
743 ],
744 "size": [
745 270,
746 130
747 ],
748 "flags": [],
749 "order": 13,
750 "mode": 0,
751 "inputs": [
752 {
753 "name": "on_false",
754 "type": "STRING",
755 "link": 73
756 },
757 {
758 "name": "on_true",
759 "type": "STRING",
760 "link": 72
761 }
762 ],
763 "outputs": [
764 {
765 "name": "output",
766 "type": "STRING",
767 "links": [
768 6
769 ]
770 }
771 ],
772 "properties": {
773 "Node name for S&R": "ComfySwitchNode",
774 "cnr_id": "comfy-core",
775 "ver": "0.18.1",
776 "enableTabs": false,
777 "tabWidth": 65,
778 "tabXOffset": 10,
779 "hasSecondTab": false,
780 "secondTabText": "Send Back",
781 "secondTabOffset": 80,
782 "secondTabWidth": 65
783 },
784 "widgets_values": [
785 true
786 ],
787 "color": "#232",
788 "bgcolor": "#353"
789 },
790 {
791 "id": 7,
792 "type": "PrimitiveString",
793 "pos": [
794 -1060.0002494913147,
795 2152.000098627097
796 ],
797 "size": [
798 225,
799 108
800 ],
801 "flags": [],
802 "order": 9,
803 "mode": 0,
804 "inputs": [],
805 "outputs": [
806 {
807 "name": "STRING",
808 "type": "STRING",
809 "links": [
810 73
811 ]
812 }
813 ],
814 "properties": {
815 "Node name for S&R": "PrimitiveString",
816 "cnr_id": "comfy-core",
817 "ver": "0.18.1",
818 "enableTabs": false,
819 "tabWidth": 65,
820 "tabXOffset": 10,
821 "hasSecondTab": false,
822 "secondTabText": "Send Back",
823 "secondTabOffset": 80,
824 "secondTabWidth": 65
825 },
826 "widgets_values": [
827 "false"
828 ]
829 },
830 {
831 "id": 8,
832 "type": "PreviewAny",
833 "pos": [
834 -440.0005063032163,
835 2152.000098627097
836 ],
837 "size": [
838 280,
839 210
840 ],
841 "flags": [],
842 "order": 16,
843 "mode": 0,
844 "inputs": [
845 {
846 "name": "source",
847 "type": "*",
848 "link": 6
849 }
850 ],
851 "outputs": [
852 {
853 "name": "STRING",
854 "type": "STRING",
855 "links": null
856 }
857 ],
858 "properties": {
859 "Node name for S&R": "PreviewAny",
860 "cnr_id": "comfy-core",
861 "ver": "0.18.1",
862 "enableTabs": false,
863 "tabWidth": 65,
864 "tabXOffset": 10,
865 "hasSecondTab": false,
866 "secondTabText": "Send Back",
867 "secondTabOffset": 80,
868 "secondTabWidth": 65
869 },
870 "widgets_values": [
871 null,
872 null,
873 null
874 ]
875 }
876 ],
877 "links": [
878 [
879 3,
880 1,
881 0,
882 4,
883 0,
884 "STRING"
885 ],
886 [
887 6,
888 5,
889 0,
890 8,
891 0,
892 "STRING"
893 ],
894 [
895 58,
896 60,
897 0,
898 61,
899 0,
900 "MODEL"
901 ],
902 [
903 59,
904 62,
905 0,
906 61,
907 1,
908 "MODEL"
909 ],
910 [
911 60,
912 60,
913 0,
914 62,
915 0,
916 "MODEL"
917 ],
918 [
919 61,
920 64,
921 0,
922 63,
923 0,
924 "IMAGE"
925 ],
926 [
927 62,
928 61,
929 0,
930 64,
931 0,
932 "MODEL"
933 ],
934 [
935 63,
936 66,
937 0,
938 61,
939 2,
940 "BOOLEAN"
941 ],
942 [
943 64,
944 66,
945 0,
946 65,
947 2,
948 "BOOLEAN"
949 ],
950 [
951 65,
952 67,
953 0,
954 65,
955 0,
956 "STRING"
957 ],
958 [
959 66,
960 68,
961 0,
962 65,
963 1,
964 "STRING"
965 ],
966 [
967 68,
968 65,
969 0,
970 64,
971 1,
972 "STRING"
973 ],
974 [
975 70,
976 3,
977 0,
978 1,
979 0,
980 "STRING"
981 ],
982 [
983 71,
984 2,
985 0,
986 1,
987 1,
988 "STRING"
989 ],
990 [
991 72,
992 6,
993 0,
994 5,
995 1,
996 "STRING"
997 ],
998 [
999 73,
1000 7,
1001 0,
1002 5,
1003 0,
1004 "STRING"
1005 ]
1006 ],
1007 "groups": [
1008 {
1009 "id": 8,
1010 "title": "Example 2 - LoRA Switch",
1011 "bounding": [
1012 -2040,
1013 2520,
1014 1939.9996450707422,
1015 959.9996323946975
1016 ],
1017 "color": "#3f789e",
1018 "font_size": 24,
1019 "flags": []
1020 },
1021 {
1022 "id": 9,
1023 "title": "Example 1 - String Selection",
1024 "bounding": [
1025 -2040,
1026 2070,
1027 1939.9996450707422,
1028 397.99985253534396
1029 ],
1030 "color": "#3f789e",
1031 "font_size": 24,
1032 "flags": []
1033 }
1034 ],
1035 "definitions": {
1036 "subgraphs": [
1037 {
1038 "id": "0f79b7f9-d214-4587-b475-bc429519b976",
1039 "version": 1,
1040 "state": {
1041 "lastGroupId": 9,
1042 "lastNodeId": 71,
1043 "lastLinkId": 77,
1044 "lastRerouteId": 0
1045 },
1046 "revision": 0,
1047 "config": [],
1048 "name": "Z-Image Turbo (Text to Image)",
1049 "inputNode": {
1050 "id": -10,
1051 "bounding": [
1052 -1390,
1053 3530,
1054 120,
1055 160
1056 ]
1057 },
1058 "outputNode": {
1059 "id": -20,
1060 "bounding": [
1061 305.0000617198034,
1062 3558.890486571321,
1063 120,
1064 60
1065 ]
1066 },
1067 "inputs": [
1068 {
1069 "id": "f1d2942a-bec9-4507-9b79-870b1d8da1a7",
1070 "name": "model",
1071 "type": "MODEL",
1072 "linkIds": [
1073 54
1074 ],
1075 "localized_name": "model",
1076 "pos": [
1077 -1290,
1078 3550
1079 ]
1080 },
1081 {
1082 "id": "b6c928b1-99d0-44a3-9815-13fe1d2fd758",
1083 "name": "text",
1084 "type": "STRING",
1085 "linkIds": [
1086 67
1087 ],
1088 "pos": [
1089 -1290,
1090 3570
1091 ]
1092 },
1093 {
1094 "id": "a2a9c327-12c1-4634-9f1c-d5453fb4361d",
1095 "name": "clip_name",
1096 "type": "COMBO",
1097 "linkIds": [
1098 74
1099 ],
1100 "pos": [
1101 -1290,
1102 3590
1103 ]
1104 },
1105 {
1106 "id": "d0d3481e-6433-4024-8f9e-dba8339d8141",
1107 "name": "vae_name",
1108 "type": "COMBO",
1109 "linkIds": [
1110 75
1111 ],
1112 "pos": [
1113 -1290,
1114 3610
1115 ]
1116 },
1117 {
1118 "id": "1d597708-1f07-4550-95c2-0b75e881e7c8",
1119 "name": "width",
1120 "type": "INT",
1121 "linkIds": [
1122 76
1123 ],
1124 "pos": [
1125 -1290,
1126 3630
1127 ]
1128 },
1129 {
1130 "id": "22a42a3a-a03d-442c-8496-9d54c21373bb",
1131 "name": "height",
1132 "type": "INT",
1133 "linkIds": [
1134 77
1135 ],
1136 "pos": [
1137 -1290,
1138 3650
1139 ]
1140 }
1141 ],
1142 "outputs": [
1143 {
1144 "id": "56faeeb3-2123-455c-a58c-e8951db8f0f2",
1145 "name": "IMAGE",
1146 "type": "IMAGE",
1147 "linkIds": [
1148 55
1149 ],
1150 "localized_name": "IMAGE",
1151 "pos": [
1152 325.0000617198034,
1153 3578.890486571321
1154 ]
1155 }
1156 ],
1157 "widgets": [],
1158 "nodes": [
1159 {
1160 "id": 52,
1161 "type": "CLIPLoader",
1162 "pos": [
1163 -1180,
1164 3490
1165 ],
1166 "size": [
1167 270,
1168 141.328125
1169 ],
1170 "flags": [],
1171 "order": 1,
1172 "mode": 0,
1173 "inputs": [
1174 {
1175 "localized_name": "clip_name",
1176 "name": "clip_name",
1177 "type": "COMBO",
1178 "widget": {
1179 "name": "clip_name"
1180 },
1181 "link": 74
1182 }
1183 ],
1184 "outputs": [
1185 {
1186 "localized_name": "CLIP",
1187 "name": "CLIP",
1188 "type": "CLIP",
1189 "links": [
1190 41
1191 ]
1192 }
1193 ],
1194 "properties": {
1195 "Node name for S&R": "CLIPLoader",
1196 "cnr_id": "comfy-core",
1197 "ver": "0.3.73",
1198 "models": [
1199 {
1200 "name": "qwen_3_4b.safetensors",
1201 "url": "https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/text_encoders/qwen_3_4b.safetensors",
1202 "directory": "text_encoders"
1203 }
1204 ],
1205 "enableTabs": false,
1206 "tabWidth": 65,
1207 "tabXOffset": 10,
1208 "hasSecondTab": false,
1209 "secondTabText": "Send Back",
1210 "secondTabOffset": 80,
1211 "secondTabWidth": 65
1212 },
1213 "widgets_values": [
1214 "qwen_3_4b.safetensors",
1215 "lumina2",
1216 "default"
1217 ]
1218 },
1219 {
1220 "id": 53,
1221 "type": "VAELoader",
1222 "pos": [
1223 -1180,
1224 3720
1225 ],
1226 "size": [
1227 270,
1228 106.65625
1229 ],
1230 "flags": [],
1231 "order": 2,
1232 "mode": 0,
1233 "inputs": [
1234 {
1235 "localized_name": "vae_name",
1236 "name": "vae_name",
1237 "type": "COMBO",
1238 "widget": {
1239 "name": "vae_name"
1240 },
1241 "link": 75
1242 }
1243 ],
1244 "outputs": [
1245 {
1246 "localized_name": "VAE",
1247 "name": "VAE",
1248 "type": "VAE",
1249 "links": [
1250 40
1251 ]
1252 }
1253 ],
1254 "properties": {
1255 "Node name for S&R": "VAELoader",
1256 "cnr_id": "comfy-core",
1257 "ver": "0.3.73",
1258 "models": [
1259 {
1260 "name": "ae.safetensors",
1261 "url": "https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/vae/ae.safetensors",
1262 "directory": "vae"
1263 }
1264 ],
1265 "enableTabs": false,
1266 "tabWidth": 65,
1267 "tabXOffset": 10,
1268 "hasSecondTab": false,
1269 "secondTabText": "Send Back",
1270 "secondTabOffset": 80,
1271 "secondTabWidth": 65
1272 },
1273 "widgets_values": [
1274 "ae.safetensors"
1275 ]
1276 },
1277 {
1278 "id": 54,
1279 "type": "ConditioningZeroOut",
1280 "pos": [
1281 -630.0000885094076,
1282 3869.999949339468
1283 ],
1284 "size": [
1285 230,
1286 72
1287 ],
1288 "flags": [],
1289 "order": 3,
1290 "mode": 0,
1291 "inputs": [
1292 {
1293 "localized_name": "conditioning",
1294 "name": "conditioning",
1295 "type": "CONDITIONING",
1296 "link": 38
1297 }
1298 ],
1299 "outputs": [
1300 {
1301 "localized_name": "CONDITIONING",
1302 "name": "CONDITIONING",
1303 "type": "CONDITIONING",
1304 "links": [
1305 44
1306 ]
1307 }
1308 ],
1309 "properties": {
1310 "Node name for S&R": "ConditioningZeroOut",
1311 "cnr_id": "comfy-core",
1312 "ver": "0.3.73",
1313 "enableTabs": false,
1314 "tabWidth": 65,
1315 "tabXOffset": 10,
1316 "hasSecondTab": false,
1317 "secondTabText": "Send Back",
1318 "secondTabOffset": 80,
1319 "secondTabWidth": 65
1320 },
1321 "widgets_values": []
1322 },
1323 {
1324 "id": 55,
1325 "type": "VAEDecode",
1326 "pos": [
1327 30,
1328 3510
1329 ],
1330 "size": [
1331 230,
1332 96
1333 ],
1334 "flags": [],
1335 "order": 4,
1336 "mode": 0,
1337 "inputs": [
1338 {
1339 "localized_name": "samples",
1340 "name": "samples",
1341 "type": "LATENT",
1342 "link": 39
1343 },
1344 {
1345 "localized_name": "vae",
1346 "name": "vae",
1347 "type": "VAE",
1348 "link": 40
1349 }
1350 ],
1351 "outputs": [
1352 {
1353 "localized_name": "IMAGE",
1354 "name": "IMAGE",
1355 "type": "IMAGE",
1356 "slot_index": 0,
1357 "links": [
1358 55
1359 ]
1360 }
1361 ],
1362 "properties": {
1363 "Node name for S&R": "VAEDecode",
1364 "cnr_id": "comfy-core",
1365 "ver": "0.3.64",
1366 "enableTabs": false,
1367 "tabWidth": 65,
1368 "tabXOffset": 10,
1369 "hasSecondTab": false,
1370 "secondTabText": "Send Back",
1371 "secondTabOffset": 80,
1372 "secondTabWidth": 65
1373 },
1374 "widgets_values": []
1375 },
1376 {
1377 "id": 56,
1378 "type": "CLIPTextEncode",
1379 "pos": [
1380 -810.000055395861,
1381 3489.999967335252
1382 ],
1383 "size": [
1384 410,
1385 320
1386 ],
1387 "flags": [],
1388 "order": 5,
1389 "mode": 0,
1390 "inputs": [
1391 {
1392 "localized_name": "clip",
1393 "name": "clip",
1394 "type": "CLIP",
1395 "link": 41
1396 },
1397 {
1398 "localized_name": "text",
1399 "name": "text",
1400 "type": "STRING",
1401 "widget": {
1402 "name": "text"
1403 },
1404 "link": 67
1405 }
1406 ],
1407 "outputs": [
1408 {
1409 "localized_name": "CONDITIONING",
1410 "name": "CONDITIONING",
1411 "type": "CONDITIONING",
1412 "links": [
1413 38,
1414 43
1415 ]
1416 }
1417 ],
1418 "properties": {
1419 "Node name for S&R": "CLIPTextEncode",
1420 "cnr_id": "comfy-core",
1421 "ver": "0.3.73",
1422 "enableTabs": false,
1423 "tabWidth": 65,
1424 "tabXOffset": 10,
1425 "hasSecondTab": false,
1426 "secondTabText": "Send Back",
1427 "secondTabOffset": 80,
1428 "secondTabWidth": 65
1429 },
1430 "widgets_values": [
1431 "3d stylized style, a person smiling"
1432 ]
1433 },
1434 {
1435 "id": 58,
1436 "type": "KSampler",
1437 "pos": [
1438 -320,
1439 3690
1440 ],
1441 "size": [
1442 320,
1443 580
1444 ],
1445 "flags": [],
1446 "order": 6,
1447 "mode": 0,
1448 "inputs": [
1449 {
1450 "localized_name": "model",
1451 "name": "model",
1452 "type": "MODEL",
1453 "link": 42
1454 },
1455 {
1456 "localized_name": "positive",
1457 "name": "positive",
1458 "type": "CONDITIONING",
1459 "link": 43
1460 },
1461 {
1462 "localized_name": "negative",
1463 "name": "negative",
1464 "type": "CONDITIONING",
1465 "link": 44
1466 },
1467 {
1468 "localized_name": "latent_image",
1469 "name": "latent_image",
1470 "type": "LATENT",
1471 "link": 45
1472 }
1473 ],
1474 "outputs": [
1475 {
1476 "localized_name": "LATENT",
1477 "name": "LATENT",
1478 "type": "LATENT",
1479 "slot_index": 0,
1480 "links": [
1481 39
1482 ]
1483 }
1484 ],
1485 "properties": {
1486 "Node name for S&R": "KSampler",
1487 "cnr_id": "comfy-core",
1488 "ver": "0.3.64",
1489 "enableTabs": false,
1490 "tabWidth": 65,
1491 "tabXOffset": 10,
1492 "hasSecondTab": false,
1493 "secondTabText": "Send Back",
1494 "secondTabOffset": 80,
1495 "secondTabWidth": 65
1496 },
1497 "widgets_values": [
1498 12673005598788,
1499 "randomize",
1500 4,
1501 1,
1502 "res_multistep",
1503 "simple",
1504 1
1505 ]
1506 },
1507 {
1508 "id": 59,
1509 "type": "ModelSamplingAuraFlow",
1510 "pos": [
1511 -340,
1512 3500
1513 ],
1514 "size": [
1515 320,
1516 104
1517 ],
1518 "flags": [],
1519 "order": 7,
1520 "mode": 4,
1521 "inputs": [
1522 {
1523 "localized_name": "model",
1524 "name": "model",
1525 "type": "MODEL",
1526 "link": 54
1527 }
1528 ],
1529 "outputs": [
1530 {
1531 "localized_name": "MODEL",
1532 "name": "MODEL",
1533 "type": "MODEL",
1534 "slot_index": 0,
1535 "links": [
1536 42
1537 ]
1538 }
1539 ],
1540 "properties": {
1541 "Node name for S&R": "ModelSamplingAuraFlow",
1542 "cnr_id": "comfy-core",
1543 "ver": "0.3.64",
1544 "enableTabs": false,
1545 "tabWidth": 65,
1546 "tabXOffset": 10,
1547 "hasSecondTab": false,
1548 "secondTabText": "Send Back",
1549 "secondTabOffset": 80,
1550 "secondTabWidth": 65
1551 },
1552 "widgets_values": [
1553 3
1554 ]
1555 },
1556 {
1557 "id": 57,
1558 "type": "EmptySD3LatentImage",
1559 "pos": [
1560 -1240.0000119798094,
1561 3899.999963287016
1562 ],
1563 "size": [
1564 400,
1565 168
1566 ],
1567 "flags": [],
1568 "order": 0,
1569 "mode": 0,
1570 "inputs": [
1571 {
1572 "localized_name": "width",
1573 "name": "width",
1574 "type": "INT",
1575 "widget": {
1576 "name": "width"
1577 },
1578 "link": 76
1579 },
1580 {
1581 "localized_name": "height",
1582 "name": "height",
1583 "type": "INT",
1584 "widget": {
1585 "name": "height"
1586 },
1587 "link": 77
1588 }
1589 ],
1590 "outputs": [
1591 {
1592 "localized_name": "LATENT",
1593 "name": "LATENT",
1594 "type": "LATENT",
1595 "slot_index": 0,
1596 "links": [
1597 45
1598 ]
1599 }
1600 ],
1601 "properties": {
1602 "Node name for S&R": "EmptySD3LatentImage",
1603 "cnr_id": "comfy-core",
1604 "ver": "0.3.64",
1605 "enableTabs": false,
1606 "tabWidth": 65,
1607 "tabXOffset": 10,
1608 "hasSecondTab": false,
1609 "secondTabText": "Send Back",
1610 "secondTabOffset": 80,
1611 "secondTabWidth": 65
1612 },
1613 "widgets_values": [
1614 1024,
1615 1024,
1616 1
1617 ]
1618 }
1619 ],
1620 "groups": [],
1621 "links": [
1622 {
1623 "id": 38,
1624 "origin_id": 56,
1625 "origin_slot": 0,
1626 "target_id": 54,
1627 "target_slot": 0,
1628 "type": "CONDITIONING"
1629 },
1630 {
1631 "id": 39,
1632 "origin_id": 58,
1633 "origin_slot": 0,
1634 "target_id": 55,
1635 "target_slot": 0,
1636 "type": "LATENT"
1637 },
1638 {
1639 "id": 40,
1640 "origin_id": 53,
1641 "origin_slot": 0,
1642 "target_id": 55,
1643 "target_slot": 1,
1644 "type": "VAE"
1645 },
1646 {
1647 "id": 41,
1648 "origin_id": 52,
1649 "origin_slot": 0,
1650 "target_id": 56,
1651 "target_slot": 0,
1652 "type": "CLIP"
1653 },
1654 {
1655 "id": 42,
1656 "origin_id": 59,
1657 "origin_slot": 0,
1658 "target_id": 58,
1659 "target_slot": 0,
1660 "type": "MODEL"
1661 },
1662 {
1663 "id": 43,
1664 "origin_id": 56,
1665 "origin_slot": 0,
1666 "target_id": 58,
1667 "target_slot": 1,
1668 "type": "CONDITIONING"
1669 },
1670 {
1671 "id": 44,
1672 "origin_id": 54,
1673 "origin_slot": 0,
1674 "target_id": 58,
1675 "target_slot": 2,
1676 "type": "CONDITIONING"
1677 },
1678 {
1679 "id": 45,
1680 "origin_id": 57,
1681 "origin_slot": 0,
1682 "target_id": 58,
1683 "target_slot": 3,
1684 "type": "LATENT"
1685 },
1686 {
1687 "id": 54,
1688 "origin_id": -10,
1689 "origin_slot": 0,
1690 "target_id": 59,
1691 "target_slot": 0,
1692 "type": "MODEL"
1693 },
1694 {
1695 "id": 55,
1696 "origin_id": 55,
1697 "origin_slot": 0,
1698 "target_id": -20,
1699 "target_slot": 0,
1700 "type": "IMAGE"
1701 },
1702 {
1703 "id": 67,
1704 "origin_id": -10,
1705 "origin_slot": 1,
1706 "target_id": 56,
1707 "target_slot": 1,
1708 "type": "STRING"
1709 },
1710 {
1711 "id": 74,
1712 "origin_id": -10,
1713 "origin_slot": 2,
1714 "target_id": 52,
1715 "target_slot": 0,
1716 "type": "COMBO"
1717 },
1718 {
1719 "id": 75,
1720 "origin_id": -10,
1721 "origin_slot": 3,
1722 "target_id": 53,
1723 "target_slot": 0,
1724 "type": "COMBO"
1725 },
1726 {
1727 "id": 76,
1728 "origin_id": -10,
1729 "origin_slot": 4,
1730 "target_id": 57,
1731 "target_slot": 0,
1732 "type": "INT"
1733 },
1734 {
1735 "id": 77,
1736 "origin_id": -10,
1737 "origin_slot": 5,
1738 "target_id": 57,
1739 "target_slot": 1,
1740 "type": "INT"
1741 }
1742 ],
1743 "extra": []
1744 }
1745 ]
1746 },
1747 "config": [],
1748 "extra": {
1749 "ds": {
1750 "scale": 0.29924550041440134,
1751 "offset": [
1752 3554.2199285016336,
1753 -1546.6199206906763
1754 ]
1755 },
1756 "frontendVersion": "1.42.15",
1757 "VHS_latentpreview": false,
1758 "VHS_latentpreviewrate": 0,
1759 "VHS_MetadataImage": true,
1760 "VHS_KeepIntermediate": true
1761 },
1762 "version": 0.4
1763}