API & MCP
Everything a person can do on Retro Pixel Art Batch Processor, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://fliplineretrobatch.usefulweb.site/api/v1/calculate– run Retro Pixel Art Batch ProcessorGET https://fliplineretrobatch.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Retro Pixel Art Batch Processor
Convert up to eight images into consistent pixel-art assets with shared colors, dithering and adjustments. Download PNGs, editable pixel projects and the resolved recipe in one ZIP.
| Field | Type | Default | Description |
|---|---|---|---|
images (required) | file | — | ZIP of PNG, JPEG or WebP images |
width | integer | 32 | Pixel canvas width |
height | integer | 32 | Pixel canvas height |
colors | integer | 16 | Automatic palette colors |
palette | textarea | — | Custom HEX, GPL or JASC-PAL palette (optional) |
alpha | integer | 128 | Alpha threshold |
scale | integer | 8 | PNG integer scale |
fit | select (stretch, contain, cover) | "stretch" | Image fit |
dither | select (none, bayer, bayer8, blue-noise, floyd, atkinson) | "none" | Dithering |
strength | number | 75 | Dither strength (%) |
brightness | number | 0 | Brightness |
contrast | number | 0 | Contrast |
gamma | number | 1 | Gamma |
saturation | number | 100 | Saturation (%) |
red | number | 0 | Red shift (RGB units) |
green | number | 0 | Green shift (RGB units) |
blue | number | 0 | Blue shift (RGB units) |
Example request
Two sprites with one moss palette
curl -X POST https://fliplineretrobatch.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"images":{"filename":"images.zip","contentType":"application/zip","contentBase64":"UEsDBBQAAAgAAAAAIQATAmpkXQAAAF0AAAAHAAAAb25lLnBuZ4lQTkcNChoKAAAADUlIRFIAAAAgAAAAIAEDAAAASbTotwAAAAZQTFRF/////wAA61rnkwAAABJJREFUCNdjYCAW/P9PXYI4AAD3Jx/hgKZB+AAAAABJRU5ErkJgglBLAwQUAAAIAAAAACEAEwJqZF0AAABdAAAABwAAAHR3by5wbmeJUE5HDQoaCgAAAA1JSERSAAAAIAAAACABAwAAAEm06LcAAAAGUExURf////8AAOta55MAAAASSURBVAjXY2AgFvz/T12COAAA9ycf4YCmQfgAAAAASUVORK5CYIJQSwECFAAUAAAIAAAAACEAEwJqZF0AAABdAAAABwAAAAAAAAAAAAAAAAAAAAAAb25lLnBuZ1BLAQIUABQAAAgAAAAAIQATAmpkXQAAAF0AAAAHAAAAAAAAAAAAAAAAAIIAAAB0d28ucG5nUEsFBgAAAAACAAIAagAAAAQBAAAAAA=="},"width":8,"height":8,"scale":2,"palette":"#172c2f,#416350,#93ab69,#e3e6b1","dither":"bayer"}'
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://fliplineretrobatch.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
flipline_retro_batch - Local stdio connector:
node src/mcp-stdio.ts --tool=flipline-retro-batch
{
"mcpServers": {
"flipline-retro-batch": { "type": "http", "url": "https://fliplineretrobatch.usefulweb.site/mcp" }
}
}