byted-seedream-image-generate
Description
Generate high-quality images from text prompts using Volcano Engine Seedream models. This skill provides access to three powerful Seedream model versions (4.0, 4.5, and 5.0-lite), each offering unique capabilities for different use cases.
When to Use This Skill
Use this skill when:
- - Users want to create images from text descriptions
- Users need to generate artwork in various artistic styles
- Users want to create visual content for creative projects
- Users need AI-powered image generation capabilities
- Users want to convert reference images to different styles
- Users need to generate multiple images in batch
- Users require high-quality, professional-looking images
Model Versions
| Version | Model Name | Release Date | Recommendation | Best For |
|---|
| 4.0 | doubao-seedream-4-0-250828 | August 2025 | ⭐⭐⭐ | Daily use, quick generation |
| 4.5 |
doubao-seedream-4-5-251128 | November 2025 | ⭐⭐⭐⭐ | Detail-oriented work, complex scenes |
| 5.0 | doubao-seedream-5-0-260128 | 2026 | ⭐⭐⭐⭐⭐ | Highest quality, best creativity, tools support |
Features
- - Text-to-Image: Generate images from detailed text descriptions
- Image-to-Image: Transform reference images into different styles
- Batch Generation: Create multiple images in a single request
- Multiple Versions: Choose from 4.0, 4.5, or 5.0-lite models
- Watermark Control: Option to disable watermarks
- Custom Sizes: Support for various image dimensions
- Output Formats: PNG and JPEG formats (5.0-lite only)
- Web Search Tools: Internet search integration (5.0-lite only)
Installation & Setup
Prerequisites
CODEBLOCK0
The script will prioritize:
- 1. Environment variables (
ARK_API_KEY, MODEL_IMAGE_API_KEY, MODEL_AGENT_API_KEY) - Environment variables (
ARK_BASE_URL, MODEL_IMAGE_API_BASE) - Default values
Usage
Basic Usage (5.0-lite version recommended)
CODEBLOCK1
Specify Version
CODEBLOCK2
Advanced Options
CODEBLOCK3
Command Line Options
| Option | Shortcut | Description | Default |
|---|
| INLINECODE5 | INLINECODE6 | Image description text (required) | - |
| INLINECODE7 |
-v | Version selection:
4.0,
4.5,
5.0 |
5.0 |
|
--size |
-s | Image dimensions |
2048x2048 |
|
--image |
-i | Single reference image URL | - |
|
--images | - | Multiple reference image URLs (space separated) | - |
|
--group |
-g | Enable batch image generation |
false |
|
--max-images | - | Maximum images for batch generation |
15 |
|
--output-format | - | Output format:
png or
jpeg (5.0 only) |
jpeg |
|
--response-format | - | Response format:
url or
b64_json |
url |
|
--stream | - | Enable streaming output |
false |
|
--web-search | - | Enable web search tool (5.0 only) |
false |
|
--optimize-prompt-mode | - | Prompt optimization mode:
standard or
fast | - |
|
--timeout |
-t | Timeout in seconds |
1200 |
|
--no-watermark | - | Disable watermark |
false |
|
--list-versions | - | List all supported versions | - |
Python API Usage
CODEBLOCK4
Version Selection Guide
Choose 4.0 if:
- - You need quick daily generation
- Quality requirements are not extremely high
- You need faster generation speed
- Simple scenes and styles
Choose 4.5 if:
- - You want richer details
- You're working with complex scenes
- You need better style reproduction
- You have moderate quality requirements
Choose 5.0-lite (Recommended) if:
- - You want the highest quality
- You need breakthrough creative expression
- You have extreme detail requirements
- You need tools parameter (like web search) ⭐
- You need custom output format (png/jpeg) ⭐
- Important projects and work
When in doubt, use 5.0-lite! ⭐
Prompt Engineering Tips
Basic Prompt Structure
CODEBLOCK5
Advanced Prompts (Optimized for 5.0-lite)
CODEBLOCK6
Parameter Support by Version
| Parameter | Seedream 4.0 | Seedream 4.5 | Seedream 5.0-lite | Description |
|---|
| model | ✅ | ✅ | ✅ | Model name |
| prompt |
✅ | ✅ | ✅ | Prompt (required) |
| image | ✅ | ✅ | ✅ | Reference image(s) |
| size | ✅ | ✅ | ✅ | Image dimensions |
| sequential
imagegeneration | ✅ | ✅ | ✅ | Batch generation control |
| sequential
imagegeneration_options | ✅ | ✅ | ✅ | Batch generation config |
| response
format | ✅ | ✅ | ✅ | Response format (url/b64json) |
| watermark | ✅ | ✅ | ✅ | Watermark (true/false) |
| stream | ✅ | ✅ | ✅ | Streaming output |
| optimize
promptoptions | ✅ | ✅ | ✅ | Prompt optimization config |
|
tools | ❌ | ❌ |
✅ | Tool configuration (5.0-lite only) |
|
output_format | ❌ | ❌ |
✅ | Output format (png/jpeg, 5.0-lite only) |
Final Return Info
You should return three types of information:
- 1. File format, return the image file (if you have some other methods to send the image file) and the local path of the image, for example:
local_path: /root/.openclaw/workspace/skills/image-generate/xxx.png
- 2. After generation, show list of images with Markdown format, for example:
CODEBLOCK7
FAQ
Q: What's the difference between the versions?
A: 4.0 is for quick daily use, 4.5 offers better details for complex scenes, and 5.0-lite provides the highest quality with unique tools support.
Q: How long are generated URLs valid?
A: URLs are valid for 24 hours. Please download and save your images promptly.
Q: What image formats are supported for references?
A: Common formats like JPG and PNG are supported, provided via URL or Base64.
Q: Can I use multiple versions in one call?
A: Currently, only one version per call. For comparisons, make separate calls for different versions.
License
This skill is licensed under the Apache License 2.0. See the LICENSE file for details.
Notice
Please comply with Volcano Engine's terms of service and relevant laws and regulations when using this skill.
byted-seedream-image-generate
描述
使用火山引擎Seedream模型,根据文本提示生成高质量图像。本技能提供三个强大的Seedream模型版本(4.0、4.5和5.0-lite),每个版本针对不同使用场景具备独特能力。
使用时机
在以下情况下使用本技能:
- - 用户希望根据文本描述创建图像
- 用户需要生成各种艺术风格的图像作品
- 用户希望为创意项目创建视觉内容
- 用户需要AI驱动的图像生成能力
- 用户希望将参考图像转换为不同风格
- 用户需要批量生成多张图像
- 用户需要高质量、专业外观的图像
模型版本
| 版本 | 模型名称 | 发布日期 | 推荐指数 | 最佳用途 |
|---|
| 4.0 | doubao-seedream-4-0-250828 | 2025年8月 | ⭐⭐⭐ | 日常使用,快速生成 |
| 4.5 |
doubao-seedream-4-5-251128 | 2025年11月 | ⭐⭐⭐⭐ | 注重细节的工作,复杂场景 |
| 5.0 | doubao-seedream-5-0-260128 | 2026年 | ⭐⭐⭐⭐⭐ | 最高质量,最佳创意,工具支持 |
功能特性
- - 文生图:根据详细文本描述生成图像
- 图生图:将参考图像转换为不同风格
- 批量生成:单次请求创建多张图像
- 多版本选择:可选4.0、4.5或5.0-lite模型
- 水印控制:可选择禁用图像水印
- 自定义尺寸:支持多种图像尺寸
- 输出格式:PNG和JPEG格式(仅5.0-lite)
- 联网搜索工具:集成互联网搜索功能(仅5.0-lite)
安装与设置
前提条件
bash
必需:API密钥配置
export MODEL
IMAGEAPI_KEY=your-api-key-here
或
export MODEL
AGENTAPI_KEY=your-api-key-here
或
export ARK
APIKEY=your-api-key-here
可选:API基础URL(默认已配置)
export MODEL
IMAGEAPI_BASE=https://ark.cn-beijing.volces.com/api/v3
或
export ARK
BASEURL=https://ark.cn-beijing.volces.com/api/v3
脚本将按以下优先级读取配置:
- 1. 环境变量(ARKAPIKEY、MODELIMAGEAPIKEY、MODELAGENTAPIKEY)
- 环境变量(ARKBASEURL、MODELIMAGEAPI_BASE)
- 默认值
使用方法
基本用法(推荐5.0-lite版本)
bash
cd scripts
python seedreamimagegenerate.py -p 一只在花园里玩耍的可爱小猫
指定版本
bash
使用4.0版本
python seedream
imagegenerate.py -p 一只可爱的小猫 --version 4.0
使用4.5版本
python seedream
imagegenerate.py -p 一只可爱的小猫 --version 4.5
使用5.0-lite版本(推荐)
python seedream
imagegenerate.py -p 一只可爱的小猫 --version 5.0
高级选项
bash
自定义尺寸,无水印
python seedream
imagegenerate.py -p 美丽的日落 -s 2048x2048 --no-watermark --version 5.0
批量生成
python seedream
imagegenerate.py -p 生成3张可爱的狗狗图片 -g --max-images 3 --version 4.5
图生图
python seedream
imagegenerate.py -p 将此图像转换为动漫风格 -i https://example.com/image.jpg --version 5.0
联网搜索工具(仅5.0-lite)
python seedream
imagegenerate.py -p 2026年最新智能手机 --web-search --version 5.0
自定义输出格式(仅5.0-lite)
python seedream
imagegenerate.py -p 美丽的风景 --output-format png --version 5.0
列出所有支持的版本
python seedream
imagegenerate.py --list-versions
命令行选项
| 选项 | 缩写 | 描述 | 默认值 |
|---|
| --prompt | -p | 图像描述文本(必需) | - |
| --version |
-v | 版本选择:4.0、4.5、5.0 | 5.0 |
| --size | -s | 图像尺寸 | 2048x2048 |
| --image | -i | 单张参考图像URL | - |
| --images | - | 多张参考图像URL(空格分隔) | - |
| --group | -g | 启用批量图像生成 | false |
| --max-images | - | 批量生成的最大图像数量 | 15 |
| --output-format | - | 输出格式:png或jpeg(仅5.0) | jpeg |
| --response-format | - | 响应格式:url或b64_json | url |
| --stream | - | 启用流式输出 | false |
| --web-search | - | 启用联网搜索工具(仅5.0) | false |
| --optimize-prompt-mode | - | 提示词优化模式:standard或fast | - |
| --timeout | -t | 超时时间(秒) | 1200 |
| --no-watermark | - | 禁用图像水印 | false |
| --list-versions | - | 列出所有支持的版本 | - |
Python API用法
python
import asyncio
import sys
sys.path.append(scripts)
from seedreamimagegenerate import seedream_generate
async def main():
# 使用5.0-lite版本(默认)
result = await seedream_generate([
{
prompt: 一只可爱的小猫,
size: 2048x2048,
watermark: False,
output_format: png # 仅5.0-lite
}
], version=5.0)
print(result)
asyncio.run(main())
版本选择指南
选择4.0的情况:
- - 需要快速日常生成
- 质量要求不是特别高
- 需要更快的生成速度
- 简单的场景和风格
选择4.5的情况:
- - 希望获得更丰富的细节
- 处理复杂场景
- 需要更好的风格还原
- 中等质量要求
选择5.0-lite(推荐)的情况:
- - 追求最高质量
- 需要突破性的创意表达
- 有极致的细节要求
- 需要使用工具参数(如联网搜索) ⭐
- 需要自定义输出格式(png/jpeg) ⭐
- 重要项目和工作
如有疑问,请使用5.0-lite! ⭐
提示词工程技巧
基础提示词结构
[主体描述] + [风格/艺术流派] + [光照/氛围] + [质量/分辨率]
高级提示词(针对5.0-lite优化)
[主体描述], [创意风格/艺术流派], [独特视角/构图], [特殊光照/氛围], [强调5.0-lite创意表达]
各版本参数支持情况
| 参数 | Seedream 4.0 | Seedream 4.5 | Seedream 5.0-lite | 描述 |
|---|
| model | ✅ | ✅ | ✅ | 模型名称 |
| prompt |
✅ | ✅ | ✅ | 提示词(必需) |
| image | ✅ | ✅ | ✅ | 参考图像 |
| size | ✅ | ✅ | ✅ | 图像尺寸 |
| sequential
imagegeneration | ✅ | ✅ | ✅ | 批量生成控制 |
| sequential
imagegeneration_options | ✅ | ✅ | ✅ | 批量生成配置 |
| response
format | ✅ | ✅ | ✅ | 响应格式(url/b64json) |
| watermark | ✅ | ✅ | ✅ | 水印(true/false) |
| stream | ✅ | ✅ | ✅ | 流式输出 |
| optimize
promptoptions | ✅ | ✅ | ✅ | 提示词优化配置 |
|
tools | ❌ | ❌ |
✅ | 工具配置(仅5