AI Sprite Pipeline API

Text to game-ready
pixel art sprites

Generate production-ready sprites from text prompts. Background removal, edge decontamination, and pixel-perfect grid reconstruction — all via a single API call.

Learn More
curl
curl -X POST https://genr.dev/api/sprites/generate \
  -H "x-api-key: genr_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "a fire-breathing dragon"}'

# Returns: { image: "base64...", passed: true, processingTimeMs: 4200 }

How It Works

A battle-tested pipeline that combines AI generation, computer vision, and pixel art algorithms for production-quality output.

1

Generate or Upload

Describe a sprite in plain text, or upload your own image. Our Gemini-powered prompt engineering uses magenta keying for perfect transparency.

2

Dual-Pass Background Removal

Magenta color-keying + BRIA RMBG neural network. Two passes catch what one misses — 97% quality pass rate.

3

Pixel Art Reconstruction

Edge-guided grid detection via autocorrelation. One clean color per cell, mathematically perfect pixel art with binary alpha.

4

Edge Decontamination

BFS distance mapping detects JPEG compression halos. Contaminated pixels are color-corrected or removed. Multi-pass until clean.

97% pass rate on 66 test sprites including transparency stress tests — doughnuts, glass bottles, crystal balls, stained glass windows.

Pricing

Start free. Scale when you need to.

Free

$0/month

10 sprites/month

  • 10 sprites/month
  • 512px max output
  • Web UI only
  • Community support

Pro

$19/month

200 sprites/month

  • 200 sprites/month
  • Full resolution output
  • API key access
  • Priority processing
  • Batch uploads

Scale

$49/month

1,000 sprites/month

  • 1,000 sprites/month
  • Full resolution output
  • API key access
  • Priority processing
  • Webhook notifications
  • $0.05/sprite overage