Developer API

Game asset generation, in one API call

Plug PIXAI into your game, engine plugin, or tool. One REST request returns production-ready sprites, tilesets, parallax and 3D models — export-ready for Unity, Godot and Unreal. Pay per call in $PIXAI.

Quickstart

curl
curl -X POST https://api.pixai.studio/v1/sprite \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "pixel knight in plate armor",
    "body_plan": "humanoid",
    "animation": "walk",
    "style": "pixel-32"
  }'
javascript / typescript
import { PixAI } from "@pixai/sdk";

const ig = new PixAI({ apiKey: process.env.PIXAI_KEY });

// Generate a full sprite sheet
const asset = await ig.sprite({
  prompt: "forest archer, idle + attack",
  bodyPlan: "humanoid",
  style: "pixel-32",
});

console.log(asset.sheetUrl);   // PNG spritesheet
console.log(asset.manifestUrl); // JSON frame data → Unity / Godot
response
{
  "id": "gen_8f3a...",
  "status": "succeeded",
  "type": "sprite",
  "sheetUrl": "https://cdn.pixai.studio/.../sheet.png",
  "manifestUrl": "https://cdn.pixai.studio/.../sprite.json",
  "frames": 8,
  "cost": { "usd": 2.0, "pixai": 100000, "burned": true }
}

Endpoints

POST /v1/spriteAnimated character spritesheet + JSON manifest
POST /v1/tileset13-tile autotile set + atlas
POST /v1/parallaxMulti-layer scrolling background
POST /v1/propsBatch of decoration sprites + atlas
POST /v1/modelTextured, rigged low-poly 3D model (GLB/FBX/OBJ)
GET /v1/jobs/:idPoll a generation job + fetch result URLs
1 · Get a key

Request an API key with your Solana wallet. The key is your project’s identity.

2 · Call the API

POST a prompt to any endpoint. Generation runs server-side; poll the job for result URLs.

3 · Pay per call

Each call is priced in USD and charged in $PIXAI at the live rate — 100% burned 🔥.

Build with the PIXAI API

Generation as a service — every call burns $PIXAI. Request access and start shipping assets from your own stack.

Request API access →