Edit sprite
edit_spriteModify an existing sprite using a text instruction while keeping the original file unchanged. Set new dimensions or preserve the source palette as needed.
Instructions
Edit an existing sprite with an instruction. The source dimensions are used when width or height is omitted. preserve_palette keeps the source palette unless set to false. The source file is never changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| width | No | ||
| height | No | ||
| prompt | Yes | ||
| palette | No | ||
| variants | No | ||
| background | No | auto | |
| image_path | Yes | ||
| output_dir | No | ||
| preserve_palette | No |