Generate image
generate_imageCreates one to four PNG images from a text prompt, saves full-size files with prompt and settings metadata, and returns file paths plus small previews for review.
Instructions
Generate one or more images from a text prompt. Saves full-size PNGs (plus a .json sidecar with the prompt and settings) in the output folder and returns their paths with small previews.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Width x height in px, e.g. "1024x1024" or "1536x1024". | 1024x1024 |
| count | No | Number of variants to generate (1-4). | |
| prompt | Yes | What to draw. Be specific about subject, style, composition and colours. | |
| out_name | No | File name without extension, relative to the output folder, e.g. "icons/rocket". Defaults to a slug of the prompt. | |
| references | No | Paths of existing images to match the style of (inside the working folder). | |
| transparent | No | Ask for a transparent background. |