360 Secure SkillHub
360 安全技能中心

Seedream 5 via BytePlus

该 Skill 提供 Bash 脚本,通过 BytePlus Ark 图像生成接口调用 Seedream 5 模型(默认 seedream-5-0-260128、2K、无水印)生成图像,下载到指定路径并打印保存位置。需要 SEEDREAM_API_KEY,可用环境变量覆盖模型与尺寸,不涵盖其他图像生成服务。

gamaleldientarek
gamaleldientarek
热度 34.62
最近更新 2026-05-11 17:41:04
分类:创作依赖:代码执行 / 第三方 API / 读写文件应用场景:图像生成

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add seedream-5-byteplus
Metadata
name
seedream-5-byteplus
description
Generate images with Seedream 5 through the BytePlus Ark API using a direct API key. Use when the user wants Seedream 5 image generation, mentions BytePlus Ark, Seedream, or has a Seedream/Ark API key. If the user asks for a specific format, poster, wallpaper, social post, or exact dimensions, ask for the required size or aspect ratio before generating.

Seedream 5 via BytePlus Ark

Generate images through BytePlus Ark using the bundled script in scripts/seedream-generate.sh.

Quick start

  1. Ensure SEEDREAM_API_KEY is available in the environment or in /root/.clawdbot/.env.
  2. Run:
/root/clawd/skills/seedream-5-byteplus/scripts/seedream-generate.sh "your prompt here" [output-file]

Example:

/root/clawd/skills/seedream-5-byteplus/scripts/seedream-generate.sh \
  "A cinematic scene of a monkey sitting proudly on top of a red Ferrari sports car" \
  /root/clawd/output/seedream-monkey-ferrari.jpg

The script prints the saved file path on success.

When to use this skill

Use this skill when:

  • The user has a Seedream / BytePlus Ark API key
  • The user wants Seedream 5 specifically
  • The user mentions BytePlus Ark, Seedream, or seedream-5-0-260128

Do not use this skill for:

  • Black Forest Labs direct FLUX API
  • fal.ai keys (FAL_KEY)
  • OpenAI image generation
  • Google Gemini image generation

Ask about size when needed

If the user clearly needs a specific layout or delivery format, ask for the target size or aspect ratio before generating.

Examples:

  • social post
  • story / reel cover
  • wallpaper
  • poster
  • banner
  • print asset
  • exact pixel dimensions

If the user does not care, use the default size.

Default behavior

The script defaults to:

  • model: seedream-5-0-260128
  • size: 2K
  • response format: url
  • watermark: false

Override these with environment variables before running:

export SEEDREAM_MODEL=seedream-5-0-260128
export SEEDREAM_SIZE=1K

Then call the script normally.

How it works

The script sends a POST request to the BytePlus Ark image generation endpoint, extracts the returned image URL, and downloads the image locally.

Troubleshooting

  • If the script says SEEDREAM_API_KEY not set, add the key to the environment first.
  • If generation fails, inspect the JSON returned by the API; the script prints it to stderr.
  • If the provider returns no image URL, inspect the raw response to confirm the response schema.

scripts/

  • scripts/seedream-generate.sh — direct Seedream 5 image generation via BytePlus Ark API