Sprite FusionSprite Fusion
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, 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

Generated pixel art mecha-plant demo sprite
Generate

Create sprites from a text prompt.

Armored pixel art character holding a hammer before editingBefore
The same armored character now holding a gatling gunAfter
Edit

Change a sprite's equipment, outfit, or pose.

Orange and blue alien weapon used as a style referenceReference
New alien pistol with the reference weapon's palette and pixel art styleNew sprite
Style reference

Create new sprites matching your reference art.

Northwest-facing wizardNorth-facing wizardNortheast-facing wizardWest-facing wizardEast-facing wizardSouthwest-facing wizardSouth-facing wizardSoutheast-facing wizard
8 directions

Turn one sprite into eight directional views.

Blue-robed wizard sprite in a walking animation
Animate

Animate a still sprite from a motion prompt.

API base URL

The API base URL is:

https://www.spritefusion.com/api/v1

Create an API key

  1. Sign in to Sprite Fusion.
  2. Open Account → API keys.
  3. 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 /generate accepts all five generation operations and streams Server-Sent Events.
  • POST /normal-maps returns the normal map PNG of a sprite or animation, for free.
  • POST /palette-snaps returns a sprite recolored with a palette, or in fewer colors without one, for free.
  • POST /uploads issues a short-lived direct upload URL for a large private input.
  • GET /credits returns the current credit total.

Create and revoke keys from your account page.

Next

Need Help?

On this page