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
POST https://luminaphotolayout.usefulweb.site/api/v1/calculate– run Photo Collage & Image JoinerGET https://luminaphotolayout.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
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.
| Field | Type | Default | Description |
|---|---|---|---|
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. |
mode | select (grid, contact, horizontal, vertical) | "grid" | Layout |
width | integer | 1600 | Canvas width (px) |
height | integer | 1200 | Grid height (px; joins calculate this) |
columns | integer | 3 | Grid columns |
gap | integer | 16 | Gap (px) |
margin | integer | 24 | Margin (px) |
fit | select (cover, contain) | "cover" | Photo fit |
background | text | "#ffffff" | Background (#RRGGBB) |
format | select (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)
- Streamable HTTP endpoint:
https://luminaphotolayout.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
lumina_photo_layout - Local stdio connector:
node src/mcp-stdio.ts --tool=lumina-photo-layout
{
"mcpServers": {
"lumina-photo-layout": { "type": "http", "url": "https://luminaphotolayout.usefulweb.site/mcp" }
}
}