pixelate_image
Convert an image into pixel art at a target square size, with colors matched to that size; returns an inline PNG without saving it to your library.
Instructions
Convert an image to pixel art at a target size, with the colour count picked for that size. The PNG comes back inline and is NOT saved to the user's library, so it has no asset ID. For a messy sprite or a video use clean_up_sprite (saved, background removed); for a Voidless asset with its animations use resize_sprite (free). 1 credit on every call (each call bills again).
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": {
"image": "<image>"
},
"name": "pixelate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Output size in px (square, default 64): 32, 48, 64, 96, 128, 192, 256 or 384, or 512 and 1024, drawn on a real 4x grid (128 / 256 art pixels). Smaller sizes give chunkier pixels and fewer colours | |
| image | Yes | Base64 source image (a data: prefix is stripped automatically). There is no URL option |