360 Secure SkillHub
360 安全技能中心

volcengine-image-generate

该 Skill 通过 Python 脚本调用图像生成服务,按环境变量中的密钥完成鉴权,将用户给出的清晰具体提示词转换为图片,并在控制台输出生成图片的 URL;调用失败时打印错误信息。

warm-wm
warm-wm
热度 80.91
最近更新 2026-05-11 15:57:58
分类:创作依赖:代码执行 / 第三方 API应用场景:图像生成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add volcengine-image-generate
Metadata
name
volcengine-image-generate
description
Using volcengine image_generate.py script to generate image, need to provide clear and specific `prompt`.
license
Complete terms in LICENSE.txt

Image Generate

Scenarios

When you need to generate an image based on a text description, use this skill to call the image_generate function.

Steps

  1. Prepare a clear and specific prompt.
  2. Run the script python scripts/image_generate.py "<prompt>". Before running, navigate to the corresponding directory.
  3. The script will return the generated image URL.

Authentication and Credentials

  • First, it will try to read the MODEL_IMAGE_API_KEY or ARK_API_KEY environment variables.
  • If not configured, it will try to use VOLCENGINE_ACCESS_KEY and VOLCENGINE_SECRET_KEY to get the Ark API Key.

Output Format

  • The console will output the generated image URL.
  • If the call fails, it will print the error information.

Examples

python scripts/image_generate.py "a cute cat"