API & MCP

Everything a person can do on Astro Image Stacker (align & stack), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Astro Image Stacker (align & stack)

Upload a ZIP of 2–16 light frames (FITS, PNG, TIFF or JPEG, up to 1 megapixel each), optionally with darks/, flats/ and bias/ folders. The stacker builds calibration masters, detects stars, aligns frames by triangle matching, combines them with mean, median, kappa-sigma or winsorized rejection and returns a linear 32-bit FITS, a stretched 16-bit PNG and a registration report. Lumina Astro Lab runs the same pipeline for larger sessions.

Inputs of Astro Image Stacker (align & stack)
FieldTypeDefaultDescription
frames (required)file—ZIP of frames (lights; optional darks/, flats/, bias/ folders). Files inside darks/, flats/ or bias/ folders (or FITS IMAGETYP DARK, FLAT, BIAS) are used for calibration; everything else is a light frame.
methodselect (winsorized, kappa-sigma, median, mean)"winsorized"Stacking method
kappanumber3Rejection kappa (σ)
registerbooleantrueAlign frames on their stars
modelselect (similarity, affine)"similarity"Transform
interpolationselect (bicubic, bilinear)"bicubic"Resampling
weightsselect (none, noise, fwhm)"none"Frame weights
gradientinteger0Background gradient removal (polynomial degree, 0 = off)
bayerselect (auto, none, RGGB, BGGR, GRBG, GBRG)"auto"Bayer pattern of raw one-plane data
stretchselect (auto, asinh, linear)"auto"Preview stretch

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