Developers
Use SpriteForge from your own tools and coding assistants.
Before you start
- The API and the MCP server are included with the Starter and Pro plans.
- Create a key under Account → API keys. It is shown once, so copy it then.
- A key acts as you and spends your credits. Keep it out of web pages, apps you ship and public repositories.
- Animations use your plan credits first, then pack credits. Building a sprite sheet is free.
- When you animate an image, it and your motion prompt are sent to our AI video provider, as in the studio. See which providers.
The REST API
Base URL: https://spriteforge.live/api/v1. Send your key in the x-api-key header.
1. Upload a character image
A PNG of one character, up to 4 MB, in side view. A transparent or plain background works best.
curl -X POST https://spriteforge.live/api/v1/images \
-H "x-api-key: $SPRITEFORGE_KEY" \
-H "Content-Type: image/png" \
--data-binary @knight.png
{ "id": "0b8f…", "width": 512, "height": 512 }
2. Start an animation
Give a ready-made motion, your own prompt, or both. tier is turbo (2 seconds, 5 credits) or pro (4 seconds, 10 credits).
curl -X POST https://spriteforge.live/api/v1/animations \
-H "x-api-key: $SPRITEFORGE_KEY" \
-H "Content-Type: application/json" \
-d '{"imageId": "0b8f…", "motion": "walk", "tier": "turbo"}'
{ "id": "7c21…", "status": "queued", "tier": "turbo", "credits": 5, "requestId": "…" }
To retry safely after a network error, send the same requestId (a UUID) again: you get the animation it already started, and you are not charged twice. One animation runs at a time for each account.
3. Wait for it
Ask every 10 to 15 seconds. An animation usually takes under a minute.
curl https://spriteforge.live/api/v1/animations/7c21… \
-H "x-api-key: $SPRITEFORGE_KEY"
| Status | Meaning |
|---|---|
queued | Waiting to start. |
running | Being made. |
succeeded | Ready. You can download the sprite sheet. |
failed | Could not be made. Its credits were returned. |
review | Needs a check on our side. Its credits are held; contact us if it stays this way. |
4. Download the sprite sheet
The sheet has 25 frames of 256 × 256 pixels in 5 columns, spread across the whole animation, on a transparent background.
curl https://spriteforge.live/api/v1/animations/7c21…/spritesheet \
-H "x-api-key: $SPRITEFORGE_KEY" -o spritesheet.png
The layout is in the response headers (X-Sprite-Frames, X-Sprite-Columns, X-Sprite-Rows, X-Sprite-Frame-Width, X-Sprite-Frame-Height, X-Sprite-Fps). Add ?format=json to get the image as base64 together with a JSON atlas of every frame, or ?background=keep to keep the grey backdrop.
All routes
| Route | What it does |
|---|---|
GET /account | Your credits and the quality tiers. |
GET /motions | The ready-made motions. |
POST /images | Upload a character PNG. |
POST /animations | Start an animation. |
GET /animations | Your 20 most recent animations. |
GET /animations/:id | One animation's status. |
GET /animations/:id/spritesheet | Its sprite sheet. |
Errors
Every error has the same shape, with a code you can test for and a message for people:
{ "error": { "code": "INSUFFICIENT_CREDITS", "message": "This animation needs 5 credits. …" } }
| Status | Code | Meaning |
|---|---|---|
| 400 | INVALID_REQUEST, INVALID_IMAGE, UNKNOWN_MOTION, UNKNOWN_TIER | Something in the request is wrong. |
| 401 | UNAUTHORIZED | The key is missing, revoked or not valid. |
| 402 | INSUFFICIENT_CREDITS, BILLING_REVIEW | Not enough credits, or billing needs attention. |
| 403 | PLAN_REQUIRED | The account is not on a paid plan. |
| 404 | NOT_FOUND | No such image or animation on your account. |
| 409 | CONFLICT, NOT_READY | Another animation is running, or this one is not finished. |
| 413 | TOO_LARGE | The image is over 4 MB. |
| 429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
| 503 | UNAVAILABLE, PAUSED | Try again later. Nothing was charged. |
The MCP server
The MCP server lets a coding assistant such as Claude Code, Cursor or Codex create sprite sheets for you while you work. It offers the same actions as the API.
- Address:
https://spriteforge.live/api/mcp(Streamable HTTP). - Sign-in: your API key as a bearer token.
Claude Code
claude mcp add --transport http spriteforge https://spriteforge.live/api/mcp \
--header "Authorization: Bearer $SPRITEFORGE_KEY"
Check it with claude mcp list: the server should show as connected.
Other assistants
Add a remote (HTTP) MCP server with this configuration. Keep the type line: without it, some assistants treat the entry as a local program and skip it.
{
"mcpServers": {
"spriteforge": {
"type": "http",
"url": "https://spriteforge.live/api/mcp",
"headers": { "Authorization": "Bearer YOUR_KEY" }
}
}
}
Tools
| Tool | What it does |
|---|---|
get_account | Credits and quality tiers. |
list_motions | The ready-made motions. |
upload_image | Upload a character PNG (base64). |
create_animation | Start an animation. This spends credits. |
get_animation | Check an animation's status. |
get_spritesheet | The sprite sheet image and its atlas. |
Then ask your assistant, for example: “Animate art/knight.png walking with SpriteForge and save the sprite sheet in assets/.”