Generate Spritesheet
Creates an AI-generated spritesheet for game development or animation purposes. This block generates a grid of animation frames featuring a consistent character or object based on your description and reference image.
About this capability
Creates an AI-generated spritesheet for game development or animation purposes. This block generates a grid of animation frames featuring a consistent character or object based on your description and reference image.
- Grid dimensions and frame specifications
- Animation details with frame counts and positions
- Background color for chroma-key transparency
- Cell coordinates for proper frame slicing
The spritesheet is ready for use in game engines or animation software, with all necessary metadata for correct frame extraction and animation playback.
Chroma-key handling
Output sheets always use a #00ff00 background. To extract transparency:
- Tolerance: ~100 (R values up to ~119 observed in legitimate green pixels).
- Disable secondary "fringe" passes that key partially-transparent
edges — these can erase legitimate green elements (foliage, etc.)
inside the character.
- Request PNG output downstream — WebP recompression shifts chroma
pixels enough to break tight tolerances.
Common failure modes
- Most often caused by overly long or prescriptive prompts.
- Retry with a shorter prompt; the same call usually works on retry
if the prompt was the cause.
- Can also indicate transient image-gen capacity issues — retry once
after 30s.
frames as the model runs out of motion variety.
Expected duration
Set client-side timeouts to at least 240s.
Pricing
~$0.20 per sheet (estimate). Scales with frame count and frame size.
- **prompt** - A text description of the character or object you want to generate, including animation details (e.g., "32 bit running alien, 8 frames per animation, right facing, side view"). This guides the AI in creating the desired sprite animations.
- **referenceImage** - URL of a reference image that shows the character or object you want to maintain consistency with. This ensures the generated sprites match your desired style and appearance.
- **frameSize** - The dimensions of each individual frame in the spritesheet (e.g., "128x128"). This determines the resolution of each animation frame.
- **spritesheetUrl** - URL of the generated spritesheet PNG image with frames arranged in a grid layout.
- **metadata** - Comprehensive information about the generated spritesheet including:
- `step_execution_error` on the underlying image-gen step:
- Reference image fetch fails: the URL must be publicly accessible.
- Frame count requests above 16 may produce duplicated/near-identical
- 4–6 frames, 128×128: ~60s
- 8–12 frames, 128×128: ~90–120s
- 12+ frames, 256×256: ~150–180s
Related capabilities
Add Thumbnail to Video
Set a video's thumbnail: embedded as its cover art, and optionally as its opening frames
Check App Role
Check whether the current user has a specific app role and branch accordingly.
Decompose Image
Split an image into a base image and transparent layers.
[Google Calendar] Delete Event
Delete an event from a Google Calendar by event ID.
Describe External Model
Read what a community model on Replicate takes, returns and costs, before running it
Evaluate Decision
Ask structured questions about text, JSON, or images and get calibrated answers from a decision model. The model returns a probability, a selected option, or a score. It does not write a reply. Each question is a noul (yes or no, as a probability from 0 to 1), a choice (one option from a set you define, with a probability for each), or a score (a rating against ordered levels). Put every question in the same call. The question id is yours: answers come back under the same ids. The model defaults to Jev (jev-latest).
Add Generate Spritesheet to your workflow
Build powerful AI workflows with drag-and-drop blocks. No coding required.