Documentation

Everything you need to go vector

API reference, guides, and developer docs for converting, editing, and shipping clean SVGs with SVGFast.

API reference

Convert images to SVG over HTTP

One endpoint takes a raster image and returns clean, optimized SVG from the same fidelity-first engine that powers the site. Free API access while SVGFast is in beta.

Get your free API key
POST https://api.svgfast.com/vectorize

Authentication

Send your key in the X-Vectorize-Auth header on every request. Keys are created automatically when you sign in — grab one here. Keep it server-side; never ship a key in client code.

Request body

Send the image as multipart/form-data. Conversion options are tuned automatically during the beta — one field is all you need.

FieldTypeDescription
filefile · requiredRaster image to vectorize. PNG, JPG, WebP, AVIF, or GIF, up to 10 MB.

Responses

A successful request returns the optimized SVG document with Content-Type: image/svg+xml. Failures return JSON with a stable code you can branch on.

StatusCodeMeaning
400missing_fileNo image field in the request.
413file_too_largeImage exceeds the 10 MB limit.
415invalid_file_typeUnsupported format — use PNG, JPG, WebP, AVIF, or GIF.
503engine_unavailableEngine briefly unreachable. Retry shortly.
504engine_timeoutConversion took too long. Try a smaller image.
Error · application/json
{
  "error": {
    "code": "file_too_large",
    "message": "Image is too large. Maximum size is 10 MB."
  }
}
curl -X POST https://api.svgfast.com/vectorize \
  -H "X-Vectorize-Auth: YOUR_API_KEY" \
  -F "[email protected]" \
  -o logo.svg
200 · image/svg+xml
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
  <path d="M256 32 64 480h384z" fill="#3a86ff"/>
</svg>

Can't find what you need?

Head to support for FAQs and troubleshooting, or ask the community on GitHub.