Generate Image
generate_imageGenerate an image from a text prompt, save it locally with a unique filename, and return the file path and source URL. Use edit_image for reference-image transformations.
Instructions
Generate an image from a text prompt with flux-2-klein (NaN API). Use edit_image instead when you already have reference images to transform. Saves each image under NAN_OUTPUT_DIR (default ~/nan-mcp-output) and never overwrites: a taken name gets -2, -3, and so on. 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. Each one counts against the monthly quota | |
| seed | No | Base seed for reproducibility | |
| size | No | Image size "WxH" divisible by 16, e.g. 1024x1024, 1536x1024, 1024x1536. Default 1024x1024 | |
| prompt | Yes | Textual description of the image to generate | |
| guidance | No | FLUX guidance scale | |
| outputName | No | Optional base name for the output file(s). Sanitised to a safe filename; an existing name is never overwritten |