API & MCP

Everything a person can do on Focus Stacking (Combine Photos Focused at Different Distances), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Focus Stacking (Combine Photos Focused at Different Distances)

Upload a ZIP of 2–5 photos of the same subject taken at different focus distances, for macro, product or landscape shots. The photos are aligned (including the small size change from refocusing), a sharpness map picks the sharpest photo for every area, and a Laplacian pyramid blends the seams. Download the result and a colour map that shows which photo each area came from. Photo Lab in Lumina runs the same engine on your device.

Inputs of Focus Stacking (Combine Photos Focused at Different Distances)
FieldTypeDefaultDescription
images (required)file—ZIP of 2–5 photos (PNG, JPEG or WebP; 12 megapixels together). All photos must have the same size. ZIP order is kept; the middle photo is the alignment reference.
alignbooleantrueAlign the photos (shift, rotation and scale)
cropbooleantrueCrop to the area every photo covers
modelselect (similarity, affine)"similarity"Alignment transform
radiusinteger4Sharpness window radius (pixels). Larger windows give calmer seams on noisy photos; smaller windows follow fine edges.
blendselect (select, weighted)"select"Blend

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-focus-stack": { "type": "http", "url": "https://luminafocusstack.usefulweb.app/mcp" }
  }
}