agnes_generate_image
Generate images from text prompts or transform existing images using Agnes Image 2.1 Flash. Supports multiple sizes and aspect ratios with local saving and inline preview.
Instructions
Generate an image with Agnes Image 2.1 Flash. Text-to-image by default; pass image_urls to do image-to-image (transform/restyle while preserving composition). The result is saved to the local output directory and a preview is returned inline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Output size tier. 1K/2K/3K/4K. | 2K |
| ratio | No | Aspect ratio, e.g. 16:9 for wallpapers. | 1:1 |
| prompt | Yes | What to generate, or how to transform the input image(s). | |
| image_urls | No | Optional input images (public URL or data URI) to enable image-to-image. | |
| inline_preview | No | Also return the image inline as a preview (small files only). |