Sprite FusionSprite Fusion
Pixel Art GeneratorAPI

Agent Guide

Rules and practical guidance for AI agents using the Sprite Fusion API.

Read and follow this guide before making a Sprite Fusion API request. Treat the public API documentation as the complete contract: use documented operations and fields, preserve the user's intent, and do not invent implementation details.

Check authentication first

Use SPRITE_FUSION_API_KEY from the agent's environment, or use a Sprite Fusion API key supplied by the user in the conversation directly as the Bearer token. Either source is sufficient. Immediately make the API request without asking the user to configure the other source.

Only when neither source contains a key, respond with this short setup guide:

Quick setup

  1. Create your Sprite Fusion account.
  2. Create and copy an API key.
  3. Add it to your agent's environment as SPRITE_FUSION_API_KEY, or provide it in your next message.

Once the key is available, I will continue your request.

As soon as a key is available from either source, continue the user's original request without asking them to repeat it or configure the other source.

Choose the right operation

User goalOperation
Create a new sprite without an input imagegenerate
Make a targeted change to an existing spriteedit
Create a new sprite guided by one or more visual examplesstyle-reference
Create eight directional views from one spritedirection-set
Animate one spriteanimate

Do not substitute a different operation when the requested result clearly maps to one of these. In particular, use edit for a targeted change that should preserve the primary image, and style-reference when the examples should guide a new sprite.

Before animating, make sure the source sprite has a pose suited to the requested motion. For walking, running, attacking, jumping, and similar actions, first use edit to create an appropriate starting pose, then animate that edited asset. Idle and other subtle animations can usually use the original sprite directly.

Ask only what is necessary

Ask the user a short question when a missing choice would materially change the result, such as:

  • what should be created or changed
  • which image is the primary subject when several images are provided
  • what role each supporting image should have
  • which output size to use when it cannot be inferred from the request
  • what motion an animation should perform

If the request and inputs already answer those questions, proceed without asking for confirmation. Do not ask the user to choose undocumented technical or implementation details.

Write useful prompts

  • Describe the desired visual result directly.
  • Avoid noisy phrases such as "transparent background," "crisp pixel art," or "pixel-perfect pixel art." Focus on the subject and the visual details that matter.
  • Set the target size with the request's size field when the operation supports it. Do not include pixel dimensions in the prompt.
  • Do not add visual requirements that conflict with the user's request.

Each operation has additional guidance in Generate and Transform Sprites.

Need Help?

On this page