ComfyPilotComfyPilot
工作流 / 图像 / Recraft 风格参考生成
Recraft 风格参考生成

Recraft 风格参考生成

Recraft Style Reference Generation

上传多张图片以创建一致的风格参考。使用此参考生成新图像,以保持输出之间的视觉连贯性。

图像 11 个节点 4 个输入 22 次使用 ComfyUI ≥ 0.12.0 ComfyUI 12 KB

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

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

节点构成

LoadImage × 4
RecraftStyleV3InfiniteStyleLibrary × 2
SaveImage × 1
RecraftCreateStyleNode × 1
PreviewAny × 1
RecraftTextToImageNode × 1
MarkdownNote × 1

官方标注的模型

Recraft

工作流 JSON

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

1{
2 "id": "42743d56-5fa9-4b0f-8552-099e7b0345be",
3 "revision": 0,
4 "last_node_id": 53,
5 "last_link_id": 41,
6 "nodes": [
7 {
8 "id": 36,
9 "type": "LoadImage",
10 "pos": [
11 830,
12 5470
13 ],
14 "size": [
15 290,
16 364
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [],
22 "outputs": [
23 {
24 "name": "IMAGE",
25 "type": "IMAGE",
26 "links": [
27 22
28 ]
29 },
30 {
31 "name": "MASK",
32 "type": "MASK",
33 "links": null
34 }
35 ],
36 "properties": {
37 "Node name for S&R": "LoadImage",
38 "cnr_id": "comfy-core",
39 "ver": "0.11.1",
40 "enableTabs": false,
41 "hasSecondTab": false,
42 "secondTabOffset": 80,
43 "secondTabText": "Send Back",
44 "secondTabWidth": 65,
45 "tabWidth": 65,
46 "tabXOffset": 10
47 },
48 "widgets_values": [
49 "recraft_style_ref-3.png",
50 "image"
51 ]
52 },
53 {
54 "id": 38,
55 "type": "LoadImage",
56 "pos": [
57 830,
58 5910
59 ],
60 "size": [
61 290,
62 364
63 ],
64 "flags": [],
65 "order": 1,
66 "mode": 0,
67 "inputs": [],
68 "outputs": [
69 {
70 "name": "IMAGE",
71 "type": "IMAGE",
72 "links": [
73 27
74 ]
75 },
76 {
77 "name": "MASK",
78 "type": "MASK",
79 "links": null
80 }
81 ],
82 "properties": {
83 "Node name for S&R": "LoadImage",
84 "cnr_id": "comfy-core",
85 "ver": "0.11.1",
86 "enableTabs": false,
87 "hasSecondTab": false,
88 "secondTabOffset": 80,
89 "secondTabText": "Send Back",
90 "secondTabWidth": 65,
91 "tabWidth": 65,
92 "tabXOffset": 10
93 },
94 "widgets_values": [
95 "recraft_style_ref-2.png",
96 "image"
97 ]
98 },
99 {
100 "id": 39,
101 "type": "LoadImage",
102 "pos": [
103 490,
104 5900
105 ],
106 "size": [
107 290,
108 364
109 ],
110 "flags": [],
111 "order": 2,
112 "mode": 0,
113 "inputs": [],
114 "outputs": [
115 {
116 "name": "IMAGE",
117 "type": "IMAGE",
118 "links": [
119 28
120 ]
121 },
122 {
123 "name": "MASK",
124 "type": "MASK",
125 "links": null
126 }
127 ],
128 "properties": {
129 "Node name for S&R": "LoadImage",
130 "cnr_id": "comfy-core",
131 "ver": "0.11.1",
132 "enableTabs": false,
133 "hasSecondTab": false,
134 "secondTabOffset": 80,
135 "secondTabText": "Send Back",
136 "secondTabWidth": 65,
137 "tabWidth": 65,
138 "tabXOffset": 10
139 },
140 "widgets_values": [
141 "recraft_style_ref-4.png",
142 "image"
143 ]
144 },
145 {
146 "id": 29,
147 "type": "LoadImage",
148 "pos": [
149 490,
150 5470
151 ],
152 "size": [
153 290,
154 364
155 ],
156 "flags": [],
157 "order": 3,
158 "mode": 0,
159 "inputs": [],
160 "outputs": [
161 {
162 "name": "IMAGE",
163 "type": "IMAGE",
164 "links": [
165 17
166 ]
167 },
168 {
169 "name": "MASK",
170 "type": "MASK",
171 "links": null
172 }
173 ],
174 "properties": {
175 "Node name for S&R": "LoadImage",
176 "cnr_id": "comfy-core",
177 "ver": "0.11.1",
178 "enableTabs": false,
179 "hasSecondTab": false,
180 "secondTabOffset": 80,
181 "secondTabText": "Send Back",
182 "secondTabWidth": 65,
183 "tabWidth": 65,
184 "tabXOffset": 10
185 },
186 "widgets_values": [
187 "recraft_style_ref-1.png",
188 "image"
189 ]
190 },
191 {
192 "id": 34,
193 "type": "SaveImage",
194 "pos": [
195 2039.9999892078063,
196 5410.0000852262365
197 ],
198 "size": [
199 570,
200 500
201 ],
202 "flags": [],
203 "order": 10,
204 "mode": 0,
205 "inputs": [
206 {
207 "name": "images",
208 "type": "IMAGE",
209 "link": 40
210 }
211 ],
212 "outputs": [],
213 "properties": {
214 "Node name for S&R": "SaveImage",
215 "cnr_id": "comfy-core",
216 "ver": "0.11.1",
217 "enableTabs": false,
218 "hasSecondTab": false,
219 "secondTabOffset": 80,
220 "secondTabText": "Send Back",
221 "secondTabWidth": 65,
222 "tabWidth": 65,
223 "tabXOffset": 10
224 },
225 "widgets_values": [
226 "Recraft-style"
227 ]
228 },
229 {
230 "id": 28,
231 "type": "RecraftCreateStyleNode",
232 "pos": [
233 1210,
234 5460
235 ],
236 "size": [
237 320,
238 266.65625
239 ],
240 "flags": [],
241 "order": 6,
242 "mode": 0,
243 "inputs": [
244 {
245 "label": "image0",
246 "name": "images.image0",
247 "type": "IMAGE",
248 "link": 17
249 },
250 {
251 "label": "image1",
252 "name": "images.image1",
253 "shape": 7,
254 "type": "IMAGE",
255 "link": 22
256 },
257 {
258 "label": "image2",
259 "name": "images.image2",
260 "shape": 7,
261 "type": "IMAGE",
262 "link": 27
263 },
264 {
265 "label": "image3",
266 "name": "images.image3",
267 "shape": 7,
268 "type": "IMAGE",
269 "link": 28
270 },
271 {
272 "label": "image4",
273 "name": "images.image4",
274 "shape": 7,
275 "type": "IMAGE",
276 "link": null
277 }
278 ],
279 "outputs": [
280 {
281 "name": "style_id",
282 "type": "STRING",
283 "links": [
284 30,
285 41
286 ]
287 }
288 ],
289 "properties": {
290 "Node name for S&R": "RecraftCreateStyleNode",
291 "cnr_id": "comfy-core",
292 "ver": "0.11.1",
293 "enableTabs": false,
294 "hasSecondTab": false,
295 "secondTabOffset": 80,
296 "secondTabText": "Send Back",
297 "secondTabWidth": 65,
298 "tabWidth": 65,
299 "tabXOffset": 10
300 },
301 "widgets_values": [
302 "realistic_image"
303 ],
304 "color": "#432",
305 "bgcolor": "#653"
306 },
307 {
308 "id": 48,
309 "type": "RecraftStyleV3InfiniteStyleLibrary",
310 "pos": [
311 1600,
312 5980
313 ],
314 "size": [
315 360,
316 108
317 ],
318 "flags": [],
319 "order": 4,
320 "mode": 0,
321 "inputs": [],
322 "outputs": [
323 {
324 "name": "recraft_style",
325 "type": "RECRAFT_V3_STYLE",
326 "links": null
327 }
328 ],
329 "properties": {
330 "Node name for S&R": "RecraftStyleV3InfiniteStyleLibrary",
331 "cnr_id": "comfy-core",
332 "ver": "0.13.0"
333 },
334 "widgets_values": [
335 "COPY PASTE STYLE ID HERE AND CONNECT"
336 ]
337 },
338 {
339 "id": 49,
340 "type": "PreviewAny",
341 "pos": [
342 1220,
343 5970
344 ],
345 "size": [
346 310,
347 176
348 ],
349 "flags": [],
350 "order": 8,
351 "mode": 0,
352 "inputs": [
353 {
354 "name": "source",
355 "type": "*",
356 "link": 41
357 }
358 ],
359 "outputs": [
360 {
361 "name": "STRING",
362 "type": "STRING",
363 "links": null
364 }
365 ],
366 "title": "Preview as Text (style_id)",
367 "properties": {
368 "Node name for S&R": "PreviewAny",
369 "cnr_id": "comfy-core",
370 "ver": "0.13.0"
371 },
372 "widgets_values": [
373 null,
374 null,
375 null
376 ]
377 },
378 {
379 "id": 33,
380 "type": "RecraftStyleV3InfiniteStyleLibrary",
381 "pos": [
382 1210,
383 5780
384 ],
385 "size": [
386 330,
387 108
388 ],
389 "flags": [],
390 "order": 7,
391 "mode": 0,
392 "inputs": [
393 {
394 "name": "style_id",
395 "type": "STRING",
396 "widget": {
397 "name": "style_id"
398 },
399 "link": 30
400 }
401 ],
402 "outputs": [
403 {
404 "name": "recraft_style",
405 "type": "RECRAFT_V3_STYLE",
406 "links": [
407 39
408 ]
409 }
410 ],
411 "properties": {
412 "Node name for S&R": "RecraftStyleV3InfiniteStyleLibrary",
413 "cnr_id": "comfy-core",
414 "ver": "0.11.1",
415 "enableTabs": false,
416 "hasSecondTab": false,
417 "secondTabOffset": 80,
418 "secondTabText": "Send Back",
419 "secondTabWidth": 65,
420 "tabWidth": 65,
421 "tabXOffset": 10
422 },
423 "widgets_values": [
424 ""
425 ]
426 },
427 {
428 "id": 53,
429 "type": "RecraftTextToImageNode",
430 "pos": [
431 1600,
432 5480
433 ],
434 "size": [
435 400,
436 350.65625
437 ],
438 "flags": [],
439 "order": 9,
440 "mode": 0,
441 "inputs": [
442 {
443 "name": "recraft_style",
444 "shape": 7,
445 "type": "RECRAFT_V3_STYLE",
446 "link": 39
447 },
448 {
449 "name": "negative_prompt",
450 "shape": 7,
451 "type": "STRING",
452 "link": null
453 },
454 {
455 "name": "recraft_controls",
456 "shape": 7,
457 "type": "RECRAFT_CONTROLS",
458 "link": null
459 }
460 ],
461 "outputs": [
462 {
463 "name": "IMAGE",
464 "type": "IMAGE",
465 "links": [
466 40
467 ]
468 }
469 ],
470 "properties": {
471 "Node name for S&R": "RecraftTextToImageNode",
472 "cnr_id": "comfy-core",
473 "ver": "0.16.1"
474 },
475 "widgets_values": [
476 "A soft-focus, painterly vintage photograph of David's marble bust, surrounded by an abundant, lush tapestry of antique roses, lilacs, and forget-me-nots in muted blush and lavender tones. The background is entirely filled with flowers, with soft, diffused light creating a luminous, ethereal quality on the marble. The image features a warm sepia filter, delicate vignetting, and a romantic, timeless mood, 4K.",
477 "1024x1024",
478 1,
479 421886525548300,
480 "randomize"
481 ],
482 "color": "#432",
483 "bgcolor": "#653"
484 },
485 {
486 "id": 52,
487 "type": "MarkdownNote",
488 "pos": [
489 1590,
490 6150
491 ],
492 "size": [
493 420,
494 245.6875
495 ],
496 "flags": [],
497 "order": 5,
498 "mode": 0,
499 "inputs": [],
500 "outputs": [],
501 "properties": [],
502 "widgets_values": [
503 "After running the workflow once, you can see your style ID in the \"Preview as Text\" node.\n\nTo avoid creating a new style ID for each job, copy and paste the ID into the \"Recraft - Infinite Style Library (Manual)\" and connect the output to the Recraft Text to Image input.\n\nThen, bypass `CTRL/CMD + B` the 'Recraft Create Style' API node."
504 ],
505 "color": "#222",
506 "bgcolor": "#000"
507 }
508 ],
509 "links": [
510 [
511 17,
512 29,
513 0,
514 28,
515 0,
516 "IMAGE"
517 ],
518 [
519 22,
520 36,
521 0,
522 28,
523 1,
524 "IMAGE"
525 ],
526 [
527 27,
528 38,
529 0,
530 28,
531 2,
532 "IMAGE"
533 ],
534 [
535 28,
536 39,
537 0,
538 28,
539 3,
540 "IMAGE"
541 ],
542 [
543 30,
544 28,
545 0,
546 33,
547 0,
548 "STRING"
549 ],
550 [
551 39,
552 33,
553 0,
554 53,
555 0,
556 "RECRAFT_V3_STYLE"
557 ],
558 [
559 40,
560 53,
561 0,
562 34,
563 0,
564 "IMAGE"
565 ],
566 [
567 41,
568 28,
569 0,
570 49,
571 0,
572 "STRING"
573 ]
574 ],
575 "groups": [
576 {
577 "id": 1,
578 "title": "Step 1: Upload Reference Images",
579 "bounding": [
580 460,
581 5380,
582 700,
583 950
584 ],
585 "color": "#3f789e",
586 "font_size": 24,
587 "flags": []
588 },
589 {
590 "id": 2,
591 "title": "Step 2: Choose Style",
592 "bounding": [
593 1190,
594 5380,
595 360,
596 530
597 ],
598 "color": "#3f789e",
599 "font_size": 24,
600 "flags": []
601 },
602 {
603 "id": 3,
604 "title": "Step 3: Update Prompt",
605 "bounding": [
606 1580,
607 5380,
608 440,
609 530
610 ],
611 "color": "#3f789e",
612 "font_size": 24,
613 "flags": []
614 }
615 ],
616 "config": [],
617 "extra": {
618 "ds": {
619 "scale": 0.6031249680004749,
620 "offset": [
621 -137.4108945871834,
622 -5008.658046391913
623 ]
624 },
625 "frontendVersion": "1.42.6",
626 "workflowRendererVersion": "LG",
627 "VHS_KeepIntermediate": true,
628 "VHS_MetadataImage": true,
629 "VHS_latentpreview": false,
630 "VHS_latentpreviewrate": 0
631 },
632 "version": 0.4
633}