Video Editing Tool Free
提供从赛道选择到交付的完整变现执行框架,助力个人创作者快速启动。
基于火山引擎Seedream 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。"2K"、"3K"、"4K"。 - doubao-seedream-5-0 支持 2K 和 3K。
- doubao-seedream-4 和 doubao-seedream-4-5 支持 2K 和 4K。
- 若未提供,该参数将完全忽略,不会发送至 API 请求。
- 也可在 prompt 中直接指定期望分辨率。强烈建议在 prompt 中明确写出分辨率,以获得最佳效果。
image 字段发送。false。{"mode": "standard"}。[{"type": "web_search"}]。png、jpeg。"auto")。| 分辨率 | 宽高比 | 尺寸 |
|---|---|---|
| 2K | 1:1 | 2048×2048 |
| 4:3 | 2304×1728 | |
| 3:4 | 1728×2304 | |
| 16:9 | 2848×1600 | |
| 9:16 | 1600×2848 | |
| 3:2 | 2496×1664 | |
| 2:3 | 1664×2496 | |
| 21:9 | 3136×1344 | |
| 3K | 1:1 | 3072×3072 |
| 4:3 | 3456×2592 | |
| 3:4 | 2592×3456 | |
| 16:9 | 4096×2304 | |
| 9:16 | 2304×4096 | |
| 2:3 | 2496×3744 | |
| 3:2 | 3744×2496 | |
| 21:9 | 4704×2016 | |
| 4K | 1:1 | 4096×4096 |
| 3:4 | 3520×4704 | |
| 4:3 | 4704×3520 | |
| 16:9 | 5504×3040 | |
| 9:16 | 3040×5504 | |
| 2:3 | 3328×4992 | |
| 3:2 | 4992×3328 | |
| 21:9 | 6240×2656 |
Python 示例:
python3 <current_skill_dir>/scripts/seedream.py \
--prompt "一只可爱的橙色猫咪躺在阳光下" \
--model "ep-xxxxx..." \
--size "2048x2048" \
--watermark "false" \
--output_format "png"Node.js 示例:
node <current_skill_dir>/scripts/seedream.js \
--prompt "一只可爱的橙色猫咪躺在阳光下" \
--model "ep-xxxxx..." \
--size "2048x2048" \
--watermark "false" \
--output_format "png"python3 <current_skill_dir>/scripts/seedream.py \
--prompt "将这张产品照片转为干净白底的电商图片" \
--image "/path/to/source.png" \
--model "ep-xxxxx..."包含下载目录的示例:
python3 <current_skill_dir>/scripts/seedream.py \
--prompt "壮丽的山间日落景色" \
--download_dir "/Users/vincent/Downloads/generated_images" \
--model "ep-xxxxx..."python3 <current_skill_dir>/scripts/seedream.py \
--prompt "未来感十足的城市景观" \
--model "ep-xxxxx..." \
--optimize_prompt_options '{"mode": "standard"}' \
--tools '[{"type": "web_search"}]'如脚本运行出现问题,请检查以下内容:
https://ark.cn-beijing.volces.com/api/v3/images/generations。更多详细 API 文档请访问:[https://www.volcengine.com/docs/82379/1541523?lang=zh](https://www.volcengine.com/docs/82379/1541523?lang=zh)
如需查询最新的模型 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