ConvImg

API Documentation

Integrate vectorization into your applications with our simple REST API.

Lightning Fast

Average response time under 500ms for standard images.

Simple Integration

RESTful API with straightforward authentication.

Flexible Options

Customize output with extensive configuration options.

Quick Start

curl -X POST https://api.vectorizer.app/v1/vectorize \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F "file=@image.png" \
  -F "config={\"colorMode\":\"color\",\"filterSpeckle\":4}"

Endpoint

POST/v1/vectorize

Convert a raster image to vector format.

Request Body (multipart/form-data)

  • file - The image file to vectorize
  • config - JSON configuration options (optional)

Response

{
  "svg": "<svg>...</svg>",
  "processingTime": 145
}

Configuration Options

ParameterTypeDefaultDescription
colorModestring"color"Color mode: 'color' or 'binary'
filterSpecklenumber4Remove speckles smaller than this size (pixels)
colorPrecisionnumber6Bits per color channel (1-8)
layerDifferencenumber16Color difference between layers
cornerThresholdnumber60Angle threshold for corners (degrees)
lengthThresholdnumber4Minimum path segment length
spliceThresholdnumber45Angle threshold for splicing
modestring"spline"Path mode: 'spline', 'polygon', or 'none'

Rate Limits

Free Tier

10

requests per minute

Pro

100

requests per minute

Enterprise

Unlimited

Custom limits available