edit_image
Edit images using text instructions. Provide a source image path and describe desired changes for mockups, style transfer, or contextual editing.
Instructions
Edit an existing image using text instructions via FLUX.1-Kontext. Provide a source image path and describe the desired changes. Great for mockups, style transfer, and contextual editing.
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": {
"prompt": "<prompt>",
"image_path": "<image_path>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Random seed for reproducibility. Use 0 for random. | |
| steps | No | Number of inference steps (1-30). Default: 20. | |
| prompt | Yes | Text description of the desired edit. Be specific about changes. Example: 'Add a realistic dragon tattoo on the forearm' | |
| cfg_scale | No | Guidance scale (1-20). Default: 7. | |
| image_path | Yes | Absolute or relative path to the source image to edit. |