Edit Image
edit_imageApply a text prompt to existing images to create edited versions. Uses up to four reference images and saves the result locally without overwriting.
Instructions
Transform existing images with flux-2-klein image-to-image (NaN API). Use generate_image instead when starting from text alone. Takes 1 to 4 local reference files (PNG, JPEG or WebP, each under 25MB), saves the result under NAN_OUTPUT_DIR (default ~/nan-mcp-output) without overwriting anything, and returns the saved path and the temporary source URL. Counts against the account image quota (100/month).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of images to generate (1-4). Default 1 | |
| seed | No | Base seed for reproducibility | |
| size | No | Image size "WxH" divisible by 16, e.g. 1024x1024, 1536x1024, 1024x1536. Default 1024x1024 | |
| images | Yes | Absolute paths to reference image files (PNG, JPEG, WebP; up to 4, each < 25MB) | |
| prompt | Yes | Description of the edit or transformation to apply | |
| guidance | No | FLUX guidance scale | |
| outputName | No | Optional base name for the output file(s) |