API & MCP
Everything a person can do on Photo to Animated GIF, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://luminagifmaker.usefulweb.site/api/v1/calculate– run Photo to Animated GIFGET https://luminagifmaker.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Photo to Animated GIF
Upload a ZIP of photos, choose frame dimensions, timing and fit, and download an animated GIF. A shared deterministic encoder builds an adaptive palette of up to 256 colors from your photos, with no external service.
| 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. |
width | integer | 640 | Frame width (px) |
height | integer | 480 | Frame height (px) |
delay | integer | 500 | Milliseconds per frame |
loop | boolean | true | Repeat forever |
fit | select (cover, contain) | "cover" | Photo fit |
background | text | "#ffffff" | Background (#RRGGBB) |
dither | select (none, ordered, floyd-steinberg) | "none" | Dithering. Dithering hides color steps in smooth gradients with a fine dot pattern. It is skipped when the photos have at most 256 colors. |
Example request
One-frame GIF
curl -X POST https://luminagifmaker.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"images":{"filename":"sample.png","contentType":"image/png","contentBase64":"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAQMAAABJtOi3AAAABlBMVEX/////AADrWueTAAAAEklEQVQI12NgIBb8/09dgjgAAPcnH+GApkH4AAAAAElFTkSuQmCC"},"width":32,"height":32,"delay":200}'
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://luminagifmaker.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
lumina_gif_maker - Local stdio connector:
node src/mcp-stdio.ts --tool=lumina-gif-maker
{
"mcpServers": {
"lumina-gif-maker": { "type": "http", "url": "https://luminagifmaker.usefulweb.site/mcp" }
}
}