image_edit
Edit local images via natural language prompts. Specify an image path and editing instructions; the tool generates a new image according to your requested changes.
Instructions
使用一张本地参考图,通过 MetaRouter 改图或图生图。
Args: image_path: 本地 PNG、JPEG 或 WebP 文件的绝对路径。 prompt: 编辑要求,应明确哪些内容保留、删除或修改。 size: 输出尺寸 WxH,宽高须为 8 的倍数。 model: 可选模型;留空自动选择。 quality: 可选质量参数。 output_dir: 可选保存目录,必须位于安全输出根目录下。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | 1024x1024 | |
| model | No | ||
| prompt | Yes | ||
| quality | No | ||
| image_path | Yes | ||
| output_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||