Pixel art and tilesets in Krita with AI

Updated 2026-11-28 · MCP Pro for Krita 1.0.0

Pixel art is where an AI that can only "describe" pictures usually fails: it needs exact pixels, a fixed palette and hard edges. MCP Pro for Krita gives the model tools for exactly that, and lets it look at the result with every pixel visible. This guide walks through a tileset from an empty Krita to exported PNGs.

Start from a tileset recipe or a template

One call sets up a complete tileset document:

recipe_pixel_tileset(tile_size=16, columns=8, rows=3, palette="endesga32")
Tileset document with starter tiles, checker cells and a palette row
The recipe's output (Krita 6.0.5): starter tiles for grass, dirt, stone, water, sand, brick, wood and snow, generated procedurally and snapped to Endesga 32; a locked checker Cells layer; the palette row at the bottom.

Besides the picture you get tile-grid guides, a Tiles group with Base, Details and a Shading layer in multiply mode, and the pixel-art brush selected. starter_tiles=false leaves the cells empty; seed changes the generated tiles.

For a single sprite or an animation sheet, list_templates and create_from_template offer pixel_sprite_32, pixel_sprite_animation_64 and tileset_16, or call create_document with your own size.

Pick a palette, build ramps

Sprites from text rows

Models are good at text grids, so set_pixel_rows takes one character per pixel and a palette legend:

set_pixel_rows(rows=["..kkkk..",
                     ".krrrrk.",
                     "krywwyrk",
                     "krrrrrrk",
                     ".krrrrk.",
                     "..kkkk.."],
               palette={"k": "#1a1c2c", "r": "#b13e53",
                        "y": "#ffcd75", "w": "#f4f4f4"},
               x=10, y=10, layer="Sprite")

. leaves a pixel untouched. get_pixels reads up to 64×64 pixels back in the same row format (with its own legend), so the model can edit an existing sprite line by line. put_pixels sets individual pixels by coordinate.

Hard-edged shapes, outlines, symmetry

A sprite from text rows, a pixel rectangle and ellipse, a green pixel line, mirrored
Live test output: set_pixel_rows, draw_pixel_rect, draw_pixel_ellipse, draw_pixel_line, pixel_outline, then mirror_pixels.

Seamless tiles

To check a tile for seams, paint it, then offset_layer(dx=8, dy=8, wrap=true) rolls the pixels around so the edges meet in the middle. Fix the seams there and offset back. set_guides(grid_x=16, grid_y=16) adds a guide every tile.

Look at the result

Ask the AI to call get_canvas_preview after each step. Small pixel art is upscaled with hard edges, so the model sees individual pixels instead of a blur; x, y, width and height zoom into one tile. color_stats counts unique colours, which catches stray off-palette pixels.

A useful prompt pattern: "Draw the tile, show me a preview, list anything that looks off, fix it, and show me again."

Export

Limits worth knowing

Get MCP Pro for Krita
$15 once on itch.io, free updates.

itch.io · $15

More guides