ComfyUI Node

Recraft V4 Pro Vector

Prompt in, honest-to-goodness SVG out

By Runware·Created 2 years ago·Updated about a month ago· 140
Recraft V4 Pro Vector
    • file_path
    positivePrompt
    size2K (1:1)
    ttlfalse
    ttl_value60
    outputFormatSVG
    advanced_json

    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.

    CategoryRunware/Vector/recraft

    Inputs (6)

    NameTypeDefaultDescription
    positivePromptSTRINGText prompt describing elements to include in the generated output.
    sizeoptCOMBO2K (1:1)Output size. Only one of resolution or dimensions is sent.
    ttloptBOOLEANfalseEnable to set ttl. Off uses the model's default.
    ttl_valueoptINT60Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.
    outputFormatoptCOMBOSVGFile format for the vectorized output.
    advanced_jsonoptSTRINGOptional JSON merged into the request. For: providerSettings.recraft.backgroundColor.rgb, providerSettings.recraft.colors

    Outputs (1)

    NameTypeDescription
    file_pathSTRING