ComfyPilotComfyPilot
工作流 / 矢量 / Recraft v4:文生矢量
Recraft v4:文生矢量

Recraft v4:文生矢量

Recraft v4: Text to Vector

输入文本提示以生成干净、可编辑的矢量SVG图形。创建适用于设计工具的结构化路径的徽标、图标或插图。

矢量 6 个节点 17 次使用 ComfyUI ≥ 0.14.1 ComfyUI 6 KB

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

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

节点构成

RecraftColorRGB × 2
RecraftControls × 1
MarkdownNote × 1
SaveSVGNode × 1
RecraftV4TextToVectorNode × 1

官方标注的模型

Recraft

工作流 JSON

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

1{
2 "id": "dc0c4b4f-b566-42d0-9e41-5b80748b6dac",
3 "revision": 0,
4 "last_node_id": 14,
5 "last_link_id": 10,
6 "nodes": [
7 {
8 "id": 7,
9 "type": "RecraftColorRGB",
10 "pos": [
11 230,
12 260
13 ],
14 "size": [
15 270,
16 142
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 4,
21 "inputs": [
22 {
23 "name": "recraft_color",
24 "shape": 7,
25 "type": "RECRAFT_COLOR",
26 "link": null
27 }
28 ],
29 "outputs": [
30 {
31 "name": "recraft_color",
32 "type": "RECRAFT_COLOR",
33 "links": [
34 5
35 ]
36 }
37 ],
38 "properties": {
39 "Node name for S&R": "RecraftColorRGB"
40 },
41 "widgets_values": [
42 0,
43 0,
44 0
45 ]
46 },
47 {
48 "id": 6,
49 "type": "RecraftColorRGB",
50 "pos": [
51 230,
52 460
53 ],
54 "size": [
55 270,
56 112
57 ],
58 "flags": [],
59 "order": 1,
60 "mode": 4,
61 "inputs": [
62 {
63 "name": "recraft_color",
64 "shape": 7,
65 "type": "RECRAFT_COLOR",
66 "link": null
67 }
68 ],
69 "outputs": [
70 {
71 "name": "recraft_color",
72 "type": "RECRAFT_COLOR",
73 "links": [
74 4
75 ]
76 }
77 ],
78 "properties": {
79 "Node name for S&R": "RecraftColorRGB"
80 },
81 "widgets_values": [
82 0,
83 0,
84 0
85 ]
86 },
87 {
88 "id": 4,
89 "type": "RecraftControls",
90 "pos": [
91 520,
92 260
93 ],
94 "size": [
95 250,
96 78
97 ],
98 "flags": [],
99 "order": 3,
100 "mode": 4,
101 "inputs": [
102 {
103 "name": "colors",
104 "shape": 7,
105 "type": "RECRAFT_COLOR",
106 "link": 5
107 },
108 {
109 "name": "background_color",
110 "shape": 7,
111 "type": "RECRAFT_COLOR",
112 "link": 4
113 }
114 ],
115 "outputs": [
116 {
117 "name": "recraft_controls",
118 "type": "RECRAFT_CONTROLS",
119 "links": [
120 10
121 ]
122 }
123 ],
124 "properties": {
125 "Node name for S&R": "RecraftControls"
126 },
127 "widgets_values": []
128 },
129 {
130 "id": 11,
131 "type": "MarkdownNote",
132 "pos": [
133 530,
134 410
135 ],
136 "size": [
137 250,
138 181
139 ],
140 "flags": [],
141 "order": 2,
142 "mode": 0,
143 "inputs": [],
144 "outputs": [],
145 "properties": [],
146 "widgets_values": [
147 "If you want more precise control over the image:\n- Use the `Recraft Controls` node for more precise color control.\n- You can chain multiple `Recraft Color RGB` nodes to provide multiple control colors."
148 ],
149 "color": "#222",
150 "bgcolor": "#000"
151 },
152 {
153 "id": 14,
154 "type": "SaveSVGNode",
155 "pos": [
156 1290,
157 260
158 ],
159 "size": [
160 620,
161 410
162 ],
163 "flags": [],
164 "order": 5,
165 "mode": 0,
166 "inputs": [
167 {
168 "name": "svg",
169 "type": "SVG",
170 "link": 9
171 }
172 ],
173 "outputs": [
174 {
175 "name": "svg",
176 "type": "SVG",
177 "links": null
178 }
179 ],
180 "properties": {
181 "Node name for S&R": "SaveSVGNode"
182 },
183 "widgets_values": [
184 "svg/Recraft_v4_t2vector"
185 ]
186 },
187 {
188 "id": 13,
189 "type": "RecraftV4TextToVectorNode",
190 "pos": [
191 840,
192 260
193 ],
194 "size": [
195 400,
196 370
197 ],
198 "flags": [],
199 "order": 4,
200 "mode": 0,
201 "inputs": [
202 {
203 "name": "recraft_controls",
204 "shape": 7,
205 "type": "RECRAFT_CONTROLS",
206 "link": 10
207 }
208 ],
209 "outputs": [
210 {
211 "name": "SVG",
212 "type": "SVG",
213 "links": [
214 9
215 ]
216 }
217 ],
218 "properties": {
219 "Node name for S&R": "RecraftV4TextToVectorNode"
220 },
221 "widgets_values": [
222 "A warm, whimsical illustration captures a crossing guard gently guiding four schoolchildren across a crosswalk, rendered in a soft, muted palette of mint green, mustard yellow, and earthy tones. The isometric perspective and flat, textured shapes create a playful, modern folk-art style, while the long, soft shadows add depth and a sense of calm, sunny daytime. The composition centers on the protective figure, with children arranged in a loose, natural formation around him, evoking a feeling of safety and gentle care.",
223 "",
224 "recraftv4",
225 "1024x1024",
226 1,
227 551265443705224,
228 "randomize"
229 ],
230 "color": "#432",
231 "bgcolor": "#653"
232 }
233 ],
234 "links": [
235 [
236 4,
237 6,
238 0,
239 4,
240 1,
241 "RECRAFT_COLOR"
242 ],
243 [
244 5,
245 7,
246 0,
247 4,
248 0,
249 "RECRAFT_COLOR"
250 ],
251 [
252 9,
253 13,
254 0,
255 14,
256 0,
257 "SVG"
258 ],
259 [
260 10,
261 4,
262 0,
263 13,
264 0,
265 "RECRAFT_CONTROLS"
266 ]
267 ],
268 "groups": [
269 {
270 "id": 1,
271 "title": "Recraft Toolset(Select and Ctrl-B to enable)",
272 "bounding": [
273 220,
274 180,
275 590,
276 480
277 ],
278 "color": "#3f789e",
279 "flags": []
280 }
281 ],
282 "config": [],
283 "extra": {
284 "ds": {
285 "scale": 0.8470588235294118,
286 "offset": [
287 -0.6103515625000764,
288 143.73182508680554
289 ]
290 },
291 "frontendVersion": "1.47.7",
292 "workflowRendererVersion": "LG",
293 "VHS_latentpreview": false,
294 "VHS_latentpreviewrate": 0,
295 "VHS_MetadataImage": true,
296 "VHS_KeepIntermediate": true
297 },
298 "version": 0.4
299}