API & MCP

Everything a person can do on Pixel Art Image Converter, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Pixel Art Image Converter

Resize a photo or drawing, adjust its colors, and apply an automatic or imported palette with ordered or error-diffusion dithering. Download a transparent PNG, editable pixel sprite and reusable recipe.

Inputs of Pixel Art Image Converter
FieldTypeDefaultDescription
image (required)file—Image (PNG, JPEG or WebP)
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

A small red pixel sprite

curl -X POST https://fliplinepixelquantizer.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"image":{"filename":"red.png","contentType":"image/png","contentBase64":"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAQMAAABJtOi3AAAABlBMVEX/////AADrWueTAAAAEklEQVQI12NgIBb8/09dgjgAAPcnH+GApkH4AAAAAElFTkSuQmCC"},"width":8,"height":8,"colors":4,"scale":4}'

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-pixel-quantizer": { "type": "http", "url": "https://fliplinepixelquantizer.usefulweb.site/mcp" }
  }
}