PixelForge
v0.3.0Forge pixel art sprites, animations, tilesets and game assets with Google Gemini.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
forge_sprite
Generate a single pixel art sprite. Handles prompt engineering, generation via Gemini, and post-processing (crop, background removal, pixelation downscale, square padding) automatically. Returns a clean, transparent PNG at proper pixel art resolution. Output size snaps to standard pixel art sizes (16, 24, 32, 48, 64, 96, 128).
| Parameter | Type | Description |
|---|---|---|
description * | string | What the sprite is (e.g. "green slime enemy with horns", "cyan spaceship", "golden coin") |
outputPath * | string | Output file path (e.g. "public/assets/games/rpg/slime.png") |
aspect | string | Aspect ratio (default: 1:1) |
background | string | Background color for generation. Use "auto" to pick based on description. Use "chromakey" for best transparency (HSV-based green screen removal). Named colors: chromakey, forest, sky, dungeon, lava, o… |
model | string | Model alias or full ID. Aliases: 25, nano-banana, banana, banana-2, nano-banana-2, gemini-flash, flash, gemini-pro, pro, gemini-25, gemini-flash-25 (default: nano-banana) |
references | array | Paths to existing PNG/JPEG assets to match visual style. |
size | number | Target sprite size in pixels (default: 48). Snaps to nearest standard size. Recommended: 16-24 for icons/projectiles/powerups, 32 for tiles/small sprites, 48 for game sprites/characters (PixelLab defa… |
square | boolean | Pad output to square (default: true) |
style | string | Visual style preset (default: clean) |
forge_animation
Generate pixel art animation frames. Produces a sprite sheet via Gemini, then automatically splits it into individual frame PNGs with background removal and cropping. Returns an array of ready-to-use frame files.
| Parameter | Type | Description |
|---|---|---|
action * | string | What the animation shows (e.g. "bouncing up and down", "walking cycle", "idle breathing") |
description * | string | What is being animated (e.g. "green slime enemy", "player knight") |
outputPrefix * | string | Output path prefix — frames saved as {prefix}-{name}.png (e.g. "public/assets/games/rpg/slime") |
background | string | Background color for generation. Use "auto" to pick based on description. Use "chromakey" for best transparency (HSV-based green screen removal). Named colors: chromakey, forest, sky, dungeon, lava, o… |
frameDescriptions | array | Optional per-frame descriptions (e.g. ["compressed flat", "stretching up", "at peak"]) |
frames | number | Number of animation frames (default: 3) |
model | string | Model alias or full ID. Aliases: 25, nano-banana, banana, banana-2, nano-banana-2, gemini-flash, flash, gemini-pro, pro, gemini-25, gemini-flash-25 (default: nano-banana) |
names | array | Frame names (default: frame-0, frame-1, ...) |
references | array | Paths to existing PNG/JPEG assets to match visual style. The animation frames will be generated in a similar art style, color palette, and detail level as the reference images. |
size | number | Target frame size in pixels (default: 48). Snaps to nearest standard size. Recommended: 16-24 for particle effects/small FX, 32 for item animations, 48 for character animations (PixelLab default), 64… |
square | boolean | Pad each frame to square (default: true) |
style | string | Visual style preset (default: clean) |
useReferenceChain | boolean | Generate each frame individually using the first frame as style reference (default: true). Produces much more consistent animations than sprite sheet splitting. Each frame is a separate API call with… |
useTemplate | boolean | Use grid template reference for precise frame placement (default: false). When true, generates a numbered grid template and sends it as a reference image for more consistent frame splitting. |
forge_background
Generate a pixel art game background. No post-processing — outputs the full image as-is, ready for use as a game scene background. Use appropriate aspect ratio for your game resolution.
| Parameter | Type | Description |
|---|---|---|
aspect * | string | Aspect ratio matching your game resolution (e.g. 3:4 for 480x640 portrait game) |
description * | string | Background scene description (e.g. "deep space with stars and nebula", "forest clearing at night") |
outputPath * | string | Output file path (e.g. "public/assets/games/invaders/bg.png") |
model | string | Model alias or full ID. Aliases: 25, nano-banana, banana, banana-2, nano-banana-2, gemini-flash, flash, gemini-pro, pro, gemini-25, gemini-flash-25 (default: nano-banana) |
style | string | Visual style preset (default: clean) |
forge_thumbnail
Generate a pixel art game thumbnail/screenshot. Use reference images to match the visual style of actual in-game sprites. Best for store listings, game cards, and preview images.
| Parameter | Type | Description |
|---|---|---|
description * | string | Scene description (e.g. "space shooter, cyan spaceship vs rows of colorful aliens, dark space") |
outputPath * | string | Output file path (e.g. "public/assets/games/invaders/thumbnail.png") |
aspect | string | Aspect ratio (default: 4:3) |
model | string | Model alias or full ID. Aliases: 25, nano-banana, banana, banana-2, nano-banana-2, gemini-flash, flash, gemini-pro, pro, gemini-25, gemini-flash-25 (default: nano-banana) |
references | array | Paths to actual game sprite PNGs — STRONGLY RECOMMENDED. The thumbnail will visually match these assets so the preview looks like the real game. Pass the main character, enemies, and key objects. |
style | string | Visual style preset (default: clean) |
forge_tileset
Generate a seamless tileable pixel art texture. Produces a square texture that tiles seamlessly in all directions — ideal for terrain, floors, walls, and backgrounds. No background removal is applied; the texture fills the entire canvas.
| Parameter | Type | Description |
|---|---|---|
description * | string | What the texture is (e.g. "grass terrain", "stone brick wall", "wooden floor planks", "water surface") |
outputPath * | string | Output file path (e.g. "public/assets/tiles/grass.png") |
model | string | Model alias or full ID. Aliases: 25, nano-banana, banana, banana-2, nano-banana-2, gemini-flash, flash, gemini-pro, pro, gemini-25, gemini-flash-25 (default: nano-banana) |
size | number | Target texture size in pixels (default: 32). Snaps to nearest standard size. Common: 16 for retro, 32 for standard, 64 for detailed. |
style | string | Visual style preset (default: clean) |
forge_item_kit
Generate multiple pixel art sprites in a single batch. Items are generated together on a grid for visual consistency, then split into individual PNGs. Ideal for item sets, inventory icons, collectibles, or any group of related sprites.
| Parameter | Type | Description |
|---|---|---|
items * | array | List of item descriptions (max 16). E.g. ["red apple", "banana", "cherry", "grapes"] |
outputPrefix * | string | Output path prefix — items saved as {prefix}-{name}.png (e.g. "public/assets/items/fruit") |
background | string | Background color for generation. Use "auto" to pick based on items. (default: black) |
model | string | Model alias or full ID. Aliases: 25, nano-banana, banana, banana-2, nano-banana-2, gemini-flash, flash, gemini-pro, pro, gemini-25, gemini-flash-25 (default: nano-banana) |
names | array | Custom file names for each item (default: item-0, item-1, ...) |
references | array | Paths to existing PNG/JPEG assets to match visual style. |
size | number | Target sprite size in pixels (default: 48). Snaps to nearest standard size. |
square | boolean | Pad each item to square (default: true) |
style | string | Visual style preset (default: clean) |
process_sprite
Post-process an existing PNG image into a clean sprite. Handles background removal, auto-crop, square padding, and sprite sheet splitting. Use this for images from external sources that need processing.
| Parameter | Type | Description |
|---|---|---|
inputPath * | string | Path to the input PNG file |
names | array | Names for split sprites (default: 0, 1, 2, ...) |
outputPath | string | Output path. For split mode: prefix for frame files (e.g. "assets/snake" → "assets/snake-head.png") |
padding | number | Padding around content in pixels (default: 2) |
skipCrop | boolean | Skip auto-crop step |
skipTransparent | boolean | Skip background removal step |
split | boolean | Split sprite sheet into individual sprites by detecting content boundaries |
square | boolean | Pad output to square (default: false) |
threshold | number | Color detection threshold 0-255 (default: 20) |
optimize_sprite
Optimize an existing sprite PNG for pixel art games. Downscales large AI-generated sprites to proper pixel art resolution using area-averaging (not blurry bilinear). Also optionally removes background and crops. Use this to convert oversized "pixel art style" images into true pixel art at game-ready sizes.
| Parameter | Type | Description |
|---|---|---|
inputPath * | string | Path to the input PNG file |
size * | number | Target size in pixels for the longest side. Snaps to nearest standard size (16, 24, 32, 48, 64, 96, 128). Recommended: 16-24 for icons/particles, 32 for tiles, 48 for sprites, 64 for characters, 96-12… |
outputPath | string | Output path (default: overwrites input) |
removeBackground | boolean | Auto-detect and remove background color (default: true) |
square | boolean | Pad output to square (default: false) |