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

Recraft V4:风格参考图生成

Recraft V4: Style-Reference Image Generation

使用Recraft V4样式,根据一张或多张参考图像生成图像,捕捉纹理、构图和渲染效果,无需任何训练或微调。输入多张参考图像可增强或拓宽样式匹配范围,并获得单一风格的输出。非常适合创建品牌一致的素材、匹配客户现有广告活动的风格,或从任何外部图像来源调整样式。

图像 10 个节点 4 个输入 22 次使用 ComfyUI ≥ 0.34.1 ComfyUI 13 KB

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

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

节点构成

LoadImage × 4
MarkdownNote × 2
RecraftV4CreateStyleNode × 1
SaveText × 1
RecraftV4TextToImageNode × 1
SaveImageAdvanced × 1

官方标注的模型

Recraft

工作流 JSON

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

1{
2 "id": "453d9ec8-cac8-4514-918b-efb5a2dd14b6",
3 "revision": 0,
4 "last_node_id": 18,
5 "last_link_id": 14,
6 "nodes": [
7 {
8 "id": 7,
9 "type": "RecraftV4CreateStyleNode",
10 "pos": [
11 -3600,
12 4830
13 ],
14 "size": [
15 270,
16 230
17 ],
18 "flags": [],
19 "order": 6,
20 "mode": 0,
21 "inputs": [
22 {
23 "name": "images.image0",
24 "type": "IMAGE",
25 "link": 8
26 },
27 {
28 "name": "images.image1",
29 "shape": 7,
30 "type": "IMAGE",
31 "link": 9
32 },
33 {
34 "name": "images.image2",
35 "shape": 7,
36 "type": "IMAGE",
37 "link": 10
38 },
39 {
40 "name": "images.image3",
41 "shape": 7,
42 "type": "IMAGE",
43 "link": 11
44 },
45 {
46 "name": "images.image4",
47 "shape": 7,
48 "type": "IMAGE",
49 "link": null
50 }
51 ],
52 "outputs": [
53 {
54 "name": "style_id",
55 "type": "STRING",
56 "links": [
57 12
58 ]
59 }
60 ],
61 "properties": {
62 "Node name for S&R": "RecraftV4CreateStyleNode"
63 },
64 "widgets_values": [
65 "recraftv4_styles"
66 ],
67 "widgets_values_named": {
68 "model": "recraftv4_styles"
69 },
70 "color": "#432",
71 "bgcolor": "#653"
72 },
73 {
74 "id": 8,
75 "type": "LoadImage",
76 "pos": [
77 -4090,
78 4830
79 ],
80 "size": [
81 290,
82 350
83 ],
84 "flags": [],
85 "order": 0,
86 "mode": 0,
87 "inputs": [],
88 "outputs": [
89 {
90 "name": "IMAGE",
91 "type": "IMAGE",
92 "links": [
93 9
94 ]
95 },
96 {
97 "name": "MASK",
98 "type": "MASK",
99 "links": null
100 }
101 ],
102 "properties": {
103 "Node name for S&R": "LoadImage"
104 },
105 "widgets_values": [
106 "recraft_v4_style_ref_2.png",
107 "image"
108 ],
109 "widgets_values_named": {
110 "image": "recraft_v4_style_ref_2.png",
111 "upload": "image"
112 }
113 },
114 {
115 "id": 9,
116 "type": "LoadImage",
117 "pos": [
118 -4090,
119 5260
120 ],
121 "size": [
122 290,
123 350
124 ],
125 "flags": [],
126 "order": 1,
127 "mode": 0,
128 "inputs": [],
129 "outputs": [
130 {
131 "name": "IMAGE",
132 "type": "IMAGE",
133 "links": [
134 11
135 ]
136 },
137 {
138 "name": "MASK",
139 "type": "MASK",
140 "links": null
141 }
142 ],
143 "properties": {
144 "Node name for S&R": "LoadImage"
145 },
146 "widgets_values": [
147 "recraft_v4_style_ref_4.png",
148 "image"
149 ],
150 "widgets_values_named": {
151 "image": "recraft_v4_style_ref_4.png",
152 "upload": "image"
153 }
154 },
155 {
156 "id": 11,
157 "type": "LoadImage",
158 "pos": [
159 -4430,
160 5260
161 ],
162 "size": [
163 290,
164 350
165 ],
166 "flags": [],
167 "order": 2,
168 "mode": 0,
169 "inputs": [],
170 "outputs": [
171 {
172 "name": "IMAGE",
173 "type": "IMAGE",
174 "links": [
175 10
176 ]
177 },
178 {
179 "name": "MASK",
180 "type": "MASK",
181 "links": null
182 }
183 ],
184 "properties": {
185 "Node name for S&R": "LoadImage"
186 },
187 "widgets_values": [
188 "recraft_v4_style_ref_3.png",
189 "image"
190 ],
191 "widgets_values_named": {
192 "image": "recraft_v4_style_ref_3.png",
193 "upload": "image"
194 }
195 },
196 {
197 "id": 12,
198 "type": "LoadImage",
199 "pos": [
200 -4430,
201 4830
202 ],
203 "size": [
204 290,
205 350
206 ],
207 "flags": [],
208 "order": 3,
209 "mode": 0,
210 "inputs": [],
211 "outputs": [
212 {
213 "name": "IMAGE",
214 "type": "IMAGE",
215 "links": [
216 8
217 ]
218 },
219 {
220 "name": "MASK",
221 "type": "MASK",
222 "links": null
223 }
224 ],
225 "properties": {
226 "Node name for S&R": "LoadImage"
227 },
228 "widgets_values": [
229 "recraft_v4_style_ref_1.png",
230 "image"
231 ],
232 "widgets_values_named": {
233 "image": "recraft_v4_style_ref_1.png",
234 "upload": "image"
235 }
236 },
237 {
238 "id": 13,
239 "type": "SaveText",
240 "pos": [
241 -3280,
242 4830
243 ],
244 "size": [
245 270,
246 230
247 ],
248 "flags": [],
249 "order": 7,
250 "mode": 0,
251 "inputs": [
252 {
253 "name": "text",
254 "type": "STRING",
255 "link": 12
256 }
257 ],
258 "outputs": [
259 {
260 "name": "text",
261 "type": "STRING",
262 "links": [
263 13
264 ]
265 }
266 ],
267 "properties": {
268 "Node name for S&R": "SaveText"
269 },
270 "widgets_values": [
271 "Recraft_Style_v4/style",
272 "txt"
273 ],
274 "widgets_values_named": {
275 "filename_prefix": "Recraft_Style_v4/style",
276 "format": "txt"
277 }
278 },
279 {
280 "id": 14,
281 "type": "RecraftV4TextToImageNode",
282 "pos": [
283 -2960,
284 4830
285 ],
286 "size": [
287 400,
288 454
289 ],
290 "flags": [],
291 "order": 8,
292 "mode": 0,
293 "inputs": [
294 {
295 "name": "recraft_controls",
296 "shape": 7,
297 "type": "RECRAFT_CONTROLS",
298 "link": null
299 },
300 {
301 "name": "style_references.style_reference0",
302 "shape": 7,
303 "type": "IMAGE",
304 "link": null
305 },
306 {
307 "name": "style_id",
308 "shape": 7,
309 "type": "STRING",
310 "widget": {
311 "name": "style_id"
312 },
313 "link": 13
314 }
315 ],
316 "outputs": [
317 {
318 "name": "IMAGE",
319 "type": "IMAGE",
320 "links": [
321 14
322 ]
323 },
324 {
325 "name": "style_id",
326 "type": "STRING",
327 "links": null
328 }
329 ],
330 "properties": {
331 "Node name for S&R": "RecraftV4TextToImageNode"
332 },
333 "widgets_values": [
334 "A dramatic silhouette portrait of an elegant neck in profile against a luminous, deep midnight-purple background. The jaw and throat are cast in plum-dark shadow, hair pinned high exposing the ear, while a teardrop ruby pendant earring hangs from the lobe, its crimson core lit from behind like an ember, scattering a faint red glow onto the shadowed skin below. The light passes through the blood-red stone itself, isolating its inner fire as the sole focal point of the high-contrast, minimalist composition. Absolutely no text, no typography, no letters, no words, no numbers, no logos, no watermark, no captions, pure imagery only.",
335 "",
336 "recraftv4_1",
337 "1024x1024",
338 1,
339 308995972515692,
340 "randomize",
341 "",
342 "precise"
343 ],
344 "widgets_values_named": {
345 "prompt": "A dramatic silhouette portrait of an elegant neck in profile against a luminous, deep midnight-purple background. The jaw and throat are cast in plum-dark shadow, hair pinned high exposing the ear, while a teardrop ruby pendant earring hangs from the lobe, its crimson core lit from behind like an ember, scattering a faint red glow onto the shadowed skin below. The light passes through the blood-red stone itself, isolating its inner fire as the sole focal point of the high-contrast, minimalist composition. Absolutely no text, no typography, no letters, no words, no numbers, no logos, no watermark, no captions, pure imagery only.",
346 "negative_prompt": "",
347 "model": "recraftv4_1",
348 "model.size": "1024x1024",
349 "n": 1,
350 "seed": 308995972515692,
351 "control_after_generate": "randomize",
352 "style_id": "",
353 "style_match": "precise"
354 },
355 "color": "#432",
356 "bgcolor": "#653"
357 },
358 {
359 "id": 15,
360 "type": "SaveImageAdvanced",
361 "pos": [
362 -2520,
363 4830
364 ],
365 "size": [
366 270,
367 378
368 ],
369 "flags": [],
370 "order": 9,
371 "mode": 0,
372 "inputs": [
373 {
374 "name": "images",
375 "type": "IMAGE",
376 "link": 14
377 }
378 ],
379 "outputs": [
380 {
381 "name": "images",
382 "type": "IMAGE",
383 "links": null
384 }
385 ],
386 "properties": [],
387 "widgets_values": [
388 "ComfyUI",
389 "png",
390 "8-bit",
391 "sRGB"
392 ],
393 "widgets_values_named": {
394 "filename_prefix": "ComfyUI",
395 "format": "png",
396 "format.bit_depth": "8-bit",
397 "format.input_color_space": "sRGB"
398 }
399 },
400 {
401 "id": 16,
402 "type": "MarkdownNote",
403 "pos": [
404 -4910,
405 4830
406 ],
407 "size": [
408 410,
409 410
410 ],
411 "flags": [],
412 "order": 4,
413 "mode": 0,
414 "inputs": [],
415 "outputs": [],
416 "properties": [],
417 "widgets_values": [
418 "## Input Assets\n\n- [recraft_v4_style_ref_1.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/recraft_v4_style_ref_1.png)\n- [recraft_v4_style_ref_2.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/recraft_v4_style_ref_2.png)\n- [recraft_v4_style_ref_3.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/recraft_v4_style_ref_3.png)\n- [recraft_v4_style_ref_4.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/recraft_v4_style_ref_4.png)\n\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
419 ],
420 "widgets_values_named": {
421 "text": "## Input Assets\n\n- [recraft_v4_style_ref_1.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/recraft_v4_style_ref_1.png)\n- [recraft_v4_style_ref_2.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/recraft_v4_style_ref_2.png)\n- [recraft_v4_style_ref_3.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/recraft_v4_style_ref_3.png)\n- [recraft_v4_style_ref_4.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/recraft_v4_style_ref_4.png)\n\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
422 },
423 "color": "#222",
424 "bgcolor": "#000"
425 },
426 {
427 "id": 18,
428 "type": "MarkdownNote",
429 "pos": [
430 -3280,
431 5120
432 ],
433 "size": [
434 270,
435 163.171875
436 ],
437 "flags": [],
438 "order": 5,
439 "mode": 0,
440 "inputs": [],
441 "outputs": [],
442 "properties": [],
443 "widgets_values": [
444 "The style ID will be saved to the `ComfyUI/output/Recraft_Style_v4/`; you can also update the filename_prefix to customize the output file name.\n\nYou can reuse the same style ID for future use"
445 ],
446 "widgets_values_named": {
447 "text": "The style ID will be saved to the `ComfyUI/output/Recraft_Style_v4/`; you can also update the filename_prefix to customize the output file name.\n\nYou can reuse the same style ID for future use"
448 },
449 "color": "#222",
450 "bgcolor": "#000"
451 }
452 ],
453 "links": [
454 [
455 8,
456 12,
457 0,
458 7,
459 0,
460 "IMAGE"
461 ],
462 [
463 9,
464 8,
465 0,
466 7,
467 1,
468 "IMAGE"
469 ],
470 [
471 10,
472 11,
473 0,
474 7,
475 2,
476 "IMAGE"
477 ],
478 [
479 11,
480 9,
481 0,
482 7,
483 3,
484 "IMAGE"
485 ],
486 [
487 12,
488 7,
489 0,
490 13,
491 0,
492 "STRING"
493 ],
494 [
495 13,
496 13,
497 0,
498 14,
499 2,
500 "STRING"
501 ],
502 [
503 14,
504 14,
505 0,
506 15,
507 0,
508 "IMAGE"
509 ]
510 ],
511 "groups": [],
512 "config": [],
513 "extra": {
514 "ds": {
515 "scale": 0.5332161944937183,
516 "offset": [
517 4087.977119809695,
518 -4008.8818780271567
519 ]
520 },
521 "frontendVersion": "1.51.9"
522 },
523 "version": 0.4
524}