Pixel Art Generator
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. 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.
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 /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