OpenParable
Skip to content
← Back to skills

Image Generate

Documents
image-generate

Image Generate is an Agent Skill for documents published in the LeoYeAI/openclaw-master-skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/LeoYeAI/openclaw-master-skills/blob/HEAD/skills/image-generate/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/image-generate, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Image Generate

适用场景

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

使用步骤

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

认证与凭据来源

  • 优先读取 MODEL_IMAGE_API_KEY 或 ARK_API_KEY 环境变量。
  • 若未配置,将尝试使用 VOLCENGINE_ACCESS_KEY 与 VOLCENGINE_SECRET_KEY 获取 Ark API Key。

输出格式

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

示例

python scripts/image_generate.py "一只可爱的猫"