edit_image
Edit one or more images by providing instructions; uses gpt-image-2 to apply changes to local files or URLs.
Instructions
Edit one or more input images with gpt-image-2.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Output size, for example 1536x1024. | 1024x1024 |
| model | No | Model name; only gpt-image-2 is supported. | |
| prompt | Yes | Instructions for the image edit. | |
| api_key | No | Per-call API key; OPENAI_API_KEY is preferred. | |
| quality | No | auto | |
| base_url | No | OpenAI-compatible base URL ending in /v1. | |
| output_path | No | Optional local path to save the edited image. Relative paths resolve from the MCP working directory. Existing files are not overwritten. | |
| input_images | Yes | Input images as absolute local paths or HTTP(S) URLs. | |
| output_format | No | png |