edit_image
Modify existing images using text prompts and optional reference images. Change specific elements, apply styles, or adjust composition while maintaining the original file structure.
Instructions
Edit a SPECIFIC existing image file, optionally using additional reference images. Use this when you have the exact file path of an image to modify.
Input Schema
| Name | Required | Description | Default | 
|---|---|---|---|
| aspectRatio | No | Optional aspect ratio for the edited image. Default is 1:1 (1024×1024). | |
| imagePath | Yes | Full file path to the main image file to edit | |
| prompt | Yes | Text describing the modifications to make to the existing image | |
| referenceImages | No | Optional array of file paths to additional reference images to use during editing (e.g., for style transfer, adding elements, etc.) | 
Input Schema (JSON Schema)
{
  "properties": {
    "aspectRatio": {
      "description": "Optional aspect ratio for the edited image. Default is 1:1 (1024×1024).",
      "enum": [
        "1:1",
        "2:3",
        "3:2",
        "3:4",
        "4:3",
        "4:5",
        "5:4",
        "9:16",
        "16:9",
        "21:9"
      ],
      "type": "string"
    },
    "imagePath": {
      "description": "Full file path to the main image file to edit",
      "type": "string"
    },
    "prompt": {
      "description": "Text describing the modifications to make to the existing image",
      "type": "string"
    },
    "referenceImages": {
      "description": "Optional array of file paths to additional reference images to use during editing (e.g., for style transfer, adding elements, etc.)",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "imagePath",
    "prompt"
  ],
  "type": "object"
}