bytedance/agentkit-samples66 installs
image-generate
使用内置 image_generate.py 脚本生成图片, 准备清晰具体的 `prompt`。
How do I install this agent skill?
npx skills add https://github.com/bytedance/agentkit-samples --skill image-generateIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The image-generate skill provides a Python-based interface to interact with the Volcengine Ark API for generating and downloading images. It follows standard security practices by using environment variables for credentials and implementing safe file-writing operations.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
1/3 files flagged
What does this agent skill do?
Image Generate
适用场景
当需要根据文本描述生成图片时,使用该技能调用 image_generate 函数。
使用步骤
- 准备清晰具体的
prompt。 - 运行脚本
python scripts/image_generate.py "<prompt>"。运行之前cd到对应的目录。 - 脚本将返回生成图片的 URL。
认证与凭据来源
- 优先读取
MODEL_IMAGE_API_KEY或ARK_API_KEY环境变量。 - 若未配置,将尝试使用
VOLCENGINE_ACCESS_KEY与VOLCENGINE_SECRET_KEY获取 Ark API Key。
输出格式
- 输出生成的图片 URL。
- 若调用失败,将打印错误信息。
示例
python scripts/image_generate.py "一只可爱的猫"
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/bytedance/agentkit-samples/image-generate">View image-generate on skillZs</a>