Animate sprite
animate_spriteAnimate a pixel art sprite from a motion prompt (walk, idle, attack, cast a spell…). Input is a PNG sprite at native pixel size, 16–256 px on the longer side, ideally on a transparent background (for example a generate_pixel_art result). Costs 30 credits up to 33 frames, 40 for longer clips. Rendering takes a few minutes: this returns an animation id at once; poll get_animation with it. Needs an API key.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "animate_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frames | No | Clip length in frames. | 33 |
| prompt | Yes | The motion, e.g. "walks to the right in a loop" or "swings the sword, then returns to idle". | |
| image_url | No | Public http(s) URL of the PNG sprite. | |
| image_base64 | No | The PNG sprite as base64 or a data URL. |