Edit an image with a sentence
edit_imageChanges one finished image with a short instruction, e.g. "warmer light, add a marble counter" or "make the headline say Leak-proof". Keeps the product and everything else the same. The result is a new version; the old one stays. Costs the same credits as one image (usually 1); explicit, hateful or misleading changes are refused at no cost. Then call get_image_set.
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": {
"generation_id": "<generation_id>",
"instruction": "<instruction>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| versions | No | Variations to make at once (default 1) | |
| instruction | Yes | What to change, in one or two sentences | |
| generation_id | Yes | Image id from get_image_set |