Generate Image
generate_imageCreate images from text prompts, returning JPEG previews plus full-resolution PNG links and IDs for later edits.
Instructions
Generate images from a text description with FLUX 3 Image Klein
Returns a JPEG preview of each image plus the URL and id of the full-resolution PNG. Use the id with edit_image to refine a result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Seed for a reproducible result | |
| boxes | No | Optional layout: where to place elements. Each box is {"bbox": [y_min, x_min, y_max, x_max] on a 0-1000 grid with (0, 0) at the top left, "desc": what goes there, "text": exact text to render (optional)}. Boxes guide placement and scale, not exact pixels. | |
| count | No | Number of variations | |
| steps | No | Sampling steps; leave unset for the model default | |
| width | No | Width in pixels (rounded to 16) | |
| height | No | Height in pixels (rounded to 16) | |
| prompt | Yes | What to draw. A short request is fine. | |
| quality | No | 'high' uses the undistilled base model: more detail and variety, about 3 times slower (~45 s). Use only when the user asks for it. | fast |
| enhance_prompt | No | Expand the prompt into a full scene caption first (recommended) |