sk-doubao-seedream: Invoking Volcano Ark Seedream Text-to-Image within an Agent

Preface

When creating illustrations in environments like Cursor or Claude Code, a common practice is to write a temporary script to call a cloud provider’s image API, and then jot down the Key, model ID, and size rules in notes. Next time you switch models or need image-to-image generation, you have to check the documentation again. The following introduces the SkillHub community skill sk-doubao-seedream (coordinates @user_1060c188/sk-doubao-seedream, current version 1.0.1): it encapsulates calls to Doubao Seedream / SeedEdit on Volcano Engine Ark into Python scripts and configurations included with the Skill, allowing an Agent to guide you through installation, Key configuration, and image generation according to SKILL.md.

What is this

sk-doubao-seedream is a design-media Skill from a community source (source: community), with the SkillHub subcategory “Image Generation.” The publisher is user_1060c188 (display name TryLoveCatch). The Skill description states it targets Volcano Engine Ark’s Seedream text-to-image capability and requires a self-provided API Key (SkillHub tag requires_api_key=true).

Official entry points:

  • API resource page: https://api.skillhub.cn/user_1060c188/sk-doubao-seedream
  • SkillHub display page: https://www.skillhub.cn/skills/user_1060c188/sk-doubao-seedream

Volcano Engine Ark image API documentation (cited within the Skill): https://www.volcengine.com/docs/82379/1541523

Core Functions

The following capabilities are derived from the descriptions and implementations in SKILL.md and scripts/generate.py within the Skill package; features not described by the Skill author in documentation are not included here.

  1. Text-to-Image: Generates images based on text prompts, with the default model being doubao-seedream-4-0-250828.
  2. Image-to-Image: Edits existing images based on prompts using the model doubao-seededit-3-0-i2i-250628 (via the edit subcommand).
  3. Multi-model Versions: Built-in model IDs for Seedream 5.0 / 4.5 / 4.0 / 3.0 and SeedEdit 3.0, viewable via the list command.
  4. Calling Methods: Command-line argument mode and interactive guided mode when no arguments are provided; the API base URL is https://ark.cn-beijing.volces.com/api/v3 (Text-to-Image uses POST /images/generations, Image-to-Image uses POST /chat/completions).

Supported model IDs (selected list, refer to generate.py list for the complete list):

Model ID Usage
doubao-seedream-5-0-260128 Text-to-Image
doubao-seedream-4-5-251128 Text-to-Image
doubao-seedream-4-0-250828 Text-to-Image
doubao-seededit-3-0-i2i-250628 Image-to-Image
doubao-seedream-3-0-t2i-250415 Text-to-Image

Installation and Activation

1. Install SkillHub CLI (if not already installed)

First, check if skillhub exists on your machine:

command -v skillhub && skillhub --version

If not installed, you can perform a full installation according to the official SkillHub instructions (excerpt):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Documentation: https://skillhub.cn/install/skillhub.md

2. Install this Skill to the current Agent’s skills directory

During installation, you must use --dir to point to the skills directory recognized by the current client; otherwise, it may default to ./skills/ and not be loaded. Common path examples (from SkillHub installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ in the project

Execute this on the parent path of the target directory (installation method provided by SkillHub search index):

skillhub install sk-doubao-seedream --namespace user_1060c188 --dir ~/.cursor/skills/

You can also hand the installation instructions to the Agent: ask it to install @user_1060c188/sk-doubao-seedream based on https://skillhub.cn/install/skillhub.md.

After successful installation, the skill directory is generally:

~/.cursor/skills/@user_1060c188/sk-doubao-seedream/

(The specific path varies depending on the --dir you selected.)

The README.md inside the Skill package also mentions that you can use npx clawhub@latest install sk-doubao-seedream or copy it to ~/.workbuddy/skills/ for WorkBuddy/OpenClaw; if you use these clients, refer to their respective documentation.

3. Configure Volcano Engine Ark API Key

You need an Ark API Key before running the generation script. The Skill supports three methods (see SKILL.md):

Interactive configuration writing (run in the skill directory, where {baseDir} is the installation path of @user_1060c188/sk-doubao-seedream):

python {baseDir}/scripts/generate.py config

Edit config.json:

{
    "api_key": "your-api-key",
    "default_model": "doubao-seedream-4-0-250828",
    "output_dir": "./generated-images"
}

Environment Variables (the script prioritizes reading VOLCENGINE_API_KEY):

export VOLCENGINE_API_KEY=your-api-key

The Key must be created in the “API Key Management” section of the Volcano Engine Ark Console, and ensure the account has access permissions for the corresponding image generation models.

Typical Usage

The following commands assume the current working directory is the skill root directory, or that paths have been replaced with actual installation locations.

View built-in model list:

python scripts/generate.py list

Text-to-Image:

python scripts/generate.py generate -p "a cute cat" -m "doubao-seedream-4-0-250828" -o "output.png"

Specify Size (Optional values listed in Skill docs include 512x512, 768x768, 1024x1024, 1024x2048, 2048x1024; models like 5.0/4.5 default to 1920x1928 in the script):

python scripts/generate.py generate -p "landscape painting" -s "1024x2048" -o "landscape.png"

Image-to-Image:

python scripts/generate.py edit -p "turn this cat into a tiger" -i "cat.png" -o "tiger.png"

Interactive Mode (select model, text-to-image/image-to-image, and prompts sequentially):

python scripts/generate.py

In an Agent session, you can directly describe your requirements (model, size, output path) and let the Agent call the above commands according to SKILL.md; generation results can also be written to the output_dir in config.json by default.

Applicable Scenarios and Notes

Who it is for

  • Users who have activated Volcano Engine Ark and need to stably call the Seedream series within coding Agents.
  • Teams or individuals who want to encapsulate Keys, model IDs, and size rules with a fixed script to reduce the need to write HTTP requests manually every time.

Limitations and Notes

  1. Dependencies & Costs: It calls Volcano Engine online APIs, which incur billing and quota limits; keep the Key secure and do not commit it to public repositories.
  2. Models & Sizes: Different models support different size values (e.g., 5.0/4.5 are limited to 1920x1928 in the script); mismatches may cause errors, so it is recommended to run list or check console permissions before generation.
  3. SkillHub Page Info: As of verification, the summary / overviewMd on the display page were empty; detailed instructions are subject to the SKILL.md inside the package; community statistics show 917 downloads and 3 installations (data embedded in the page, subject to change over time).
  4. Security Audit: The SkillHub page shows the package has passed third-party security scanning with a result of “Safe, no risks,” but it is still recommended to install in a trusted environment and review the scripts/generate.py source code yourself before configuring the Key.

Conclusion

sk-doubao-seedream consolidates Volcano Engine Seedream’s text-to-image, image-to-image, and multi-model selection into an installable Agent Skill: first install it into the corresponding skills directory via SkillHub, then configure VOLCENGINE_API_KEY or config.json, and you can use generate.py to generate images via the command line or Agent conversations. For more metadata and installation entry points, see: https://www.skillhub.cn/skills/user_1060c188/sk-doubao-seedream.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye