generate_image
Generate or edit images from text prompts, reference images, or multi-image compositions. Returns a URL or base64 result for immediate use.
Instructions
Generate or edit an image with agnes-image-2.5-flash. Always returns a URL (or base64).
中文触发:当用户说「agnes生图 / 生成图片 / 做张图 / 文生图 / 图生图 / 改图 / 多图合成」时调用此工具。 Trigger: agnes generate image / text-to-image / image-to-image / edit image.
Presets: size 1K(fast/cheap) / 2K(default, wallpaper 16:9=2624x1472) / 3K / 4K(max quality).
ratio 16:9 default (wallpaper), 1:1 social, 9:16 vertical, 21:9 ultrawide.
Pass images (public URL or Data URI) for image-to-image / multi-image compose;
omit it for pure text-to-image. save_path is optional: when given, the result
is also downloaded locally.
Examples:
纯文生图:prompt="赛博朋克夜景壁纸", size="2K", ratio="16:9"
带图改图:prompt="改成雨夜霓虹风格,保持构图", images=["https://.../a.png"]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | 2K | |
| ratio | No | 16:9 | |
| images | No | ||
| prompt | Yes | ||
| api_key | No | ||
| base_url | No | ||
| save_path | No | ||
| response_format | No | url |