API & MCP

Everything a person can do on Photo Collage & Image Joiner, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Photo Collage & Image Joiner

Upload photos in a ZIP to compose a collage, a contact-sheet grid, or a continuous horizontal or vertical strip. Control spacing, margins, fit and background, then download a PNG, JPEG or WebP.

Inputs of Photo Collage & Image Joiner
FieldTypeDefaultDescription
images (required)file—Photo or ZIP of photos. Up to 24 PNG, JPEG, WebP or GIF images (first frame). ZIP order is preserved. Decoded total: 32 MP; each photo: 16 MP.
modeselect (grid, contact, horizontal, vertical)"grid"Layout
widthinteger1600Canvas width (px)
heightinteger1200Grid height (px; joins calculate this)
columnsinteger3Grid columns
gapinteger16Gap (px)
margininteger24Margin (px)
fitselect (cover, contain)"cover"Photo fit
backgroundtext"#ffffff"Background (#RRGGBB)
formatselect (png, jpeg, webp)"png"Output

Example request

Single-image gallery canvas

curl -X POST https://luminaphotolayout.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"images":{"filename":"sample.png","contentType":"image/png","contentBase64":"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAQMAAABJtOi3AAAABlBMVEX/////AADrWueTAAAAEklEQVQI12NgIBb8/09dgjgAAPcnH+GApkH4AAAAAElFTkSuQmCC"},"width":320,"height":240,"gap":8,"margin":16,"columns":2,"mode":"grid"}'

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