API documentation
Generated from the published OpenAPI. Authenticate with your dashboard key in the Authorization: Bearer header.
Vectorizza API v1.0.0
Raster to vector. Credits: test 0, preview 0.2, production 1.0, download of an unpaid preview 0.8, download of a paid token 0.
Server: https://api.vectorizza.com
POST/v1/vectorize
Vectorize an image.
API key
Body multipart/form-data
| Field | Type | Description |
|---|---|---|
imagerequired | file | PNG, JPEG or WebP image. |
mode | production | preview | test | production charges 1.0; preview charges 0.2 and watermarks; test is free and watermarks.default: production |
format | svg | pdf | eps | dxf | png | Output format. preview and test only accept svg.default: svg |
options | string | JSON object with engine options. |
Responses
200The vector file.image/svg+xml, application/pdf, application/postscript, application/dxf, image/png
- X-Credits-Charged
- Credits charged by this call.
- X-Credits-Remaining
- Credits available after this call.
- X-Download-Token
- Download token, valid for 24 hours (preview and production).
Errors
400invalid_requestinvalid_options401unauthorized402insufficient_credits413image_too_large415unsupported_image422invalid_image503engine_unavailable
Example
curl -X POST "https://api.vectorizza.com/v1/vectorize" \ -H "Authorization: Bearer $VECTORIZZA_API_KEY" \ -F "image=@image.png" \ -F "mode=production" \ -F "format=svg" \ -o "result.svg"
POST/v1/download
Exchange a download token for a clean file.
API key
Body application/json
| Field | Type | Description |
|---|---|---|
tokenrequired | string | |
format | svg | pdf | eps | dxf | png | default: svg |
Responses
200The clean vector file.image/svg+xml, application/pdf, application/postscript, application/dxf, image/png
- X-Credits-Charged
- Credits charged by this call.
- X-Credits-Remaining
- Credits available after this call.
Errors
400invalid_request401unauthorized402insufficient_credits404token_not_found503engine_unavailable
Example
curl -X POST "https://api.vectorizza.com/v1/download" \
-H "Authorization: Bearer $VECTORIZZA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"token":"<token>","format":"svg"}' \
-o "result.svg"GET/v1/account
Account balance.
API key
Responses
200The account.application/json
Errors
401unauthorized
Example
curl "https://api.vectorizza.com/v1/account" \ -H "Authorization: Bearer $VECTORIZZA_API_KEY" \ -o "result.json"
GET/v1/openapi.json
This document.
No authentication
Responses
200OpenAPI 3.1 document.
Example
curl "https://api.vectorizza.com/v1/openapi.json"