API & MCP

Everything a person can do on Raster Artwork to SVG, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Raster Artwork to SVG

Upload a PNG, JPEG or WebP and trace sampled pixels into editable polygonal SVG paths. Set color count or a custom palette, switch to black and white, remove a border color and drop small regions. The file tool uploads to the server; Lumina Vector Lab uses the same engine.

Inputs of Raster Artwork to SVG
FieldTypeDefaultDescription
image (required)file—Image (PNG, JPEG or WebP; 8 MB, 16 MP maximum)
modeselect (color, mono)"color"Tracing mode
colorsnumber6Automatic color count
resolutionselect (64, 128, 256, 384, 512)"256"Longest sampled side (pixels)
thresholdnumber128Black / white threshold
alphanumber128Minimum visible alpha
minAreanumber4Drop regions smaller than this pixel count
backgroundselect (keep, border)"keep"Background
palettetext—Custom HEX palette (optional; 2–16 colors)
smoothnumber0Curve smoothing in sampled pixels (0 = exact pixel edges; 0.5–1.5)
colorEdgesbooleanfalseAlso smooth edges between colors (needs curve smoothing)

Example request

Trace a simple red image

curl -X POST https://luminarastervectorizer.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"image":{"filename":"sample.png","contentType":"image/png","contentBase64":"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAQMAAABJtOi3AAAABlBMVEX/////AADrWueTAAAAEklEQVQI12NgIBb8/09dgjgAAPcnH+GApkH4AAAAAElFTkSuQmCC"}}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "lumina-raster-vectorizer": { "type": "http", "url": "https://luminarastervectorizer.usefulweb.site/mcp" }
  }
}