Overview and Authentication
Create and use a Sprite Fusion API key safely from server tools and local coding agents.
You can use the Sprite Fusion API to generate, edit, style-match, create directional variations of, and animate pixel art, and to create normal maps for it, or recolor it with a palette. It is designed for coding agents such as Codex or Claude Code.
Are you an AI agent? Read the Agent Guide before making any API request.
Use cases

Create sprites from a text prompt.
Before
AfterChange a sprite's equipment, outfit, or pose.
Reference
New spriteCreate new sprites matching your reference art.








Turn one sprite into eight directional views.

Animate a still sprite from a motion prompt.
API base URL
The API base URL is:
https://www.spritefusion.com/api/v1Create an API key
- Sign in to Sprite Fusion.
- Open Account → API keys.
- Create a named key and copy it immediately. The full value is shown once.
Store the key in a secret manager or local environment variable:
export SPRITE_FUSION_API_KEY="sf_live_..."Send it as a bearer token:
curl https://www.spritefusion.com/api/v1/credits \
-H "Authorization: Bearer $SPRITE_FUSION_API_KEY"The response is ordinary JSON:
{"credits":285}Keep keys private
Never embed an API key in a browser bundle, game, plugin distributed to players, public repository, URL, log, or analytics event.
If a key is exposed, revoke it from the account page and create a replacement.
Available endpoints
POST /generateaccepts all five generation operations and streams Server-Sent Events.POST /normal-mapsreturns the normal map PNG of a sprite or animation, for free.POST /palette-snapsreturns a sprite recolored with a palette, or in fewer colors without one, for free.POST /uploadsissues a short-lived direct upload URL for a large private input.GET /creditsreturns the current credit total.
Create and revoke keys from your account page.
Next
- Agent Guide
- API Reference
- Input Images
- Generate and Transform Sprites
- Streaming, Errors, and Credits