支持能力
Seedream 5.0 Pro 支持文生图和图生图,使用 OpenAI Images API 兼容格式。
模型代码为 doubao-seedream-5-0-pro。
模型与能力
| 模型 | 分辨率 | 参考图 | 单次张数 | 计费 |
|---|---|---|---|---|
doubao-seedream-5-0-pro |
1K / 2Ksize 填档位 |
最多 14 张 (公网 URL / 本地文件) | 最多 4 张 | 按张 |
**支持的比例:**auto
| 模型 | response_format |
|---|---|
doubao-seedream-5-0-pro |
url / b64_json |
size 与 quality 填同一个档位(1K 或 2K),价格按档位和张数计算。
接口与鉴权
接口基地址:https://apipaths.com
Authorization: Bearer $API_KEY
Content-Type: application/json
| 场景 | 请求方法 | 端点 |
|---|---|---|
| 文生图 | POST |
/v1/images/generations |
| 公网参考图编辑 | POST |
/v1/images/generations |
| 本地图片编辑 | POST |
/v1/images/edits |
文生图
curl https://apipaths.com/v1/images/generations \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedream-5-0-pro",
"prompt": "一只穿着红色唐装的小柴犬,国潮插画风格,喜庆温馨",
"n": 1,
"size": "1K",
"quality": "1K",
"response_format": "url"
}'
图生图
公网参考图
单张参考图使用 image,多张参考图使用 images。参考图必须是公网 HTTP(S) URL,
两者合计最多 14 张。
curl https://apipaths.com/v1/images/generations \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedream-5-0-pro",
"prompt": "保留人物主体和构图,将服装改成蓝色户外夹克",
"image": "https://example.com/reference.jpg",
"size": "2K",
"quality": "2K",
"response_format": "url"
}'
多张参考图示例:
{
"model": "doubao-seedream-5-0-pro",
"prompt": "融合参考图中的主体和色彩",
"images": [
"https://example.com/reference-1.jpg",
"https://example.com/reference-2.jpg"
],
"size": "2K",
"quality": "2K"
}
本地图片
本地图片使用 multipart 请求,每次上传一张:
curl https://apipaths.com/v1/images/edits \
-H "Authorization: Bearer $API_KEY" \
-F "model=doubao-seedream-5-0-pro" \
-F "prompt=把背景改成浅色摄影棚" \
-F "image=@reference.png" \
-F "size=2K" \
-F "quality=2K" \
-F "response_format=url"
请求参数
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
model |
string | 是 | — | doubao-seedream-5-0-pro |
prompt |
string | 是 | — | 文生图描述或图生图编辑指令 |
n |
integer | 否 | 1 |
1 到 4 |
size |
string | 否 | — | 1K 或 2K |
quality |
string | 否 | — | 1K 或 2K |
response_format |
string | 否 | url |
url 或 b64_json |
image |
string / file | 否 | — | 单张公网参考图 URL,或编辑端点中的上传文件 |
images |
array[string] | 否 | — | 公网参考图 URL 数组,最多 14 张 |
响应格式
{
"created": 1760000000,
"data": [
{
"url": "https://..."
}
],
"model": "doubao-seedream-5-0-pro"
}
response_format 为 url 时读取 data[].url;为 b64_json 时读取
data[].b64_json。