image_to_image
Generate new images from reference images and a text prompt. Upload existing images and describe the desired output to create customized versions.
Instructions
Generate new image(s) based on reference image(s) and a text prompt.
This is image-to-image generation: provide one or more reference images (as URLs) along with a text prompt describing the desired output.
Args: prompt: Text description guiding the generation. images: List of reference image URLs (at least one required). 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. 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 | Yes | ||
| prompt | Yes | ||
| output_dir | No | ||
| return_mode | No | url |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||