edit_image
Modify an existing image using text prompts to apply changes such as style transfer, object removal, or enhancements. Provide the image URL and a prompt to generate an edited version.
Instructions
Edit an existing image based on text prompts.
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": {
"image_url": "<image_url>",
"prompt": "<prompt>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| mask_url | No | ||
| strength | No | ||
| image_url | Yes | ||
| model_name | No | ||
| preserve_original | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||