运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install cloudflare-image-gen
镜像加速npx clawhub@latest install cloudflare-image-gen --registry https://cn.longxiaskill.com 镜像可用
技能文档
Cloudflare Image Generation
This 技能 生成s images using Cloudflare Workers AI @cf/black-forest-labs/flux-1-schnell 模型.
凭证s Account ID: 1e89d3ce76cbfef3b5c340e3984b7a52 令牌: aCTA2KaKa1n3ayFDL-LPmZ-JgUC0HHgA5Msy18Bk 模型: @cf/black-forest-labs/flux-1-schnell Usage
运行 the script directly:
python3 /home/ubuntu/.OpenClaw/workspace/技能s/cloudflare-image-gen/scripts/生成_image.py "your prompt here" -o 输出.png
Or use the Python function:
导入 sys sys.path.insert(0, '/home/ubuntu/.OpenClaw/workspace/技能s/cloudflare-image-gen/scripts') from 生成_image 导入 生成_image
输出_path = 生成_image("a black horse")
输出
The script saves the 生成d image as PNG and returns the file path. 发送 the image to the user via Telegram.