← Back to Skills Marketplace
179
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install sjht-doubao-image-gen
Description
使用豆包 Seedream 模型文生图,支持并发批量生成,输出图库预览页
Usage Guidance
This skill appears to do what it claims (call Volcengine/ARK/doubao Seedream to generate images). Before installing: provide a dedicated ARK API key (the code reads ARK_API_KEY or ~/.doubao-image-gen/.env or --api-key), confirm you are comfortable the agent will make network requests to https://ark.cn-beijing.volces.com and download image URLs, and ensure Python packages (openai, requests) are installed. Note the registry metadata did not declare the ARK_API_KEY requirement — that's likely an omission, not malicious, but verify you only supply API keys you trust and consider keeping the key scoped/limited by the provider. If you need the agent to avoid reading your home dir, remove or relocate any ~/.doubao-image-gen/.env file before use.
Capability Analysis
Type: OpenClaw Skill
Name: sjht-doubao-image-gen
Version: 1.0.0
The skill provides legitimate text-to-image generation capabilities using the Doubao Seedream model via Volcengine's official API. The Python script (scripts/gen.py) follows standard practices for API key management (CLI, environment variables, and a local config file), handles concurrent requests safely, and generates a local HTML gallery. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
Capability Assessment
Purpose & Capability
Name/description, SKILL.md, and the included script all describe the same functionality (calling doubao-seedream via the Volcengine ARK API to produce images). However, the registry metadata lists no required environment variables while the SKILL.md and scripts expect an API key (ARK_API_KEY). The requested credential is appropriate for the claimed purpose, but the registry omission is an inconsistency.
Instruction Scope
SKILL.md instructs the agent to optimize prompts and invoke the included Python script to generate images. The script reads API key from CLI → ARK_API_KEY env var → ~/.doubao-image-gen/.env, performs HTTP API calls to the ARK endpoint, downloads image URLs, writes files (images, prompts.json, index.html) to the output directory, and prints GENERATED_IMAGE lines for AI consumption. There are no instructions to read unrelated system files or exfiltrate arbitrary data beyond the API-key-based network calls needed for image generation.
Install Mechanism
There is no install spec (instruction-only plus a shipped script). Dependencies are normal Python libs (openai and requests). No remote downloads or obscure install sources are used. The script will require the user/agent to have Python and the noted Python packages available.
Credentials
The only credential the code uses is an ARK API key (ARK_API_KEY), which is proportional to calling the external image generation API. The inconsistency is that the registry metadata did not declare this required environment variable or primary credential; the SKILL.md and script do require it (or CLI flag). No other unrelated secrets or credentials are requested.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide settings. It writes files only to the specified output directory (or a timestamped folder) and may read a per-user config file in ~/.doubao-image-gen/.env to obtain the API key—this is part of its own configuration scope and not an elevation of privilege.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install sjht-doubao-image-gen - After installation, invoke the skill by name or use
/sjht-doubao-image-gen - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
# Changelog
All notable changes to **doubao-image-gen** will be documented in this file.
---
## [1.0.0] - 2026-03-17
### Added
- 初始版本发布
- 基于火山引擎豆包 `doubao-seedream-5-0-260128` 模型实现文生图能力
- 支持并发批量生成,默认 4 线程同时调用 API(`--count` + `--workers` 参数)
- 支持多种图像尺寸:`1024x1024` / `2K` / `4K` / `1280x720` / `720x1280` / `2048x2048` 等
- API Key 三级读取机制:CLI 参数 → 环境变量 `ARK_API_KEY` → `~/.doubao-image-gen/.env` 文件
- 生成结果自动下载为 `.jpeg` 并按序号命名
- 自动输出 `prompts.json`(提示词与文件映射记录)
- 自动生成 `index.html` 图库预览页,暗色赛博风 UI,支持悬停动效
- `--dry-run` 模式:仅打印参数不消耗 API 调用
- `--watermark` 开关:默认关闭水印
- 输出 `GENERATED_IMAGE: 路径` 格式,便于 AI 直接引用图片发送到聊天
- 完整的 AI 使用指引:触发词识别、提示词优化建议、标准调用流程
### Notes
- 模型名称 `doubao-seedream-5-0-260128` 无需在火山方舟控制台创建推理接入点,直接用 API Key 即可调用
- 依赖:`openai>=1.0`、`requests`
Metadata
Frequently Asked Questions
What is sjht doubao text to image?
使用豆包 Seedream 模型文生图,支持并发批量生成,输出图库预览页. It is an AI Agent Skill for Claude Code / OpenClaw, with 179 downloads so far.
How do I install sjht doubao text to image?
Run "/install sjht-doubao-image-gen" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is sjht doubao text to image free?
Yes, sjht doubao text to image is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does sjht doubao text to image support?
sjht doubao text to image is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created sjht doubao text to image?
It is built and maintained by Aowind (@aowind); the current version is v1.0.0.
More Skills