Edit image
edit_imageEdit an existing image node with a new instruction prompt (e.g. "make the sky pink"), producing a new image node. Use redo_generation to re-roll the same inputs instead. Spends credits. Returns immediately with a new nodeId and status; poll get_generation_status until it is COMPLETED or FAILED.
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": {
"threadId": "<threadId>",
"nodeId": "<nodeId>",
"prompt": "<prompt>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The image node to edit. | |
| prompt | Yes | Edit instruction. | |
| quality | No | Image quality. Defaults to high. | |
| modelKey | No | Optional model key from list_models. | |
| threadId | Yes | Thread containing the node. | |
| aspectRatio | No | Aspect ratio. Defaults to auto. | |
| sourceFileIds | No | Optional extra input image file ids. |