Install
openclaw skills install @lutongsuo/agnes-imageGenerate and edit high-quality images from text or existing images, with support for multi-image composition, style transfer, and flexible resolutions.
openclaw skills install @lutongsuo/agnes-image使用 Agnes Image 2.0 Flash 模型生成和编辑图像。支持文生图、图生图和多图合成工作流。
当用户需要以下功能时触发此技能:
触发关键词:
设置 API Key 环境变量:
export ANGES_API_KEY="your_api_key_here"
或使用替代变量:
export AGENT_ANGES_API_KEY="your_api_key_here"
| 能力 | 说明 | 工作流 |
|---|---|---|
| 文生图 | 根据文字描述生成高质量图像 | text |
| 图生图 | 根据提示词编辑/转换现有图像 | img2img |
| 多图合成 | 将多张图片融合到统一场景 | multi |
| 灵活尺寸 | 支持多种分辨率和宽高比 | 自定义 |
| 风格控制 | 通过提示词控制艺术风格 | 提示词 |
| 质量优化 | 高质量商业级图像输出 | 默认 |
./scripts/agnes-image.sh text "prompt" SIZE [OUTPUT_FILE]
示例:
./scripts/agnes-image.sh text "A cat sitting on a windowsill, golden hour lighting, photorealistic" 1024x768 output.png
./scripts/agnes-image.sh img2img "prompt" SIZE IMAGE_URL [OUTPUT_FILE]
示例:
./scripts/agnes-image.sh img2img "Transform into anime style" 1024x768 "https://example.com/photo.jpg" output.png
./scripts/agnes-image.sh multi "prompt" SIZE IMAGE1 IMAGE2 [...] [OUTPUT_FILE]
示例:
./scripts/agnes-image.sh multi "Combine these two characters in a fantasy scene" 1024x768 "https://example.com/a.png" "https://example.com/b.png" output.png
输出文件名追加 .base64 即可获取 Base64 编码:
./scripts/agnes-image.sh text "a sunset" 1024x768 image.base64
| 参数 | 必填 | 说明 |
|---|---|---|
workflow | 是 | 工作流类型:text / img2img / multi |
prompt | 是 | 图像生成或编辑的指令 |
size | 是 | 输出尺寸,如 1024x768、1024x1024、768x1024 |
image | img2img | 输入图像 URL(通过 extra_body 传递) |
output | 否 | 输出文件路径,默认打印 URL |
[主体] + [场景/背景] + [风格] + [光照] + [构图] + [质量要求]
示例:
A professional product photo of wireless headphones on white background, soft studio lighting, sharp details, commercial photography
[编辑指令] + [要保留的元素] + [目标风格/场景] + [光照] + [构图] + [质量要求]
示例:
Change background to a futuristic city at night while keeping the person's face, outfit, and pose unchanged
response_format 必须放在 extra_body 内tags: ["img2img"]