seedream-image
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSeedream Image Generation
Seedream图像生成
Generate and edit AI images through AceDataCloud's Seedream (ByteDance) API.
Setup: See authentication for token setup.
通过AceDataCloud的Seedream(字节跳动)API生成和编辑AI图像。
设置: 请查看身份验证了解令牌设置方法。
Quick Start
快速开始
bash
curl -X POST https://api.acedata.cloud/seedream/images \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"prompt": "a cyberpunk cat wearing VR goggles in a neon city", "model": "doubao-seedream-5-0-260128"}'Async: See async task polling. Poll viawithPOST /seedream/tasks.{"id": "..."}
bash
curl -X POST https://api.acedata.cloud/seedream/images \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"prompt": "a cyberpunk cat wearing VR goggles in a neon city", "model": "doubao-seedream-5-0-260128"}'异步处理: 请查看异步任务轮询。通过接口传入POST /seedream/tasks进行轮询。{"id": "..."}
Models
模型
| Model | Version | Best For |
|---|---|---|
| Seedream 5.0 | Latest, highest quality (default) |
| Seedream 4.5 | High quality, balanced |
| Seedream 4.0 | Reliable generation |
| Seedream 3.0 T2I | Text-to-image, precise prompt following |
| SeedEdit 3.0 | Image-to-image editing |
| 模型 | 版本 | 适用场景 |
|---|---|---|
| Seedream 5.0 | 最新版本,画质最高(默认选项) |
| Seedream 4.5 | 画质出色,表现均衡 |
| Seedream 4.0 | 生成效果稳定可靠 |
| Seedream 3.0 T2I | 文本转图像,精准遵循提示词 |
| SeedEdit 3.0 | 图像转图像编辑 |
Workflows
工作流
1. Text-to-Image
1. 文本转图像
json
POST /seedream/images
{
"prompt": "a serene Japanese garden with cherry blossoms and a red bridge",
"model": "doubao-seedream-5-0-260128",
"size": "1K"
}json
POST /seedream/images
{
"prompt": "a serene Japanese garden with cherry blossoms and a red bridge",
"model": "doubao-seedream-5-0-260128",
"size": "1K"
}2. Image Editing (Image-to-Image)
2. 图像编辑(图像转图像)
Edit an existing image by providing the source image URL(s) and a descriptive prompt. Use the model for best editing results.
doubao-seededit-3-0-i2i-250628json
POST /seedream/images
{
"prompt": "change the sky to a golden sunset",
"model": "doubao-seededit-3-0-i2i-250628",
"image": ["https://example.com/photo.jpg"]
}通过提供源图像URL和描述性提示词来编辑现有图像。使用模型可获得最佳编辑效果。
doubao-seededit-3-0-i2i-250628json
POST /seedream/images
{
"prompt": "change the sky to a golden sunset",
"model": "doubao-seededit-3-0-i2i-250628",
"image": ["https://example.com/photo.jpg"]
}3. Async Generation with Task Polling
3. 异步生成与任务轮询
Pass a to receive results asynchronously via webhook, or poll for the result:
callback_url/seedream/tasksjson
POST /seedream/images
{
"prompt": "an epic fantasy landscape",
"model": "doubao-seedream-5-0-260128",
"callback_url": "https://api.acedata.cloud/health"
}Poll the returned :
task_idjson
POST /seedream/tasks
{"id": "<task_id>"}传入通过Webhook异步接收结果,或轮询获取结果:
callback_url/seedream/tasksjson
POST /seedream/images
{
"prompt": "an epic fantasy landscape",
"model": "doubao-seedream-5-0-260128",
"callback_url": "https://api.acedata.cloud/health"
}轮询返回的:
task_idjson
POST /seedream/tasks
{"id": "<task_id>"}Parameters
参数
Generation
生成参数
| Parameter | Values | Description |
|---|---|---|
| see Models table | Model to use (required) |
| string | Image description (required) |
| | Output resolution (e.g. |
| integer [-1, 2147483647] | Seed for reproducibility (Seedream 3.0 T2I / SeedEdit 3.0 only) |
| number [1, 10] | Prompt adherence strength (3.0 models only; T2I default 2.5, edit default 5.5) |
| | Generate related images in sequence (5.0, 4.5, 4.0 only) |
| boolean | Stream images as they're generated (5.0, 4.5, 4.0 only) |
| boolean | Add AI-generated watermark (default: true) |
| | Output file format (Seedream 5.0 only; default: jpeg) |
| | Response format (default: url) |
| array | Enable tools, e.g. |
| string | Webhook URL for async delivery; returns |
| 参数 | 可选值 | 说明 |
|---|---|---|
| 参考模型表格 | 使用的模型(必填) |
| 字符串 | 图像描述(必填) |
| | 输出分辨率(例如 |
| 整数 [-1, 2147483647] | 用于生成结果可复现的种子值(仅Seedream 3.0 T2I / SeedEdit 3.0支持) |
| 数值 [1, 10] | 提示词遵循强度(仅3.0系列模型支持;文本转图像默认值2.5,编辑默认值5.5) |
| | 按顺序生成关联图像(仅5.0、4.5、4.0版本支持) |
| 布尔值 | 生成图像时流式返回(仅5.0、4.5、4.0版本支持) |
| 布尔值 | 添加AI生成水印(默认:开启) |
| | 输出文件格式(仅Seedream 5.0支持;默认:jpeg) |
| | 返回格式(默认:url) |
| 数组 | 启用工具,例如 |
| 字符串 | 用于异步交付结果的Webhook URL;会立即返回 |
Editing
编辑参数
| Parameter | Required | Description |
|---|---|---|
| Yes (for editing) | Array of image URLs or base64 strings (max 10MB each) |
| Yes | Describe the desired edit |
| 参数 | 是否必填 | 说明 |
|---|---|---|
| 是(编辑场景) | 图像URL或base64字符串数组(单个文件最大10MB) |
| 是 | 描述期望的编辑效果 |
Gotchas
注意事项
- Model names now use the naming convention (e.g.
doubao-*)doubao-seedream-5-0-260128 - Image editing uses the same endpoint with the
/seedream/imagesarray parameter (no separate edit endpoint)image - replaces separate
size/widthparams; useheightfor 1024×1024,"1K"for 2048×2048, etc."2K" - size is only supported by Seedream 5.0;
3Kselects the best aspect ratio automaticallyadaptive - only works with
seedanddoubao-seedream-3-0-t2i-250415doubao-seededit-3-0-i2i-250628 - is only available for the 3.0-series models
guidance_scale - and
streamare only available for Seedream 5.0, 4.5, and 4.0sequential_image_generation - Pass to get a
callback_urlimmediately and avoid blocking; polltask_idfor the result — use/seedream/tasksas a placeholder to force async mode without a real webhook"https://api.acedata.cloud/health"
MCP:| Hosted:pip install mcp-seedream| See all MCP servershttps://seedream.mcp.acedata.cloud/mcp
- 模型名称现在采用命名规范(例如
doubao-*)doubao-seedream-5-0-260128 - 图像编辑使用同一个接口,只需传入
/seedream/images数组参数(无单独的编辑接口)image - 参数替代了原有的
size/width参数;height对应1024×1024,"1K"对应2048×2048,以此类推"2K" - 分辨率仅支持Seedream 5.0;
3K会自动选择最佳宽高比"adaptive" - 仅对
seed和doubao-seedream-3-0-t2i-250415生效doubao-seededit-3-0-i2i-250628 - 仅适用于3.0系列模型
guidance_scale - 和
stream仅支持Seedream 5.0、4.5和4.0版本sequential_image_generation - 传入可立即获取
callback_url并避免阻塞;轮询task_id获取结果 — 可使用/seedream/tasks作为占位符,强制开启异步模式无需真实Webhook"https://api.acedata.cloud/health"
MCP:| 托管地址:pip install mcp-seedream| 查看所有MCP服务器https://seedream.mcp.acedata.cloud/mcp