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

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.

Inputs of Retro Pixel Art Batch Processor
FieldTypeDefaultDescription
images (required)file—ZIP of PNG, JPEG or WebP images
widthinteger32Pixel canvas width
heightinteger32Pixel canvas height
colorsinteger16Automatic palette colors
palettetextarea—Custom HEX, GPL or JASC-PAL palette (optional)
alphainteger128Alpha threshold
scaleinteger8PNG integer scale
fitselect (stretch, contain, cover)"stretch"Image fit
ditherselect (none, bayer, bayer8, blue-noise, floyd, atkinson)"none"Dithering
strengthnumber75Dither strength (%)
brightnessnumber0Brightness
contrastnumber0Contrast
gammanumber1Gamma
saturationnumber100Saturation (%)
rednumber0Red shift (RGB units)
greennumber0Green shift (RGB units)
bluenumber0Blue 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)

{
  "mcpServers": {
    "flipline-retro-batch": { "type": "http", "url": "https://fliplineretrobatch.usefulweb.site/mcp" }
  }
}