HiveForge API Documentation
Quick Start
Endpoint
POST https://sapphiresc.com/api/vectorizeAuthentication
Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEYRequest
curl -X POST https://sapphiresc.com/api/vectorize \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "[email protected]" \ -F "quality=high"
Request Parameters
| Parameter | Type | Description |
|---|---|---|
file | File | Image file (PNG, JPEG, TIFF, WebP) |
quality | String | "standard" | "high" | "photo" (default: "high") |
Response
{
"success": true,
"svg": "<svg>...</svg>",
"metrics": {
"ssim": 0.97,
"pathCount": 4521,
"fileSize": 2456789
}
}Quality Presets
| Preset | Credits | Best For |
|---|---|---|
| standard | 3 | Illustrations, logos |
| high | 5 | Patterns, detailed graphics |
| photo | 10 | Photographs, gradients |
OpenAPI Specification
Download the complete OpenAPI 3.0 specification: