AI Pixel Art Generator for Game Devs
A specific kind of busywork eats indie dev time: a working mechanic and a placeholder rectangle where the art should go. You need a pixel-art knight, a few item icons, maybe a robot enemy, and each one is an hour away if you open Aseprite from scratch.
The short answer: the pixel_art preset generates game-ready sprites, characters, and item icons straight from your agent (Claude Code, Cursor, Codex CLI, or any MCP-compatible client). Ask, describe the style, get a PNG in your project. For transparent sprites, a second call strips the background locally at zero token cost.
The pixel_art preset: what it does
The pixel_art preset tells gpt-image-2 to render in a chunky, low-resolution style with visible blocky edges, the SNES-era look you know from indie titles like Celeste or Shovel Knight. (AgentBrush ships six presets: realistic, flat_illustration, pixel_art, isometric, logo, custom.)
It runs on gpt-image-2, so the model's strong instruction-following applies to pixel art: it respects color and palette cues better than older models, within the limits below.
Tokens are standard: low = 1, medium = 5, high = 20 (at 1024x1024). Background removal is always free and local.
Prompting for crisp pixel edges
Pixel art lives and dies on a clean, readable silhouette. The prompts below steer the model toward that.
A pixel-art character sprite
Start with a single character on a clean background. Describe the resolution style, the palette, and the pose.
A pixel-art warrior character in a classic RPG style. 32x32 tile scale, bold black outlines,
limited 16-color palette using deep greens, warm grays, and gold accents.
Standing idle pose, facing right, clean white background. preset: pixel_art · quality: high
The key cues are the tile scale ("32x32 tile scale") and a named palette. A reference resolution plus specific colors pulls the output toward classic-sprite constraint instead of a high-fidelity painting in mosaic style.
For multiple poses, generate each separately and change only the pose. Consistency comes from repeating the palette and scale across calls, not from session memory.
A row of item icons
Item icons are usually the most time-sensitive need. One prompt can request a whole row, which keeps the style consistent across them.
A row of five pixel-art RPG item icons on a transparent background: an iron sword, a health
potion (red), a wooden shield, a gold key, and a scroll. 16x16 tile style, clean black outlines,
warm muted palette, all icons the same visual weight. preset: pixel_art · quality: high
Asking for "the same visual weight" is the most useful instruction for a set; without it, one icon tends to dominate the frame.
An enemy or NPC robot
For a harder, more mechanical look, the model handles robots and tech characters well in pixel style.
A pixel-art robot enemy for a 2D platformer. Chunky blocky design, glowing red eyes,
heavy metallic frame with visible bolts, limited 12-color palette of grays and reds.
Idle stance, facing forward, clean white background. preset: pixel_art · quality: high
Getting a transparent sprite: the two-step workflow
A sprite on a white background is not a usable game asset, and gpt-image-2 will not reliably generate true alpha in one step. The dependable method is two steps.
Step 1: generate on a clean background. Use white, or a flat color absent from the sprite. The cleaner the background, the crisper the cut-out.
Step 2: remove the background. Have your agent call agentbrush_remove_background on the output. Local, zero tokens, always a real alpha-channel PNG.
Remove the background from the warrior sprite.
That is the whole second step. The cut-out lands as warrior-sprite-no-bg.png, ready for Godot, Unity, or GameMaker.
Pixel art's hard edges help here: the blocky silhouette is easy to trace, so you get cleaner cut-outs than from a photo of hair or glass.
Full workflow: generating transparent-background PNGs. Broader game-asset guide: AI 2D game asset generation.
Running this from inside your agent
None of this leaves your editor. AgentBrush is an MCP server, so any MCP client (Claude Code, Cursor, Codex CLI, Gemini CLI) calls it directly: you describe the asset, it appears in your project folder, and the removal call happens in the same conversation.
A full session, from inside Claude Code:
Generate a pixel-art knight character. 32x32 tile style, red and silver palette, idle pose,
facing right, white background. preset: pixel_art · quality: high · output: src/assets/knight.png
Then immediately:
Remove the background from src/assets/knight.png and save the result as knight-transparent.png.
Two messages, one asset in src/assets, cut out and ready. New to the setup? The install guide takes about two minutes.
Where this breaks down
This is not a replacement for a dedicated pixel-art tool. What the pixel_art preset does not do reliably:
No true pixel-grid snapping. The output is a 1024x1024 raster in a pixel style, not real 16x16 or 32x32 pixels on a grid. For native-resolution assets, resize and posterize in your pipeline. Downscaled in-engine the PNG looks fine for many games; for others it will not.
No exact palette lock. Describe a palette and the model leans toward it, but not to hex-exact values. If you need a strict indexed palette, quantize the output in Aseprite.
No animation frames. One prompt, one image. For a walk cycle, generate each frame separately and accept some variation; the model has no memory of "frame 2 of 4." Sprite sheets will need manual cleanup.
Style drift across calls. Fifty items matching one character's style will vary. Pass a previous sprite as a reference image to anchor the look, covered in generating consistent images from references.
Within those limits, it handles one job well: quickly generating rough-but-readable pixel assets (characters, enemies, icon sets) as a starting point, without leaving your editor.
FAQ
Is there a free AI pixel art generator? Background removal is always free and local. Generation uses tokens: 1 (low), 5 (medium), 20 (high) at 1024x1024. Plans start at $6.99/month (Starter, 100 tokens, low and medium quality; high quality on Pro and Power). There is no unlimited free tier, but one token buys a usable draft to evaluate before you commit.
Can an AI generate a sprite sheet?
Not in a single call. gpt-image-2 generates one image per call, so each frame is a separate generation. Generate the idle frame first, then reference it for the rest to hold style.
How do I get a pixel art character on a transparent background?
Generate on a white or flat background, then call agentbrush_remove_background. The removal is free, local, and outputs a real alpha-channel PNG. Two calls, one transparent sprite.
Does the pixel_art preset work for tilesets? It can (grass tiles, dungeon walls, platforms), but the grid-snapping caveat applies. Describe the perspective and tile style explicitly, and expect cleanup or resizing before they tile seamlessly.
What MCP clients work with AgentBrush? Claude Code, Cursor, Codex CLI, Gemini CLI, and any MCP-compatible client.
Want your first sprite in two minutes? Connect AgentBrush to your agent, paste any prompt above, and add a background-removal call right after. Your transparent PNG lands in your project folder before you close this tab.