Edit image(s) (img2img)
edit_imageEdit images via text prompts, combining or extending inputs. Use masks for targeted regions, get edited URLs and metadata, with optional local saving.
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 |