Edit image from text + input image(s)
image-to-imageEdits or transforms your images based on a text prompt, using Gemini, Grok, or GPT-image models, and saves the result to disk.
Instructions
Edits or transforms one or more input images according to a text prompt, using Gemini, Grok Image, or GPT-image, and saves the result to disk. (impossibl.com does not support this tool.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Provider-specific size string, e.g. "1024x1024". | |
| model | No | Specific model id. Defaults to that provider's latest non-top-tier model. Call list_image_providers to see options. | |
| prompt | Yes | Natural-language instruction describing how to edit/transform the input image(s). | |
| quality | No | Provider-specific quality hint (e.g. "low"/"medium"/"high" for gpt-image). Defaults to a non-maximum tier. | |
| filename | No | Base filename (without extension) to save the image as. | |
| provider | No | Which image provider to use. REQUIRED when more than one of GEMINI_API_KEY / XAI_API_KEY / OPENAI_API_KEY / IMPOSSIBL_API_KEY is configured and IMAGE_PROVIDER_DEFAULT is not set. In that case: first check your memory for a stored user preference for a default image provider; if there is none, ask the user which provider to use before calling this tool, then remember their answer for future calls. | |
| aspect_ratio | No | Aspect ratio such as "16:9" (Gemini only). | |
| input_images | Yes | One or more input images, each as a local file path or a data: URI. Grok supports 1 image per call; Gemini and GPT-image support multiple. impossibl.com does not support image editing at all — do not select it for this tool. |