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/vectorizeConvert a raster image to vector format.
Request Body (multipart/form-data)
file- The image file to vectorizeconfig- JSON configuration options (optional)
Response
{
"svg": "<svg>...</svg>",
"processingTime": 145
}Configuration Options
| Parameter | Type | Default | Description |
|---|---|---|---|
colorMode | string | "color" | Color mode: 'color' or 'binary' |
filterSpeckle | number | 4 | Remove speckles smaller than this size (pixels) |
colorPrecision | number | 6 | Bits per color channel (1-8) |
layerDifference | number | 16 | Color difference between layers |
cornerThreshold | number | 60 | Angle threshold for corners (degrees) |
lengthThreshold | number | 4 | Minimum path segment length |
spliceThreshold | number | 45 | Angle threshold for splicing |
mode | string | "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