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

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.

Inputs of Photo to Animated GIF
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.
widthinteger640Frame width (px)
heightinteger480Frame height (px)
delayinteger500Milliseconds per frame
loopbooleantrueRepeat forever
fitselect (cover, contain)"cover"Photo fit
backgroundtext"#ffffff"Background (#RRGGBB)
ditherselect (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)

{
  "mcpServers": {
    "lumina-gif-maker": { "type": "http", "url": "https://luminagifmaker.usefulweb.site/mcp" }
  }
}