CtrlK
BlogDocsLog inGet started
Tessl Logo

image-generate

使用内置 image_generate.py 脚本生成图片, 准备清晰具体的 `prompt`。

59

Quality

67%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./.trae/openclaw-skills/image-generate/SKILL.md
SKILL.md
Quality
Evals
Security

Image Generate

适用场景

当需要根据文本描述生成图片时,使用该技能调用 image_generate 函数。

使用步骤

  1. 准备清晰具体的 prompt
  2. 运行脚本 python scripts/image_generate.py "<prompt>"。运行之前cd到对应的目录。
  3. 脚本将返回生成图片的 URL。

认证与凭据来源

  • 优先读取 MODEL_IMAGE_API_KEYARK_API_KEY 环境变量。
  • 若未配置,将尝试使用 VOLCENGINE_ACCESS_KEYVOLCENGINE_SECRET_KEY 获取 Ark API Key。

输出格式

  • 输出生成的图片 URL。
  • 若调用失败,将打印错误信息。

示例

python scripts/image_generate.py "一只可爱的猫"
Repository
huangruiteng/CS-Notes
Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.