edit_image
Edit an existing PNG or JPEG by providing a text instruction describing what to change. The modified image is saved as a new PNG file while preserving the original.
Instructions
Edit an existing PNG or JPEG with gpt-image-2 on Azure AI Foundry, following a text instruction. The result is written to disk as a PNG and the tool returns its path. The source file is never modified.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Path to the source PNG or JPEG. | |
| prompt | Yes | What to change in the image. | |
| output_path | No | Where to write the result. Must end in .png. |