Edit image(s) (img2img)
edit_imageTransform, combine, or extend images by sending a text prompt to an OpenAI-compatible API. Use an optional mask to regenerate specific regions and retrieve edited image URLs.
Instructions
Edit, transform, combine or extend one or more input images following a text prompt (image + text to image, aka img2img) via the configured OpenAI-compatible images/edits API. Each image reference can be a local file path, an http(s) URL, a data: URI, or raw base64. An optional mask marks the region to regenerate. Returns the edited image URL(s) and metadata; optionally saves locally. Endpoint, key and default model come from config (see get_config / set_config).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| mask | No | ||
| save | No | ||
| size | No | ||
| model | No | ||
| images | Yes | ||
| prompt | Yes | ||
| quality | No | ||
| include_preview | No |