Back to tools
Veclify API
REST API — 图片上传,返回高质量 SVG 矢量化结果。集成到你的工作流只需几分钟。
Bearer Token Authentication
API Key 通过 Authorization header 传递
Low Latency Processing
平均处理时间 < 2s,支持批量并发
RESTful
标准 JSON 响应,任何语言均可调用
API 端点
POST
/api/v1/vectorize上传图片并获取 SVG 矢量化结果。
Request Headers
| Request Header | Type | API documentation |
|---|---|---|
| Authorization | string | Bearer <API_KEY> |
| Content-Type | string | multipart/form-data |
Request Body
| Body field | Type | 说明 |
|---|---|---|
| image | File | PNG / JPG / WebP,最大 10MB |
200 OK
{
"id": "vec_abc123",
"svg": "<svg ...>...</svg>",
"width": 800,
"height": 600,
"node_count": 1542,
"processing_time_ms": 1234
}Error response
| Status code | 说明 |
|---|---|
| 401 | Unauthorized, please check your API key |
| 429 | Too many requests, please try again later |
| 503 | Service temporarily unavailable |
GET
/api/v1/result/:idGet result endpoint
Path Parameters
| Parameter | 说明 |
|---|---|
| id | Parameter Description |
200 OK
{
"id": "vec_abc123",
"svg": "<svg ...>...</svg>",
"width": 800,
"height": 600,
"node_count": 1542,
"processing_time_ms": 1234,
"created_at": "2026-06-27T12:00:00Z"
}Rate Limits
Free
5 次/天
Recommended
Pro
100 次/天
$9.99/月
Team
500 次/天
$29.99/月
Pricing
50 credits
$2.99
200 credits
$9.99
推荐
500 credits
$19.99
Code examples
curl
curl -X POST https://veclify.com/api/v1/vectorize \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "[email protected]" \
-o output.svgPython
import requests
url = "https://veclify.com/api/v1/vectorize"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
with open("input.png", "rb") as f:
response = requests.post(url, headers=headers, files={"image": f})
data = response.json()
with open("output.svg", "w") as f:
f.write(data["svg"])
print(f"Nodes: {data['node_count']}, Time: {data['processing_time_ms']}ms")JavaScript
const form = new FormData();
form.append("image", file);
const res = await fetch("https://veclify.com/api/v1/vectorize", {
method: "POST",
headers: { Authorization: "Bearer YOUR_API_KEY" },
body: form,
});
const data = await res.json();
// data.svg, data.node_count, data.width, data.height, data.processing_time_ms