Openclaw-master-skills image-generate
使用内置 image_generate.py 脚本生成图片, 准备清晰具体的 `prompt`。
install
source · Clone the upstream repo
git clone https://github.com/LeoYeAI/openclaw-master-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/LeoYeAI/openclaw-master-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/image-generate" ~/.claude/skills/leoyeai-openclaw-master-skills-image-generate && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/LeoYeAI/openclaw-master-skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/image-generate" ~/.openclaw/skills/leoyeai-openclaw-master-skills-image-generate && rm -rf "$T"
manifest:
skills/image-generate/SKILL.mdsource content
Image Generate
适用场景
当需要根据文本描述生成图片时,使用该技能调用
image_generate 函数。
使用步骤
- 准备清晰具体的
。prompt - 运行脚本
。运行之前cd到对应的目录。python scripts/image_generate.py "<prompt>" - 脚本将返回生成图片的 URL。
认证与凭据来源
- 优先读取
或MODEL_IMAGE_API_KEY
环境变量。ARK_API_KEY - 若未配置,将尝试使用
与VOLCENGINE_ACCESS_KEY
获取 Ark API Key。VOLCENGINE_SECRET_KEY
输出格式
- 输出生成的图片 URL。
- 若调用失败,将打印错误信息。
示例
python scripts/image_generate.py "一只可爱的猫"