Generate Image
generate_imageGenerate images from text prompts using the flux-2-klein model. Returns the saved image file path and URL.
Instructions
Generate an image with flux-2-klein (NaN API). Returns the saved image file path and its URL.
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 | |
| prompt | Yes | Textual description of the image to generate | |
| guidance | No | FLUX guidance scale | |
| outputName | No | Optional base name for the output file(s) |