Model Details
Recraft Vectorize converts an existing raster image — a PNG, JPG, or WEBP logo, icon, sketch, or illustration — into a true vector SVG with clean paths and flat color regions. You supply one source image via `image_url` and it returns a single `.svg` file you can scale to any size, recolor, or edit in vector tools without quality loss. Its strength is faithfully retracing crisp, graphic artwork (logos, line art, simple illustrations) into editable vector geometry rather than re-imagining the image.
## Best for - Turning a flat or pixelated logo into a clean, resolution-independent SVG for print and web - Recovering an editable vector version of an icon or wordmark you only have as a raster - Vectorizing hand-drawn or scanned sketches and line art into scalable paths - Producing scalable brand assets from existing raster graphics
## Choose another model when - You want to generate a new image or vector graphic from a text prompt rather than convert an existing one — use a text-to-image model with vector styles - You need to edit, restyle, or recolor a photo while keeping it raster — use an image-editing model - Your source is a detailed photograph (faces, landscapes, gradients) — vectorization works best on flat, graphic artwork and will not faithfully trace photographic detail
## Tips - Provide the cleanest, highest-contrast source you have: vectorization tracks edges, so crisp line art and flat color regions trace far better than noisy or compressed images - The source must be PNG, JPG, or WEBP, under 5 MB, under 16 MP, with the longest side under 4096 px and the shortest side over 256 px - Output is always a single SVG file (`image/svg+xml`); open it in any vector editor to recolor or reshape paths
## Limitations - Photographs, soft gradients, and fine textures lose fidelity — the result is a graphic approximation, not a pixel-accurate trace - Very intricate artwork can produce dense, hard-to-edit path geometry
To run via the ModelRunner JavaScript client: ```js import { modelrunner } from "@modelrunner/client";
const result = await modelrunner.subscribe("recraft/vectorize", { input: { image_url: "https://media.modelrunner.ai/q6Ld6hF6jlp3cXSp-vectorize-simple.jpg", }, }); ```



