ByteDance Seedseedream-5.5
字节跳动 Seedream 5.5,支持文生图和多图参考改图
$0.02/ 张生成失败不扣费
- 支持文生图、参考图生图
- 1K $0.02、2K $0.035
- 每张参考图 $0.008
- 最多 8 张参考图
- 模态
- 图像
- 端点
- /v1/images/generations · /v1/images/edits
- 模型 ID
- seedream-5.5
- 供应商
- ByteDance Seed
Seedream 5.5 API 概览
文档化的端点
图片请求发送到 /v1/images/generations · /v1/images/edits。下方参数表列出了此请求面支持的字段。
模型提供方
Seedream 5.5 的模型提供方是 ByteDance Seed,请求使用模型 ID seedream-5.5。
输出与限制
每张返回图片 1K 为 $0.02、2K 为 $0.035,每张参考图另加 $0.008;11 种比例;最多 8 张参考图;每次请求 1 张;输出 PNG。文生图约 20 秒,带参考图更久,常常超过 1 分钟。
Seedream 5.5 API 价格
| 计费项 | ArgoLink 价格 |
|---|---|
| 1K | $0.02 / 张 |
| 2K | $0.035 / 张 |
每张返回图片 1K 为 $0.02、2K 为 $0.035,每张参考图另加 $0.008;11 种比例;最多 8 张参考图;每次请求 1 张;输出 PNG。文生图约 20 秒,带参考图更久,常常超过 1 分钟。
出图尺寸
每种 aspect_ratio 和 resolution 下返回图片的像素尺寸。
| 宽高比 | 1K | 2K |
|---|---|---|
| 1:1 | 1088x1088 | 1984x1984 |
| 16:9 | 1472x832 | 2656x1504 |
| 9:16 | 832x1472 | 1504x2656 |
| 4:3 | 1280x960 | 2304x1728 |
| 3:4 | 960x1280 | 1728x2304 |
| 3:2 | 1344x896 | 2464x1632 |
| 2:3 | 896x1344 | 1632x2464 |
| 21:9 | 1664x704 | 3040x1312 |
| 2:1 | 1536x768 | 2816x1408 |
| 1:2 | 768x1536 | 1408x2816 |
| 9:21 | 704x1664 | 1312x3040 |
Seedream 5.5 API 参考
快速开始
在控制台创建 API Key,然后使用本页显示的 Base URL、端点和请求体发送请求。
curl https://argolink.io/v1/images/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream-5.5",
"prompt": "A lighthouse above a stormy coastline at dusk",
"aspect_ratio": "16:9",
"resolution": "2k",
"n": 1,
"response_format": "b64_json"
}'
import os
import requests
response = requests.post(
"https://argolink.io/v1/images/generations",
headers={"Authorization": f"Bearer {os.environ['ARGOLINK_API_KEY']}"},
json={
"model": "seedream-5.5",
"prompt": "A lighthouse above a stormy coastline at dusk",
"aspect_ratio": "16:9",
"resolution": "2k",
"n": 1,
"response_format": "b64_json",
},
timeout=600,
)
response.raise_for_status()
print(response.json())
const response = await fetch("https://argolink.io/v1/images/generations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.ARGOLINK_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "seedream-5.5",
prompt: "A lighthouse above a stormy coastline at dusk",
aspect_ratio: "16:9",
resolution: "2k",
n: 1,
response_format: "b64_json",
}),
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());
模式
文生图
只写一句提示词就出图
只有 prompt 必填。aspect_ratio 定画幅,resolution 选 1k 或 2k。
curl https://argolink.io/v1/images/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream-5.5",
"prompt": "石台上的一只绿色玻璃瓶,电影感产品照",
"aspect_ratio": "16:9",
"resolution": "2k",
"n": 1
}'
| 字段 | 取值 |
|---|---|
prompt | 必填;写清画面内容 |
aspect_ratio | 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 21:9 · 2:1 · 1:2 · 9:21;不传为 1:1 |
resolution | 1k · 2k;不传为 2k |
n | 只能为 1;每次请求 1 张 |
response_format | url 或 b64_json;不传为 b64_json |
每张图片以 base64 编码放在 data[].b64_json 里返回。传 response_format 为 url 时,改为在 data[].url 返回图片链接,保留 7 天。请求要等图片全部生成完才返回,客户端超时建议至少 600 秒。
参考图生图
给参考图,照着它们出图
参考图发到 /v1/images/edits,提示词里写清保留什么、改什么。图片链接用 JSON 传,本地文件用 multipart 上传,一次请求只用其中一种。
curl https://argolink.io/v1/images/edits \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream-5.5",
"images": [
{"image_url": "https://example.com/reference-1.png"},
{"image_url": "https://example.com/reference-2.png"}
],
"prompt": "保留瓶子,把它放到日落时的海滩上",
"aspect_ratio": "4:3",
"resolution": "2k",
"n": 1
}'
curl https://argolink.io/v1/images/edits \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-F "model=seedream-5.5" \
-F "prompt=保留瓶子,把它放到日落时的海滩上" \
-F "image[]=@./reference-1.png" \
-F "image[]=@./reference-2.png" \
-F "aspect_ratio=4:3" \
-F "resolution=2k" \
-F "n=1"
| 字段 | 取值 |
|---|---|
images | JSON:每张参考图一个 image_url 对象,填公网 HTTPS 地址或 data URL;最多 8 张,合计不超过 48 MB |
image[] | multipart:每个本地文件重复一个 image[] 字段;最多 8 张,合计不超过 48 MB |
prompt | 必填;写清保留什么、改什么 |
aspect_ratio | 取值与文生图相同;不传为 1:1,不跟随参考图的比例 |
resolution · n | 取值与文生图相同 |
Seedream 5.5 完整请求参数
| 参数 | 类型 | 要求 | 作用 |
|---|---|---|---|
model | string | 必填 | 本页对应的模型标识:seedream-5.5。 |
prompt | string | 必填 | 描述要生成的图片,或说明要对输入图片进行的编辑。 |
aspect_ratio | string | 可选 | 输出画幅:可选 1:1、16:9、9:16、4:3、3:4、3:2、2:3、21:9、2:1、1:2、9:21。不传为 1:1,图生图也是,不跟随参考图的比例。 |
resolution | string | 可选 | 输出档位:1k 或 2k,不传为 2k。 |
n | integer | 可选 | 只能为 1:每次请求 1 张。 |
response_format | string | 可选 | url 在 data[].url 返回每张图片的链接,保留 7 天;b64_json 是不传时的默认值,图片以 base64 编码放在 data[].b64_json 返回。 |
images | array | 仅编辑 | JSON 编辑参考图。每个参考图发送一个 image_url 对象;使用公开 HTTPS URL 或 data URL,最多 8 张,合计不超过 48 MB。 |
image[] | file | 仅编辑 | multipart 编辑参考图。每个本地参考文件重复一个 image[] 字段,最多 8 张,合计不超过 48 MB。 |
Seedream 5.5 API 与同类模型对比
| 模型 | 模型 ID | 供应商 | 价格 | 适用场景 |
|---|---|---|---|---|
| Seedream 5.5 | seedream-5.5 | ByteDance Seed | $0.02 / 张 | 字节跳动 Seedream 5.5,支持文生图和多图参考改图 |
| Seedream 5.0 Flash | seedream-5.0-flash | ByteDance Seed | $0.015 / 张 | 字节跳动 Seedream 5.0 的快速版,出图快,也能多图参考改图 |
| Seedream 5.0 Pro | seedream-5.0-pro | ByteDance Seed | $0.03 / 张 | 字节跳动最强的 Seedream 模型,擅长精准出图和多图参考改图 |
同模态的其他模型
Seedream 5.5 API 常见问题
如何调用 Seedream 5.5?
在控制台创建 API Key;文生图请求 POST /v1/images/generations,参考图生图请求 POST /v1/images/edits,model 填 seedream-5.5。
Seedream 5.5 如何计费?
每张返回图片 1K 为 $0.02、2K 为 $0.035,每张参考图另加 $0.008;每次请求返回 1 张,所以带两张参考图的 2K 改图一次 $0.051。
支持哪些比例和分辨率?
aspect_ratio 可选 1:1、16:9、9:16、4:3、3:4、3:2、2:3、21:9、2:1、1:2、9:21;resolution 可选 1k 或 2k,默认 2k;n 只能为 1。
如何发送参考图?
向 /v1/images/edits 发送,最多 8 张参考图。JSON 使用 images 数组,每张参考图一个 image_url 对象;multipart 为每个本地文件重复一个 image[] 字段。