text_to_image
Generate images from text prompts with configurable quality, size, and count. Supports multi-image composition and automatic file download.
Instructions
Generate images from text using Agnes AI.
Supports two models:
agnes-image-2.0-flash: Standard quality
agnes-image-2.1-flash: Enhanced quality (recommended)
Args: prompt: Text description of the image to generate. model: Model name (agnes-image-2.0-flash or agnes-image-2.1-flash). size: Output size (e.g. 1024x768, 1024x1024, 768x1024). n: Number of images to generate (1-4). Default: 1. images: Optional list of reference image URLs for multi-image composition. output_dir: Directory to save the downloaded image(s). Defaults to ~/agnes_output. return_mode: 'url' for image URL, 'b64' for base64 + local save.
Returns: dict with url, local_path, model, size, n, images.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| size | No | 1024x768 | |
| model | No | agnes-image-2.1-flash | |
| images | No | ||
| prompt | Yes | ||
| output_dir | No | ||
| return_mode | No | url |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||