Documentation
RESTful API for converting raster images to SVG. Returns optimized vector paths.
weavstudio.goldgroove06.xyzv1SVGAuthentication
All requests require Bearer token authentication. Generate API keys in the dashboard.
Authorization: Bearer YOUR_API_KEYNever expose API keys in client code or public repositories. Rotate keys if compromised.
Endpoint
/api/vectorizeConvert raster images to SVG using contour detection algorithms.
https://weavstudio.goldgroove06.xyz/api/vectorizeParameters
urlREQUIREDstringPublicly accessible URL of the image to vectorize.
solverOPTIONALintegerdefault: 0Solver type: 0 (Binary) or 1 (Color).
color_countOPTIONALintegerdefault: 8Number of colors to use in the output SVG (1-256, only for color solver).
rawOPTIONALbooleandefault: falseReturn raw SVG (true) or optimized SVG (false).
crop_boxOPTIONALarraydefault: nullRegion to crop [x1, y1, x2, y2]. Useful for extracting specific parts of an image.
"crop_box": [100, 50, 400, 300]presetOPTIONALstringdefault: nullQuality preset: "draft", "balanced", "high", or "ultra".
auto_optimizeOPTIONALbooleandefault: trueEnable automatic optimization of the vectorization process.
use_cacheOPTIONALbooleandefault: trueUse cached results if available for faster processing.
svg_optimizationOPTIONALstringdefault: "medium"SVG optimization level: "none", "medium", or "high".
Code Examples
curl -X POST https://weavstudio.goldgroove06.xyz/api/vectorize \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/image.png",
"solver": 1,
"color_count": 12,
"preset": "balanced",
"svg_optimization": "medium",
"raw": false
}'Response
When raw=false (default), returns JSON with SVG and metadata. 1 credit is deducted.
{
"success": true,
"timestamp": "2026-02-04T12:30:00.000Z",
"data": {
"job_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "completed",
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\"...",
"metadata": {
"bounds": [0, 0, 800, 600],
"image_width": 800,
"image_height": 600,
"solver": 1,
"color_count": 12,
"svg_size_bytes": 15420,
"path_count": 45,
"input_dimensions": "1920x1080",
"estimated_input_colors": 256
},
"timings": {
"Image Reading": 0.234,
"Color Solver": 1.456,
"SVG Markup": 0.089,
"SVG Optimization": 0.045
}
}
}When raw=true, returns SVG content as plain text without JSON wrapper.
Content-Type: image/svg+xml
<svg xmlns="http://www.w3.org/2000/svg" ...>
<path d="M..." fill="#..." />
...
</svg>Error Codes
400401402413429500Rate Limits
Pricing
- —Batch processing (multiple images per request)
- —Webhook support for async processing
- —Additional output formats (PDF, EPS)