首页龙虾技能列表 › seedream(doubao)-image-generation — 技能工具

seedream(doubao)-image-generation — 技能工具

v1.0.6

Image generation via Volcengine Seedream API. Use this when you need to perform 文本到图像 (T2I), 图像到图像 (I2I), or general visual creative tasks.

1· 412·1 当前·1 累计
by @cp7553479·MIT-0
下载技能包
License
MIT-0
最后更新
2026/4/11
安全扫描
VirusTotal
可疑
查看报告
OpenClaw
可疑
medium confidence
The skill mostly does what it says (wraps Volcengine Seedream image generation) but contains a few inconsistencies and minor issues you should review before use (environment metadata mismatch, a likely Python bug, and the scripts will read local files and upload them to a remote API).
评估建议
This skill appears to implement a legit wrapper for Volcengine Seedream, but review and precaution are recommended before use: 1) Correct the metadata mismatch — SEEDREAM_BASE_URL is optional in code but listed as required in metadata. 2) Inspect the scripts locally (they will read any local image path you pass and upload its base64 to the remote API). Do not pass sensitive file paths. 3) Note a likely bug/partial truncation in the Python entrypoint (an undefined/truncated variable near the end)...
详细分析 ▾
用途与能力
The declared requirements (SEEDREAM_API_KEY and SEEDREAM_BASE_URL) and the included Python/JS wrappers align with the stated purpose of calling Volcengine Seedream for T2I/I2I. Minor incoherence: the registry metadata and SKILL.md list SEEDREAM_BASE_URL as a required env var, but both code files treat SEEDREAM_BASE_URL as optional (they default to the Volcengine endpoint). This mismatch should be corrected.
指令范围
Runtime instructions and scripts explicitly read user-supplied local image file paths, convert them to base64, and transmit them to the Seedream API; they also optionally download generated images to a local directory. That behavior is expected for I2I workflows, but it means any local file path you provide will be uploaded — a privacy/exfiltration risk if you pass sensitive files. The SKILL.md and scripts only reference the two declared env vars and the specified API endpoint.
安装机制
There is no install spec or remote download; the skill is instruction-plus-local-scripts only. The code uses standard stdlib network/file APIs. No third‑party install or remote archive is fetched during install.
凭证需求
The skill requests only SEEDREAM_API_KEY (primary) and SEEDREAM_BASE_URL. That is proportionate for a client of the Seedream API. Small inconsistency: registry metadata claims SEEDREAM_BASE_URL is required while code treats it as optional and uses a sensible default endpoint. JS also allows an override param 'api_key' at runtime which is acceptable but should be documented clearly.
持久化与权限
The skill does not request always:true and does not attempt to modify other skills or system-wide config. It does write files only when you explicitly pass a download_dir. Autonomous invocation is enabled by default but is not combined with other red flags here.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.62026/3/9

- Updated environment variables: now requires SEEDREAM_API_KEY and SEEDREAM_BASE_URL (was ARK_API_KEY). - Script files reorganized into the scripts/ directory; removed old and config files. - Added explicit support and documentation for the size parameter, including 2K, 3K, and 4K options. - Expanded troubleshooting section and updated guidance on environment setup. - Usage examples updated for the new script locations and parameter behavior.

● 可疑

安装命令 点击复制

官方npx clawhub@latest install seedream-image-generation
镜像加速npx clawhub@latest install seedream-image-generation --registry https://cn.clawhub-mirror.com

技能文档

This skill provides methods for calling the Volcengine Ark large model service platform's image generation models (Seedream).

Select Environment

The script provides implementations for both Python and JavaScript:

  • If your runtime is primarily Node.js/TypeScript or a web module, use scripts/seedream.js.
  • If your runtime involves complex data analysis, batch scheduling, or is purely Python, use scripts/seedream.py.

Supported Model Parameters (Model ID/Endpoint ID)

