HiveForge API Documentation

Quick Start

Endpoint

POST https://sapphiresc.com/api/vectorize

Authentication

Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Request

curl -X POST https://sapphiresc.com/api/vectorize \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "[email protected]" \
  -F "quality=high"

Request Parameters

ParameterTypeDescription
fileFileImage file (PNG, JPEG, TIFF, WebP)
qualityString"standard" | "high" | "photo" (default: "high")

Response

{
  "success": true,
  "svg": "<svg>...</svg>",
  "metrics": {
    "ssim": 0.97,
    "pathCount": 4521,
    "fileSize": 2456789
  }
}

Quality Presets

PresetCreditsBest For
standard3Illustrations, logos
high5Patterns, detailed graphics
photo10Photographs, gradients

OpenAPI Specification

Download the complete OpenAPI 3.0 specification:

/api/hiveforge/openapi.json