Recraft V4 Vector
The prompt-to-SVG node that just works
- file_path
Most "vector" image generators hand you a smooth-looking raster and hope you don't zoom in. Recraft has been the exception since the V3 days - the company that anonymously topped the image leaderboard for five months - and this node gives you its current-generation prompt-to-SVG pipeline as a plain ComfyUI node. Prompt in, real .svg file out.
Reach for it whenever the deliverable is vector: logo marks, icons, stickers, print graphics, anything headed into Illustrator or Figma. It's the entry tier of Recraft's vector line - the Pro Vector node exists if you need the top quality, but for day-to-day "I need a clean scalable graphic," this one does the job at a lower per-run price.
How it works
This is a vectorize task, not an image task, and the output shape shows it. Your positivePrompt goes to recraft:v4@vector; the API returns an SVG; the pack downloads it into your ComfyUI output folder and returns file_path - a STRING path, not an IMAGE tensor. There's no preview thumbnail and no Preview node in the path; the artifact is a file on disk.
Inputs:
positivePrompt- required. This is where the quality lives. Flat, geometric, limited-palette subjects ("minimal bird logo, two-color, thick outlines") vectorize beautifully; photographic prompts come back as tangled SVG soup.width/height- optional, 1024×1024 default, the source canvas the vectorizer works from.outputFormat- SVG, and only SVG.advanced_json- Recraft's background color and brand palette hooks.
Output: file_path (STRING).
Installing
Same single install as the rest of the pack: ComfyUI Manager → Custom Nodes Manager → search Runware → install → restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/Runware/ComfyUI-Runware
pip install -r ComfyUI-Runware/requirements.txt
Light deps (runware-sdk, Pillow), no model downloads, and you need a Runware API key from the dashboard - Settings, RUNWARE_API_KEY, or runware auth login.
Gotchas
The recurring Recraft-vector lesson: ask for simple. Flat color, minimal shapes, clear silhouettes. That's not a limitation you can prompt your way out of; complex output is exactly what makes an SVG uneditable. Two other things to remember. First, the file lands in your output folder as a generated runware_*.svg - no Save Image node involved, which surprises people the first time. Second, this is prompt-to-vector; if you have an existing raster image you want converted, that's the separate Recraft Vectorize node. And if you're building for a client and the vector quality has to be flawless, the Pro Vector sibling is the step up.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| positivePrompt | STRING | Text prompt describing elements to include in the generated output. | |
| sizeopt | COMBO | 1K (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 | — |