When invoking, the model parameter needs to be the deployment Endpoint ID from the Ark console (e.g., ep-202X...), which must be backed by one of the following foundational image generation models:

  • doubao-seedream-5-0-260128
  • doubao-seedream-4-5-251128
  • doubao-seedream-4-0-250828

Script Parameters

You must pass specific parameters to control the image generation. The available parameters are:

  • model (string, optional): Endpoint ID corresponding to the model. Defaults to doubao-seedream-5-0-260128.
  • prompt (string, required): Text description used to generate the image.
  • size (string, optional): Target image size. Supports "2K", "3K", "4K".
- doubao-seedream-5-0 supports 2K and 3K. - doubao-seedream-4 and doubao-seedream-4-5 support 2K and 4K. - If not provided, this parameter is completely ignored in the API request. - You can also specify the desired resolution directly in the prompt. It is highly recommended to explicitly state the resolution in the prompt for the best results.
  • image (string | list of strings, optional): Local image path or image path list used for image-to-image generation. The scripts will read the local file, convert it to base64, and send it as the request image field.
  • watermark (boolean, optional): Whether to add a Volcengine AI watermark. Unprovided value assumes false.
  • optimize_prompt_options (object, optional): Configure automatic prompt optimization options. Format: JSON object. E.g., {"mode": "standard"}.
  • tools (list of objects, optional): Capabilities options for the model, formatted as JSON. Example: [{"type": "web_search"}].
  • output_format (string, optional): The output image format. Options include png, jpeg.
  • sequential_image_generation (string, optional): Sequential image generation strategy (e.g., "auto").
  • download_dir (string, optional): Local directory to save the generated images. If not provided, images will not be downloaded locally, and only the API response will be returned.

Recommended width and height values

ResolutionAspect RatioDimensions
2K1:12048x2048
4:32304x1728
3:41728x2304
16:92848x1600
9:161600x2848
3:22496x1664
2:31664x2496
21:93136x1344
3K1:13072x3072
4:33456x2592
3:42592x3456
16:94096x2304
9:162304x4096
2:32496x3744
3:23744x2496
21:94704x2016
4K1:14096x4096
3:43520x4704
4:34704x3520
16:95504x3040
9:163040x5504
2:33328x4992
3:24992x3328
21:96240x2656

Usage Examples

Python Example:

python3 /scripts/seedream.py \
  --prompt "A cute orange cat laying under the sun" \
  --model "ep-xxxxx..." \
  --size "1024x1024" \
  --watermark "false" \
  --output_format "png"

Node.js Example:

node /scripts/seedream.js \
  --prompt "A cute orange cat laying under the sun" \
  --model "ep-xxxxx..." \
  --size "1024x1024" \
  --watermark "false" \
  --output_format "png"

python3 /scripts/seedream.py \ --prompt "Turn this product photo into a clean white-background ecommerce image" \ --image "/path/to/source.png" \ --model "ep-xxxxx..."

Example with Download Directory:

python3 /scripts/seedream.py \
  --prompt "A beautiful sunset over the mountains" \
  --download_dir "/Users/vincent/Downloads/generated_images" \
  --model "ep-xxxxx..."

python3 /scripts/seedream.py \ --prompt "A futuristic cityscape" \ --model "ep-xxxxx..." \ --optimize_prompt_options '{"mode": "standard"}' \ --tools '[{"type": "web_search"}]'

Troubleshooting

If the scripts encounter issues, please check the following:

  • SEEDREAM_API_KEY: (env, required) Ensure this API key is set in your environment. It is the core authentication for Volcengine Ark.
  • SEEDREAM_BASE_URL: (env, optional) Ensure this is correct if you are using a custom endpoint. Defaults to https://ark.cn-beijing.volces.com/api/v3/images/generations.

For more detailed API documentation, please visit: https://www.volcengine.com/docs/82379/1541523?lang=zh For more model id list or check the newest model id if required, please visit: https://www.volcengine.com/docs/82379/1330310?lang=zh#36969059, and then update this seedream-image-generation/SKILL.md file "Supported Model Parameters".

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务