For developers
Pixel Art API
Generate pixel art sprites, animations, characters and tilesets from your own code, and remove backgrounds in bulk. Plain HTTP with an API key, priced in credits.
curl https://api.spritecook.ai/v1/api/generate-sync \-H "Authorization: Bearer sc_live_YOUR_KEY" \-H "Content-Type: application/json" \-d '{"prompt": "a medieval iron sword, side view","width": 64,"height": 64,"pixel": true,"bg_mode": "transparent"}'
{"job_id": "4a2b4ed3-...","status": "succeeded","assets": [{"id": "0b54b631-...","url": "https://api.spritecook.ai/v1/assets/0b54b631-.../content/pixel","width": 64,"height": 64}],"credits_used": 12,"credits_remaining": 488}
The sync endpoint waits for the job and returns the finished sprite. The same request works for detailed art with "pixel": false.
What the API does
These are the main endpoints, each shown with the kind of output it returns. The API docs list every parameter.
Sprites
Pixel art or detailed sprites, items, icons and UI pieces from a prompt, with a transparent background, palette limits and reference images.
- POST
/v1/ api/ generate-sync - POST
/v1/ api/ generate
Animations
Animate any sprite you made or imported from a motion prompt. Get an animated WebP, a GIF or a sprite sheet.
- POST
/v1/ api/ animate-sync - POST
/v1/ api/ animate
Characters
A character and its full move set in one workflow, for side view, top-down or isometric games.
- POST
/v1/ api/ characters - POST
/v1/ api/ characters/ {id}/ animations

Tilesets
Autotiling terrain at your tile size: 15-piece dual grid, 17-piece, platformer and isometric sets.
- POST
/v1/ api/ tilesets-sync - GET
/v1/ api/ tilesets/ options

Background removal
Transparent PNGs or animated WebPs from any image, with hard pixel edges. Outline repair runs on pixel art already in your SpriteCook account.
- POST
/v1/ api/ remove-background
Assets, jobs and credits
Import your own images, read asset metadata, poll or cancel jobs, list models and check your balance.
- POST
/v1/ api/ assets/ import - GET
/v1/ api/ jobs/ {id} - GET
/v1/ api/ credits
Pricing
API calls use the same credits as the app. Top-up credits cost $0.01 each, from $5 for 500 to $200 for 20,000. They never expire and work on any plan, including Free.
| Call | Credits | At top-up price |
|---|---|---|
| Sprite or tileset, default model | 12 | $0.12 |
| Animation | from 20 | from $0.20 |
| Background removal, image | 1 | $0.01 |
| Background removal, animation | 2 | $0.02 |
Plans add monthly credits and run more jobs at the same time: 1 on Free, 4 on Starter, 5 on Adventurer and 10 on Archmage. Running a lot of images every month? Get in touch about volume pricing and higher limits. See plans.
For AI coding agents
Building with Claude Code, Codex, Cursor or ChatGPT? The SpriteCook MCP server gives your agent the same tools without writing HTTP calls, and the plugins add skills for picking models, animating and wiring art into your engine.
Set up an agentMachine-readable docs
The full spec lives at /openapi.json, so client generators and API tools can read it directly. The API docs page can also copy the whole reference as Markdown for your agent.
Related
API reference
Every endpoint, parameter and response, with code in curl, Python and JavaScript.
Background removal API
Hard-edged cutouts for pixel art, with outline repair and a free browser tool.
Character generator
See what the character endpoints make, in the app.
AI tileset generator
The tileset endpoints, in the app, with engine exports.
Pixel art animation generator
What the animate endpoints do, in the app.
AI sprite sheet generator
Animated sprite sheets, sliced into even frames.