edit_image
Modify an existing image asset with a written instruction, such as recoloring it or adding a detail. Changes are saved as a new frame while the original stays intact.
Instructions
Change an existing image asset with a written instruction (recolour it, add a hat, fix a detail); the edit is added to that asset as a new frame and the original stays. For a new picture use generate_image; for a pixel version at another size use resize_sprite. 5 credits on every call (each call makes and bills another edit; refunded if it fails); a slow run returns a job for check_generation. Returns the new frame's id and image key, which referenceFile on rotate_sprite, animate_sprite or another edit_image call takes.
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": {
"id": "<id>",
"prompt": "<prompt>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Asset ID (from list_assets / get_asset or a previous result) | |
| images | No | Optional extra reference images: image keys from any of your assets (get_asset lists them), or their cdn.voidless.dev URLs. Other links are refused: upload the picture first | |
| prompt | Yes | The change to make, as one instruction, e.g. 'make the cloak dark red' or 'give him a straw hat'. Unmentioned parts are kept | |
| frameId | No | Optional: the frame the new frames hang under in the editor (usually the frame referenceFile came from). | |
| remove_bg | No | Remove the background from the result, as the app's editor does. Set false for artwork or a scene that should keep its background | |
| referenceFile | No | Work from one image instead of the asset's base: an image key from any of your assets (as get_asset lists it), or its cdn.voidless.dev URL. Empty = the asset's current base image. |