API & MCP

Everything a person can do on Chroma Key: Green Screen to Transparent PNG, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Chroma Key: Green Screen to Transparent PNG

Removes a green, blue or any strongly coloured backing from a photo with a colour-difference keyer, un-mixes the backing colour from soft edges, suppresses spill and returns an RGBA PNG plus the matte. The screen colour is picked from the image border automatically or entered as HEX.

Inputs of Chroma Key: Green Screen to Transparent PNG
FieldTypeDefaultDescription
image (required)file—Photo in front of a screen (PNG, JPEG or WebP, up to 2 megapixels)
keytext"auto"Screen colour (HEX, or auto = median of the border)
gainnumber1Screen gain. Above 1 removes more of the screen (also from greenish foreground); below 1 keeps more.
clipBlacknumber0Clip black. Matte values below this become fully transparent (cleans noisy screens).
clipWhitenumber1Clip white. Matte values above this become fully opaque (fills holes in the subject).
spillnumber1Spill suppression
balancenumber0.5Red/blue balance. Weight of the first other channel in the colour difference (red for green and blue screens).
shrinkinteger0Shrink matte (px)
matteBlurnumber0Soften matte edge (px)

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-chroma-key": { "type": "http", "url": "https://luminachromakey.usefulweb.app/mcp" }
  }
}