Edit Image
edit_imageEdit an existing image with a text instruction, using Claude Imagine credits. Pass the full-resolution URL of the image to change, plus up to 8 more images when the result should combine them, such as a person placed into a scene, a garment put on a model or a product set in a new setting. Pass them as separate URLs; do not stitch them into one collage. The result is a new image, and the originals are untouched. Say in the prompt what must stay the same, not only what changes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>",
"image_urls": "<image_urls>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Editing model. nano-banana-2 (default), nano-banana-2.1 (new: upgraded layout and text accuracy), gpt-image-2.5 or gpt-image-2.6 (quality levels, and output_format gif animates the source image). The other image models cannot edit through MCP yet. | |
| prompt | Yes | What to change, and what to keep. Example: "replace the sky with a sunset, keep the people and the framing unchanged" | |
| quality | No | gpt-image-2.6 only: rendering quality, low (default, cheapest and fastest), medium or high. Pass it only when the person asks for more detail or a higher quality; it raises the price (quote_generation shows it). Other models have no quality setting. | |
| image_urls | Yes | Public URLs of the images, 1 to 9, normally full-resolution URLs returned by earlier generations. Put the image to edit first. Any others are references to draw on, such as a face, a product, a garment or a style. In the prompt, refer to them as image 1, image 2 and so on, in this order, and say what to take from each. The credit price is the same however many images are passed, except on gpt-image-2.6, where each image after the first adds about 1.3 credits. | |
| resolution | No | Output size: 1k, 2k or 4k. Leave it out unless the user gave a clear size signal: a pixel size or tier (4K, 2K, high resolution) or a physical output (print, poster, wallpaper, billboard). Words like premium, professional or high quality describe the look, not the size, and are not a reason to pass this. Omitted uses the model's default, its cheapest size; 2k and 4k cost roughly two to three times more credits and take longer. When the user asks for 'sharper' or 'bigger' without a size, quote_generation the options and ask which one. | |
| max_credits | No | Budget cap in credits, when the person stated one. If the exact cost of this call is above it, nothing is started and the reply lists what fits. | |
| aspect_ratio | No | Aspect ratio for the result. When omitted, the framing of the source image is kept. | |
| output_format | No | gpt-image-2.6 only: gif makes a short looping animated GIF (9 frames of 512x512, about 1.8 s) from the prompt; describe the motion and that it loops. Leave aspect_ratio and resolution out for a GIF. Omitted or png gives a still image. For an SVG, generate a PNG and call vectorize_image. |