agnes_image
Generate images from text prompts or edit existing images with text instructions. Supports multiple image inputs for composition and transformation.
Instructions
Capability 2 — Image generation & editing. Text-to-Image and Image-to-Image (edit/transform/multi-image compose). Models: agnes-image-2.1-flash, agnes-image-2.0-flash. Required: model, prompt, size. For image-to-image, pass 'image' (array of public URLs or data URIs). Note: image dimensions must be multiples of 16. Put response_format inside extra_body (handled automatically here).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Image model name. | agnes-image-2.1-flash |
| prompt | Yes | Text prompt describing the desired image or edit instruction. | |
| size | No | Output size, e.g. 1024x1024, 1024x768, 768x1024. Must be multiples of 16. | 1024x1024 |
| image | No | Input images (public URL or data:image/...;base64,... URI) for image-to-image / multi-image. | |
| response_format | No | Output format. url (default) or b64_json. | url |
| return_base64 | No | Text-to-image only: top-level flag to return base64 (alternative to response_format=b64_json). | |
| extra_body | No | Free-form advanced parameters merged into extra_body. |