generate_image
Generate or edit AI images using text descriptions or existing images. Downloads the result locally and returns the file path.
Instructions
Generate or edit an AI image — text-to-image (文生图/AI画图) or image-to-image (图生图, pass images) — via free models (Agnes AI default, or Zhipu). Use this for photographic or illustrated subjects (写实图/插画/概念图/Logo 设计图). Output downloads locally and the path is returned. No local rendering libs needed; this calls the AI model for you. Multilingual triggers: 画像 · imagen · image · Bild · изображение · imagem (ja/es/fr/de/ru/pt).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| size | No | e.g. 1024x1024 (provider may snap to nearest preset). | |
| model | No | Optional; omit to use the provider default. Call list_models to see options. | |
| images | No | Image-to-image inputs (public URL or data URI). Omit for text-to-image. | |
| outDir | No | 产物落盘目录,省略用默认(会话目录/output)。 | |
| prompt | Yes | Image description. | |
| download | No | ||
| provider | No | agnes |