API & MCP

Everything a person can do on Vector Shape Generator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Vector Shape Generator

Create a transparent SVG shape with adjustable points, rotation, colors and stroke. Download the artwork or import it into Flipline Motion Desk for animation.

Inputs of Vector Shape Generator
FieldTypeDefaultDescription
kindselect (polygon, star, spiral)"star"Shape
sizeinteger512Canvas size (px)
pointsinteger5Points (polygon and star)
innerRadiusnumber0.45Star inner radius (fraction)
turnsnumber3Spiral turns
rotationnumber0Rotation (degrees)
filltext"#E5AA4F"Fill (six-digit HEX or none)
stroketext"#253C3A"Stroke (six-digit HEX or none)
strokeWidthnumber8Stroke width (px)

Example request

Five-point star

curl -X POST https://luminavectorshapegenerator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"kind":"star","size":512,"points":5,"innerRadius":0.45,"turns":3,"rotation":0,"fill":"#E5AA4F","stroke":"#253C3A","strokeWidth":8}'

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-vector-shape-generator": { "type": "http", "url": "https://luminavectorshapegenerator.usefulweb.site/mcp" }
  }
}