openai_edit_image
Edit a local image using a GPT Image model with an optional alpha mask to apply prompt-based changes and save the result in a chosen format.
Instructions
Edit one local image with a GPT Image model. An optional alpha mask may be supplied.
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": {
"model": "<model>",
"image_path": "<image_path>",
"prompt": "<prompt>"
},
"name": "openai_edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | auto | |
| model | Yes | ||
| prompt | Yes | ||
| quality | No | auto | |
| filename | No | openai_edited_image | |
| mask_path | No | ||
| background | No | auto | |
| complexity | No | ||
| image_path | Yes | ||
| frame_count | No | ||
| output_format | No | png | |
| frame_duration_ms | No | ||
| safety_identifier | No | ||
| output_compression | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||