闲社服务运行正常AI智能体自动化平台
i

图像生成

技能标识:imageflare

Generate and edit images using Cloudflare Workers AI via the `imageflare` CLI. Use when: user asks to generate an image from a text prompt, edit/transform an existing image with AI, or manage Cloudflare AI image model settings. NOT for: non-image AI tasks, local image editing without AI (cropping, resizing), or video generation.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.1
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

图像生成

ImageFlare 技能

通过终端使用 Cloudflare Workers AI 模型(Flux、Stable Diffusion 等)生成和编辑图像。

使用时机

✅ 使用此技能的场景:

  • - 用户要求根据文本描述生成图像
  • 用户希望使用 AI 编辑或转换现有图像
  • 用户希望将参考图像的风格应用到另一张图像上
  • 用户要求配置 Cloudflare AI 凭据或切换模型
  • 用户说创建图像、生成图片、用 AI 编辑这张照片

不使用时机

❌ 不要使用此技能的场景:

  • - 无需 AI 的本地图像处理(裁剪、调整大小、旋转)→ 使用 convert/ffmpeg/Pillow
  • 视频生成 → 不支持
  • 非 Cloudflare AI 图像生成 → 使用其他工具
  • 查看或检查图像元数据 → 使用 identify、exiftool
  • 用户尚未配置 Cloudflare 凭据且不希望配置 → 提示他们先运行 imageflare config

设置

需要拥有 Cloudflare 账户 并开通 Workers AI 访问权限(提供免费套餐)。

bash

首次交互式设置(账户 ID + API 令牌 + 模型选择)


imageflare config

获取凭据:

凭据查找位置
账户 IDCloudflare 仪表板 → 任意页面右侧边栏
API 令牌
我的个人资料 → API 令牌 → 创建令牌 — 选择 Workers AI 模板或授予 Workers AI: Read 权限 |

验证设置:

bash
imageflare config show

命令

生成图像

bash

基本生成


imageflare generate --prompt 一只红狐坐在积雪覆盖的木头上

自定义尺寸和种子以实现可重复性

imageflare generate --prompt 山上的日落 --width 512 --height 512 --seed 42

保存到指定路径并自动打开

imageflare generate --prompt 赛博朋克城市景观 --output cityscape.png --open

使用特定模型

imageflare generate --prompt 一只猫 --model @cf/black-forest-labs/flux-1-schnell

编辑现有图像

bash

基本编辑


imageflare edit photo.png --prompt 将背景改为海滩

使用风格参考图像进行编辑(最多 3 张参考图)

imageflare edit photo.png --ref style.png --prompt 将图像 0 的风格改为图像 1 的风格

多张参考图像

imageflare edit photo.png --ref ref1.png --ref ref2.png --prompt 结合风格

保存到指定路径

imageflare edit photo.png --prompt 将其变成水彩画 --output watercolor.png --open

配置

bash

交互式设置向导


imageflare config

查看当前设置

imageflare config show

列出账户上可用的 AI 模型

imageflare config models

非交互式设置值

imageflare config set --account-id YOURID --api-token YOURTOKEN imageflare config set --model @cf/black-forest-labs/flux-1-schnell

常用选项

标志描述
-p, --prompt描述生成内容或编辑方式的文本提示(必填)
-m, --model
Cloudflare Workers AI 模型 ID(覆盖配置的默认值) | | --width | 输出宽度(像素,默认:1024) | | --height | 输出高度(像素,默认:1024) | | --seed | 用于可重复结果的随机种子 | | -o, --output | 输出文件路径(默认:imageflare_<时间戳>.png) | | --open | 生成后自动打开保存的图像 | | -r, --ref | (仅编辑模式)附加参考图像,最多可重复 3 次 |

输出

  • - 图像保存为 PNG 格式
  • 默认文件名:当前目录下的 imageflare_<时间戳>.png
  • 使用 --output 指定自定义路径
  • 使用 --open 在系统图像查看器中自动打开结果

注意事项

  • - 默认模型: @cf/black-forest-labs/flux-2-klein-4b
  • 用于编辑的输入图像会自动调整为 ≤512×512(Cloudflare 要求)
  • 编辑模式下的参考图像:在提示中引用为 image 0、image 1 等
  • 配置文件存储位置:~/.config/imageflare/config(Linux/macOS)或 %APPDATA%\imageflare\config(Windows)
  • 无中间服务器 — 请求直接发送到 Cloudflare Workers AI API
  • Cloudflare Workers AI 提供免费套餐

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 imageflare-1776121741 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 imageflare-1776121741 技能

通过命令行安装

skillhub install imageflare-1776121741

下载

⬇ 下载 imageflare v1.0.1(免费)

文件大小: 2.66 KB | 发布时间: 2026-4-15 13:04

v1.0.1 最新 2026-4-15 13:04
- How to install: run `pip install imageflare`
- How to use: setup credentials with imageflare config - this will allow you to enter your cloudflare workers AI config details
- go to "dash.cloudflare.com >Manage Account > API tokens > Create a workers AI Read token
- use this token & account id from url to setup the config
返回顶部