generate_image
Generate an image from a prompt via CLIProxy, save it locally, and return the absolute path, dimensions, and PNG preview.
Instructions
通过 CLIProxy 的 images/generations 生成一张图片并保存本地,返回绝对路径、实际尺寸和 PNG 预览。默认 gpt-image-2.5-flare,也可指定 gpt-image-2.5-sunburst 或其他模型。可能消耗额度,失败不自动重试。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | 请求尺寸,例如 1024x1024、1536x1024;支持情况取决于模型,实际尺寸以结果为准 | |
| model | No | CLIProxy 模型 ID;省略时使用配置中的默认模型 | |
| prompt | Yes |