API & MCP

Everything a person can do on Image Shape Mask & Feather, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Image Shape Mask & Feather

Upload a photo and apply a rectangular or elliptical alpha mask with adjustable bounds, inward feathering and inversion. Download a transparent PNG while preserving the original image dimensions.

Inputs of Image Shape Mask & Feather
FieldTypeDefaultDescription
image (required)file—Photo (PNG, JPEG, WebP or GIF)
shapeselect (ellipse, rect)"ellipse"Mask shape
xnumber0Mask left (%)
ynumber0Mask top (%)
widthnumber100Mask width (%)
heightnumber100Mask height (%)
feathernumber0Inward feather (normalized %)
invertbooleanfalseInvert mask

Example request

A circular transparent cutout

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

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-image-mask": { "type": "http", "url": "https://luminaimagemask.usefulweb.site/mcp" }
  }
}