Recraft V4 Pro Vector
Prompt in, honest-to-goodness SVG out
- file_path
Recraft's calling card, since the V3 days that nobody could identify on the leaderboard, has been native vector output - and this node is the Pro-quality version of that trick. Type a prompt, get back a real SVG file, infinitely scalable, editable in Illustrator or Figma. No raster that looks like it could be vector, but an actual .svg that survived a trip through the API.
This is the node for when the deliverable is a graphic that has to scale: a logo mark, an icon family, a print asset. If your workflow ends in "send the client a vector," this is the shortest path from a prompt to a vector file that exists in this pack. The raster Recraft nodes give you pixels; this one hands you a path string to a saved SVG.
How it works
Different output shape than the image nodes, so the mechanics differ. Your positivePrompt goes to recraft:v4-pro@vector with taskType: vectorize; the response is an SVG URL; the pack downloads it to your ComfyUI output folder and returns file_path - a STRING path, not an IMAGE tensor. There's no image to preview; the file just lands in output/ and you open it in a vector editor.
Inputs:
positivePrompt- required. Describe a vector-appropriate subject: clean shapes, flat colors, logo-friendly. Recraft's vectorizer is much happier with "stylized mountain logo, minimal linework" than with photographic subjects.width/height- optional, 1024×1024 default, controlling the source canvas.outputFormat- a dropdown with one choice: SVG. It's there because the schema is shared; you won't be changing it.advanced_json- the usual Recraft background color / palette hooks.
Output: file_path (STRING).
Installing
Pack-wide, one install: ComfyUI Manager → search Runware → install → restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/Runware/ComfyUI-Runware
pip install -r ComfyUI-Runware/requirements.txt
No model downloads, light deps (runware-sdk, Pillow), API key from the Runware dashboard.
Gotchas
The big one: this is prompt-to-vector, and the quality ceiling depends heavily on what you ask for. Complex photographic prompts come back as over-complicated, bloated SVGs that are a pain to edit. Ask for flat, geometric, limited-palette subjects and the output is genuinely useful. Also - the file appears in your output folder under a generated runware_*.svg name; there's no Save node needed, but you also won't see it as a preview thumbnail. And if you already have a raster image you want vectorized rather than a prompt, that's a different node: Recraft Vectorize. If you want the current-generation quality on a strict budget, note this is the Pro vector checkpoint; the non-Pro Recraft V4 Vector node is the same trick a tier down.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| positivePrompt | STRING | Text prompt describing elements to include in the generated output. | |
| sizeopt | COMBO | 2K (1:1) | Output size. Only one of resolution or dimensions is sent. |
| ttlopt | BOOLEAN | false | Enable to set ttl. Off uses the model's default. |
| ttl_valueopt | INT | 60 | Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`. |
| outputFormatopt | COMBO | SVG | File format for the vectorized output. |
| advanced_jsonopt | STRING | Optional JSON merged into the request. For: providerSettings.recraft.backgroundColor.rgb, providerSettings.recraft.colors |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| file_path | STRING | — |