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
POST https://fliplinepixelquantizer.usefulweb.site/api/v1/calculate– run Pixel Art Image ConverterGET https://fliplinepixelquantizer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
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.
| Field | Type | Default | Description |
|---|---|---|---|
image (required) | file | — | Image (PNG, JPEG or WebP) |
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
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)
- Streamable HTTP endpoint:
https://fliplinepixelquantizer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
flipline_pixel_quantizer - Local stdio connector:
node src/mcp-stdio.ts --tool=flipline-pixel-quantizer
{
"mcpServers": {
"flipline-pixel-quantizer": { "type": "http", "url": "https://fliplinepixelquantizer.usefulweb.site/mcp" }
}
}