post_vectorize
High-quality image vectorization powered by Vectorizer.AI: POST a public image URL or base64 (PNG/JPEG/GIF/BMP/WebP, up to 10 MB) and get a production-grade vector back — SVG by default, or PNG/PDF/EPS/DXF. Full-color tracing, clean paths, ready for print, cutting, and scaling. The premium finish for logos, icons, sketches, and raster art. ($0.02 per call, paid via x402)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public URL of the raster image to vectorize (PNG, JPEG, GIF, BMP, WebP; max 10 MB) | |
| mode | No | production (default, full quality), preview, or test | |
| scale | No | Output size multiplier vs input, 0-100 (e.g. 2 = double size) | |
| options | No | Raw passthrough for any documented Vectorizer.AI option, e.g. {"output.gap_filler.enabled": false} — see vectorizer.ai/api | |
| palette | No | Force a specific palette: array of hex or CSS color names — output only uses these colors | |
| group_by | No | SVG shape grouping: none (default), color, parent, or layer | |
| draw_style | No | fill_shapes (default), stroke_shapes, or stroke_edges (line-art outlines) | |
| max_colors | No | Limit the color count, 0-256 (0 = unlimited). Great for flat/logo looks | |
| min_area_px | No | Drop shapes smaller than this many pixels (0-10000) — despeckling | |
| image_base64 | No | Base64-encoded image as an alternative to url (data URIs accepted) | |
| output_format | No | svg (default), png, pdf, eps, or dxf |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | No | ||
| content_type | No | ||
| image_base64 | No | ||
| output_bytes | No | ||
| output_format | No |