Skip to content
AI & Agents
Skill

/image-generate

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

From plugin
agentkit-samples
488161 skills

Claude Code

$ npx -y skills add bytedance/agentkit-samples --skill image-generate --agent claude-code

SKILL.md

image-generate.SKILL.md
name: image-generate
description: 使用内置 image_generate.py 脚本生成图片, 准备清晰具体的 `prompt`。
license: Complete terms in LICENSE.txt

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 "一只可爱的猫"
@bytedance
Ships withagentkit-samples

欢迎来到 AgentKit 代码工坊(Samples)仓库! AgentKit 是火山引擎推出的企业级 AI Agent 开发平台,为开发者提供完整的 Agent 构建、部署和运维解决方案。平台通过标准化的开发工具链和云原生基础设施,显著降低复杂智能体应用的开发部署门槛。 本代码库包含了一系列示例和教程,帮助您理解、实现和集成 AgentKit 的各项功能到您的应用中。

Stars on GitHub

Momentum

stars in total
488
Star history of bytedance/agentkit-samples on GitHub, a chart by star-history.com

Other skills on agentkit-samples.

image-video-gen

image-video-gen

根据文字描述生成视频,一个生成图片和视频的工作流技能。依赖 skills: byted-web-search, image-generate, video-generate。注意:此 workflow 没有执行脚本,只是一个描述性的文档。

veadk-go-skills

veadk-go-skills

根据用户的功能需求,完成与 VeADK-Go 相关的功能; 包括:直接根据需求生成 Agent;将Enio Agent转换为VeADK-Go Agent。

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw2w393k
@openclaw@openclawInstall Skill

Questions about image-generate.

Which coding agents can use image-generate?
image-generate installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.