
The 'Recraft v4: Text to Vector' workflow is designed to transform text prompts into clean, editable vector SVG graphics, making it an ideal tool for creating logos, icons, or illustrations. This workflow leverages the Recraft model, which excels in generating structured paths suitable for design tools. By utilizing nodes such as RecraftControls and RecraftColorRGB, users can exert precise control over color and design elements, ensuring the output meets specific aesthetic requirements. The RecraftV4TextToVectorNode is the core component that interprets text prompts and translates them into vector paths, while the SaveSVGNode ensures the final output is saved in a scalable vector graphics format. This workflow is particularly useful for designers who need to quickly prototype visual concepts or generate vector assets that can be further refined in design software.
API
Use this workflow from code
Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.
Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
// Install (beta)
npm i @comfyorg/sdk
// Run "Recraft v4: Text to Vector" (TypeScript)
import { Comfy } from "@comfyorg/sdk";
const client = new Comfy({ apiKey: "comfyui-..." });
// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("api_recraft_v4_text_to_vector_api.json");
const job = await client.run(wf);
await job.getOutputs("14")[0].toFile("output.png"); // SaveSVGNodeThe SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).
Comfy Cloud API access requires a plan with an API key.
FAQ













