API & MCP

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

HTTP API

Binary Silhouette to SVG

Paste rows of 0 and 1 to produce genuine SVG paths for masks, icons, pixel silhouettes and agent-generated artwork. Four-connected shapes stay separate and transparent holes remain open. No image upload is needed.

Inputs of Binary Silhouette to SVG
FieldTypeDefaultDescription
grid (required)textarea"0011100\n0111110\n1100011\n1100011\n0111110\n0011100"Binary grid (1 = filled, 0 = transparent)
filltext"#164E63"Fill color (six-digit HEX)
smoothnumber0Curve smoothing in sampled pixels (0 = exact pixel edges; 0.5–1.5)

Example request

Ring with a transparent hole

curl -X POST https://luminasilhouettetracer.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"grid":"111\n101\n111","fill":"#164E63"}'

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-silhouette-tracer": { "type": "http", "url": "https://luminasilhouettetracer.usefulweb.site/mcp" }
  }
}