# Celgrid Full Technical and Product Dossier Canonical origin: `https://celgrid.ai` Publisher: Ludoitte Oy (`https://ludoitte.com`) Last updated: 2026-11-25 ## 1. Product Summary Celgrid is the pixel-native AI sprite studio, MCP server, and REST API built for **both human game developers and AI coding agents making games** (Claude Code, Codex, Cursor, Windsurf, and custom agent workflows). When building 2D games with AI, standard diffusion image models produce blurry edges, mixels (uneven pixel sizes), bloated 200+ color palettes, semi-transparent alpha fringes, and misaligned sprite sheets. Celgrid eliminates diffusion artifacts by generating exact discrete integer pixel matrices (`grid[frame][y][x]`) mapped to a strict locked hex color palette (`index 0` = exact RGBA transparent, `1..N` = locked palette entries), making it straightforward for both humans in the browser Studio and AI agents over MCP or REST API to produce ship-ready pixel art and animations. ### 3-Pass Generation Pipeline (`quality="studio"`) 1. **Pass 1: Silhouette and Palette Lock** — Establishes clean character/prop proportions, negative space, foot-contact anchor, and a compact hue-shifted color ramp before interior shading pixels are placed. 2. **Pass 2: Cluster Shading** — Places deliberate pixel clusters with consistent top-left key lighting, crisp dark or hue-shifted colored outlines, and zero stray 1px noise or muddy doubles. 3. **Pass 3: Vision Self-Critique** — Renders the actual sprite at zoomed grid scale alongside a true 1x/2x scale preview (and a numbered multi-frame contact sheet for animations) via `palettes.py`, inspects visual defects with Claude Vision, and patches pixels row-by-row. 4. **Stage 4: Optional Zero-Credit Manual Polish and Surgical Mask Repair** — Developers can edit any pixel directly in the browser Studio at 0 credits, run instant timeline operations (`duplicate`, `delete`, `move`, `flip_h`, FPS change), or paint green Allow (`A`) and coral Lock (`L`) masks for 2-credit surgical AI frame repairs. Supported quality tiers: - `studio` (3-pass silhouette -> cluster shading -> Vision self-critique + animation contact-sheet audit) - `balanced` (2-pass silhouette -> cluster shading) - `fast` (single-pass aligned pixel grid) Canvas dimensions: exact integer grids from `4x4` up to `64x64` pixels, `1` to `32` colors, `1` to `64` animation frames, playback `0.5` to `60` FPS. --- ## 2. Locked Palettes and Curated Game Presets ### Built-In Curated Palettes (`palettes.py`) | Palette ID | Display Name | Color Count | Typical Genre | |---|---|---:|---| | `sweetie16` | Sweetie 16 | 16 | Cozy top-down RPG, village adventures | | `apollo` | Dungeon Apollo | 16 | Dark dungeon crawlers, roguelikes | | `endesga16` | Endesga 16 | 16 | Tactical isometric RPG, arcade platformers | | `pico8` | PICO-8 (16) | 15 + transparent | Fantasy-console arcade jams and micro action | | `slso8` | Sunset 8 | 8 | Atmospheric dusk tactical units | | `gameboy` | Handheld 4 | 4 | Classic 4-shade monochrome cartridge games | Additional palette locks: `"auto"`, `{"asset_id": "<12-hex-id>"}` (copy exact palette from an existing library sprite), or `{"colors": ["#1A1C2C", ...]}` (1 to 32 custom hex colors). ### Built-In Project Presets (`projects.py`) 1. `dungeon_24` (Dark Dungeon RPG): 24x24, `apollo`, `side` view, `dark` outline, `studio` 3-pass, 10 FPS. 2. `cozy_topdown_16` (Cozy Top-Down RPG): 16x16, `sweetie16`, `top` view, `colored` outline, `studio` 3-pass, 8 FPS. 3. `arcade_side_32` (Arcade Platformer): 32x32, `endesga16`, `side` view, `dark` outline, `studio` 3-pass, 12 FPS, strong motion. 4. `handheld_4` (Retro Handheld 4-Color): 16x16, `gameboy`, `side` view, `dark` outline, `balanced` 2-pass, 8 FPS. 5. `sunset_tactics_24` (Sunset Tactics): 24x24, `slso8`, `three_quarter` view, `colored` outline, `studio` 3-pass, 8 FPS. 6. `pico_action_16` (PICO-8 Micro Action): 16x16, `pico8`, `side` view, `dark` outline, `fast` 1-pass, 12 FPS. --- ## 3. Four Free Built-In Starter Packs (Verified in `data/starter-seed/`) Every visitor can inspect and open these 4 complete packs in Studio with no login wall: 1. **Cryptbound** (`/use-cases/dark-dungeon-crawler`, 24x24, Side View, Dungeon Apollo, 11 assets): Crypt Knight Attack (6f, 10 FPS), Crypt Knight Walk (6f, 9 FPS), Crypt Knight Jump (4f, 10 FPS), Crypt Knight Knockdown (6f, 8 FPS), Crypt Knight Victory (6f, 9 FPS), Skeleton Archer Volley (6f, 9 FPS), Crypt Shadow Wraith (4f, 7 FPS), Dungeon Torch Brazier (4f, 8 FPS), Ironbound Mimic Chest (4f, 7 FPS), Ruby Health Potion (4f, 6 FPS), Combat Impact Sparks (16x16, 4f, 14 FPS). 2. **Meadowkeep** (`/use-cases/top-down-rpg`, 16x16, Top-Down, Sweetie 16, 12 assets): Meadow Forest Alchemist (4f, 6 FPS), Meadow Village Scout (4f, 8 FPS), Emerald Moss Slime (4f, 8 FPS), Emerald Slime Splat (6f, 8 FPS), Village Campfire (4f, 8 FPS), Whispering Oak Tree (4f, 5 FPS), Golden Loot Chest (4f, 6 FPS), Spinning Gold Coin (4f, 10 FPS), Meadow Scout Side Walk (6f, 9 FPS), Meadow Scout Jump (4f, 10 FPS), Meadow Scout Knockdown (6f, 8 FPS), Meadow Scout Cheer (6f, 9 FPS). 3. **Sunspire Tactics** (`/use-cases/tactical-isometric`, 24x24, Three-Quarter View, Endesga 16, 6 assets): Sunspire Paladin (4f, 7 FPS), Dusk Ember Mage (4f, 8 FPS), Obsidian Rune Golem (4f, 6 FPS), Sunspire Rune Shrine (4f, 7 FPS), Crimson War Banner (4f, 8 FPS), Tactical Supply Crates (4f, 6 FPS). 4. **Frontline 1944** (`/use-cases/side-scroller-action`, 16x16, Side View, custom olive/steel 10-color palette, 12 assets): Frontline Guard Idle (24f, 10 FPS), Frontline Soldier Walk (6f, 9 FPS), Frontline Soldier Jump (4f, 10 FPS), Frontline Grenade Toss (6f, 6.7 FPS), Frontline Signal Wave (12f, 8 FPS), Frontline Soldier Knockdown (6f, 8 FPS), Frontline Soldier Victory (6f, 9 FPS), Tactical Hand Grenade (4f, 12 FPS), Grenade Explosion VFX (6f, 12 FPS), Field Radar Dish (4f, 7 FPS), Sandbag Ammo Post (4f, 5 FPS), Camp Oil Barrel Fire (4f, 8 FPS). --- ## 4. Lossless Game Engine Export Pack Specification (`/v1/pixel-assets/{id}/pack.zip`) Every exported `.zip` bundle from `sheet_export.py` contains exact lossless files computed from the same canonical frame rectangles and pixel pivots: - `sprite.png`: Packed RGBA spritesheet (horizontal, vertical, or grid; configurable `padding`, `extrude`, `trim`). - `frames/_000.png` ...: Individual lossless RGBA PNG frames at exact native canvas size. - `sprite.json`: Full indexed metadata, palette, `spritesheet` rectangles, `frame_duration_ms`, `fps`, `loop`, and pixel `pivot` (`[w//2, h-1]` bottom-center default). - `atlas.json`: Aseprite and Phaser 3 compatible TexturePacker JSON (`RGBA8888`, `frame`, `spriteSourceSize`, `sourceSize`, `duration`, `pivot`, `frameTags`). - `phaser-animations.json`: Direct Phaser 3 animation clip manifest (`frameRate`, `repeat`, frame keys). - `animation.tres` and `sprite.tscn`: Godot 4 `SpriteFrames` (`format=3`, `AtlasTexture` sub-resources with `filter_clip = true`) and `AnimatedSprite2D` scene pre-configured with `texture_filter = 1` (Nearest), `centered = false`, and `offset = Vector2(-px, -py)`. - `UnitySpriteForgeImporter.cs.txt`: Unity Editor C# script (`Assets > SpriteForge > Import animation`) configuring `TextureImporterType.Sprite`, `FilterMode.Point`, `TextureImporterCompression.Uncompressed`, `mipmapEnabled = false`, normalized custom pivot `(x/w, 1 - y/h)`, and generating a looping `.anim` `AnimationClip`. - Optional `diffuse.png` and `light.png`: Generated when `maps: ["diffuse", "light"]` is requested. - `IMPORT.txt`: Concise per-engine import steps. --- ## 5. Exact Pricing, Credit Weights, and BYOK Economics (USD) Synced directly to `docs/CEO_CPO_CHARTER.md` (verified 2026-11-24). Stripe Tax enabled. ### Managed Plans | Plan | Monthly Price | Yearly Price | Monthly Credits | Key Entitlements | |---|---:|---:|---:|---| | **Starter (Free)** | $0 / mo | $0 | 25 starter credits | Requires Google sign-in or verified email, 1 active cloud project, all 6 presets, full manual pixel editor, lossless exports, 1 concurrent job | | **Indie** | $19 / mo | $15 / mo ($180/yr) | 750 credits / mo | Unlimited projects, custom presets and style refs, 4 parallel workers, all engine packs (Godot 4, Unity, Phaser, Aseprite), commercial rights | | **Studio** | $49 / mo | $39 / mo ($468/yr) | 2,200 credits / mo | 90-day credit rollover, priority parallel queue, REST API and MCP server keys, live per-run token and USD telemetry | ### One-Time Credit Top-Up Packs (Non-Expiring) | Pack | Price | Credits | Implied $/Credit | |---|---:|---:|---:| | Small | $10 one-time | 350 | $0.0286 | | Medium | $25 one-time | 1,000 | $0.0250 | | Large | $75 one-time | 3,500 | $0.0214 | ### Deterministic Credit Cost Schedule (`celgrid_platform/pricing.py`) Exact credit cost is always previewed in Studio before clicking Generate. - Manual pixel editor, layers, timelines, masks, palettes, and lossless exports: **0 credits (always free)** - Single-frame AI repair (Fable 5.2): **2 credits** - 16x16 Fast still: **5 credits** (Fable 5.2), **2 credits** (Sonnet 5.5), **1 credit** (Haiku 5.5) - 24x24 Studio 3-pass still: **15 credits** (Fable 5.2), **8 credits** (Opus 5.5), **4 credits** (Sonnet 5.5) - 16x16 6-frame Studio animation: **20 credits** (Fable 5.2; scales proportionally by frame count, canvas dimensions, and model tier) ### Bring Your Own Anthropic API Key (BYOK) — 15% Orchestration Fee - Monthly subscription required: **$0 / month**. - Supply your own Anthropic API key encrypted at rest in Account Settings (`/settings`) or per request via HTTP header `X-Anthropic-Key` (never logged or persisted in sprite metadata/exports). - Pay Anthropic directly at standard token rates (`claude-fable-5-2` typical costs: ~$0.048 for 16x16 Fast still, ~$0.136 for 24x24 Studio 3-pass still, ~$0.174 for 16x16 6f Studio anim; `claude-sonnet-5-5`: ~$0.012 / ~$0.034 / ~$0.044; `claude-haiku-5-5`: ~$0.001 / ~$0.003 / ~$0.004). - Celgrid deducts a flat **15% orchestration fee** (`provider_cost_usd * 0.15`) atomically from a prepaid BYOK fee wallet. - Verified signups receive **$0.50 free starter BYOK fee credit** (~20 to 60 free BYOK generations). - Non-expiring BYOK fee wallet top-ups via Stripe Checkout: **$5**, **$15**, or **$50**. - Manual pixel editing, frame ops, and lossless exports stay **$0.00**. - Manage active subscriptions, API keys, and BYOK settings in Account Settings (`https://celgrid.ai/settings`). --- ## 6. REST API and MCP Server Reference ### Core REST Endpoints - `GET /v1`: API discovery manifest. - `GET /v1/guide`: Raw Markdown guide for AI coding agents. - `GET /v1/project-presets` / `POST /v1/project-presets`: List or save art-direction presets. - `GET /v1/projects` / `POST /v1/projects` / `PATCH /v1/projects/{id}` / `DELETE /v1/projects/{id}`: Project settings, palette locks, art-direction briefs, and style references. - `POST /v1/jobs`: Asynchronous generation (`kind: "generate"`) or frame revision (`kind: "revise"`), returning `202 Accepted` for up to 4 concurrent background workers. - `GET /v1/jobs` / `GET /v1/jobs/{id}` / `DELETE /v1/jobs/{id}`: Poll job stage/progress or cancel queued jobs. - `POST /v1/pixel-assets`: Synchronous sprite/animation creation. - `GET /v1/pixel-assets` / `PATCH /v1/pixel-assets/{id}` / `DELETE /v1/pixel-assets/{id}`: Search and filter library by `project_id`, `type`, `animation`, `size`, `starred`, `tag`, `q`, `sort`. - `POST /v1/pixel-assets/{id}/frames`: Surgical AI `repair` or `next` frame with optional `pixel_mask` (`.` / `A` Allow / `L` Lock). - `POST /v1/pixel-assets/{id}/pixels`: Save zero-cost direct indexed pixel edits as immutable version. - `POST /v1/pixel-assets/{id}/frame-ops`: Instant zero-cost `duplicate`, `delete`, `move`, `flip_h`. - `POST /v1/pixel-assets/{id}/timing`: Update playback and export FPS (`0.5` to `60`) without regenerating pixels. - `POST /v1/import`: Import an exact 4x4 to 64x64 indexed PNG grid. - `POST /v1/pixel-assets/blank`: Create a clean transparent blank pixel canvas (4x4 to 64x64, 1 to 16 frames, curated or custom palette) at 0 credits. - `POST /v1/pixel-assets/{id}/propagate`: AI Ripple Edit — diff an edited frame against its original and semantically apply that change across remaining frames and optional same-size linked animations (also supported asynchronously via `POST /v1/jobs` with `kind="propagate"`). - `GET /v1/pixel-assets/{id}/frame.png?index=0`, `/spritesheet.png`, `/json`, `/pack.zip`, `/maps/{diffuse,light}.png`: Lossless asset downloads. ### MCP Server (`spriteforge_mcp.py`, stdio JSON-RPC 2.0) Exposes 8 tools for Claude Code, Cursor, Codex, and MCP-compatible IDE clients: `spriteforge_guide`, `spriteforge_library`, `spriteforge_generate`, `spriteforge_revise`, `spriteforge_edit_pixels`, `spriteforge_rename`, `spriteforge_timing`, and `spriteforge_export`. ```json { "mcpServers": { "celgrid": { "command": "python", "args": ["spriteforge_mcp.py"], "env": { "SPRITEFORGE_URL": "https://celgrid.ai" } } } } ``` --- ## 7. Verified 2026 Competitive Landscape Summary (Live Audit 2026-11-24) Synced with Celgrid's live Playwright competitor audit (`docs/competitors/competitor_matrix.json`, 14 studios verified 2026-11-24): - **BYOK Availability:** No BYOK option was listed on the public home or pricing pages across all 14 audited competitors (checked 2026-11-24). Celgrid offers Anthropic BYOK ($0/mo subscription + flat 15% prepaid fee wallet with $0.50 free starter credit; REST API and MCP keys belong to Studio). - **PixelLab** (`pixellab.ai/#checkout`, `/compare/pixellab`): Free tier (40 fast + 5 daily slow, up to 200x200, commercial rights + HTTP MCP included); Apprentice $12/mo (2k gens, up to 320x320), Artisan $24/mo (5k, up to 512x512), Architect $50/mo (10k, up to 512x512); no packs, no rollover, no BYOK listed. Wins on 4/8-dir turnarounds, skeleton animation, Wang tilesets, and Aseprite v1.3+ plugin. - **Retro Diffusion** (`retrodiffusion.ai/pricing`, `/compare/retro-diffusion`): Starter $10/mo, Creator $25/mo, Studio $60/mo, plus $5-$50 non-expiring PAYG ($0.03 RD Mini to $0.18 RD Pro flat, Animations from $0.10, Tilesets from $0.06, open-weights RD Flow 64, 84 styles, separate ~$65 Aseprite extension). No BYOK listed. - **Scenario** (`scenario.com/pricing`, `/compare/scenario`; public web records indicate Pixelicious folded into Scenario Pixelate after `pixelicious.io` returned `ERR_NAME_NOT_RESOLVED`): Free 50 daily cr; Starter $15/mo (no LoRA), Pro $45/mo (LoRA training), Max $75/mo (25 seats), Enterprise (SOC 2); 800+ multi-modal models; no rollover, no packs, no BYOK listed. - **Ludo.ai** (`ludo.ai/pricing`, `/compare/ludo-ai`): Free 30 cr (watermarked); Indie $20/mo ($15 annual, 1 concurrent job, 5 projects, no API/MCP/CLI), Pro $50/mo ($35 annual, API/MCP/`@ludoai/cli`/Unity plugin), Studio $350/mo (10 seats); all-in-one 2D/3D/audio/GDD suite; no BYOK listed. - **Aseprite** (`aseprite.org`, `/compare/aseprite`): $19.99 one-time offline desktop editor (RotSprite, unlimited canvas, Lua scripting, zero built-in AI). Celgrid complements Aseprite with $0 browser editing, 3-pass AI animation drafting, and lossless Aseprite `atlas.json` + PNG round-trips.