React Design Draft
根据内容自动生成可编辑的React风格信息图设计稿,支持单图与多图模式。
下载 231
通过火山引擎豆包API实现文本/图像生成,支持多种分辨率与格式。
openclaw skills install @cp7553479/seedream-image-generation命令、参数、文件名以原文为准
此技能提供调用火山引擎 Ark 大模型服务平台图像生成模型(Seedream)的方法。
脚本提供了 Python 和 JavaScript 两种实现:
调用时,model 参数需为 Ark 控制台中部署的端点 ID(例如:ep-202X...),该端点必须基于以下基础图像生成模型之一:
doubao-seedream-5-0-260128doubao-seedream-4-5-251128doubao-seedream-4-0-250828调用图像生成功能时,需传入特定参数以控制生成行为。可用参数如下:
doubao-seedream-5-0-260128。image 字段发送。false。{"mode": "standard"}。[{"type": "web_search"}]。png、jpeg。"auto")。| 分辨率 | 宽高比 | 尺寸 |
|---|---|---|
| 2K | 1:1 | 2048x2048 |
| 4:3 | 2304x1728 | |
| 3:4 | 1728x2304 | |
| 16:9 | 2848x1600 | |
| 9:16 | 1600x2848 | |
| 3:2 | 2496x1664 | |
| 2:3 | 1664x2496 | |
| 21:9 | 3136x1344 | |
| 3K | 1:1 | 3072x3072 |
| 4:3 | 3456x2592 | |
| 3:4 | 2592x3456 | |
| 16:9 | 4096x2304 | |
| 9:16 | 2304x4096 | |
| 2:3 | 2496x3744 | |
| 3:2 | 3744x2496 | |
| 21:9 | 4704x2016 |
Python 示例:
cd <current_skill_dir>
python3 seedream.py \
--prompt "一只在阳光下晒太阳的可爱橘猫" \
--model "ep-xxxxx..." \
--size "1024x1024" \
--watermark "false" \
--output_format "png"Node.js 示例:
cd <current_skill_dir>
node seedream.js \
--prompt "一只在阳光下晒太阳的可爱橘猫" \
--model "ep-xxxxx..." \
--size "1024x1024" \
--watermark "false" \
--output_format "png"图像到图像生成示例(Python):
cd <current_skill_dir>
python3 seedream.py \
--prompt "将这张产品照片转为干净白底的电商图片" \
--image "/path/to/source.png" \
--model "ep-xxxxx..."高级示例(含工具与提示优化,Python):
cd <current_skill_dir>
python3 seedream.py \
--prompt "一个未来感十足的城市景观" \
--model "ep-xxxxx..." \
--optimize_prompt_options '{"mode": "standard"}' \
--tools '[{"type": "web_search"}]'如需更详细的 API 文档,请访问:[https://www.volcengine.com/docs/82379/1541523?lang=zh](https://www.volcengine.com/docs/82379/1541523?lang=zh)
如需查看完整的模型 ID 列表或确认最新模型 ID,请访问:[https://www.volcengine.com/docs/82379/1330310?lang=zh#36969059](https://www.volcengine.com/docs/82379/1330310?lang=zh#36969059),并更新本文件 seedream-image-generation/SKILL.md 中的“支持的模型参数”部分。
已收录 1 个 Skill