---
title: "High-quality image vectorization powered by Vectorizer.AI"
method: POST
path: "/api/vectorize"
tags: ["Design & Assets"]
---

# High-quality image vectorization powered by Vectorizer.AI

`POST /api/vectorize`

## Request

- Base URL: `https://api.webbersites.com`
- URL: `https://api.webbersites.com/api/vectorize`
- Auth: API key in header `X-PAYMENT`

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.

Price: $0.02 per call, paid in USDC via the x402 protocol (see the x402 security scheme).

## Request body

- object
  - `url` string: Public URL of the raster image to vectorize (PNG, JPEG, GIF, BMP, WebP; max 10 MB)
  - `image_base64` string: Base64-encoded image as an alternative to url (data URIs accepted)
  - `output_format` string: svg (default), png, pdf, eps, or dxf
  - `mode` string: production (default, full quality), preview, or test
  - `max_colors` number: Limit the color count, 0-256 (0 = unlimited). Great for flat/logo looks
  - `palette` unknown[]: Force a specific palette: array of hex or CSS color names — output only uses these colors
    - unknown
  - `draw_style` string: fill_shapes (default), stroke_shapes, or stroke_edges (line-art outlines)
  - `group_by` string: SVG shape grouping: none (default), color, parent, or layer
  - `scale` number: Output size multiplier vs input, 0-100 (e.g. 2 = double size)
  - `min_area_px` number: Drop shapes smaller than this many pixels (0-10000) — despeckling
  - `options` object: Raw passthrough for any documented Vectorizer.AI option, e.g. {"output.gap_filler.enabled": false} — see vectorizer.ai/api

## Response `200`

Success

- object
  - `output_format` string
  - `content_type` string
  - `svg` string
  - `image_base64` string
  - `output_bytes` number

## Other responses

- `402`: Payment required — the response body lists accepted payment methods (amount, asset, network, pay-to address). Retry the request with a signed X-PAYMENT header.

---

[API](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api.md) · [All operations](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api/revisions/c14a76c67a94?raw)
