image_edit
Edit a local PNG/JPEG/WebP image by providing a text prompt; the tool uploads the image to PdhAPI and returns the edited version.
Instructions
Edit one local PNG/JPEG/WebP through PdhAPI. The reference image is uploaded. Uses paid quota.
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": "image_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| size | No | 1024x1024 | |
| model | No | ||
| prompt | Yes | ||
| api_key | No | ||
| quality | No | ||
| image_path | Yes | ||
| response_format | No | b64_json |