Seedream 5.5

字节跳动图片生成按请求档位定价

Seedream 5.5 (doubao-seedream-5-5) is ByteDance's latest text-to-image and image-editing model. It produces 1K to 2K images (up to about 4.6M pixels) with strong text rendering, accepts up to 10 reference images, and supports transparent-background editing and layer decomposition. Priced per image: images above 2.61M pixels cost more, and every reference image is billed. Layer decomposition reserves the 17-layer maximum and is settled per layer returned when the task finishes; every other request is charged in full at submission.

价格

$0.017075/ 次

Max

$0.015367/ 次

端点

/images/tasks

交付模式

异步任务生命周期

可用状态

当前可用

API 文档

配置并复制请求

选择这个模型支持的选项,下面的代码会实时更新。

在文档里一步步看
POSThttps://apiking.ai/v1/images/tasksBearer API key异步任务

选项这里只展示当前模型已公开支持的选项。

# Requires curl and jq
API_KEY="${API_KEY:-YOUR_API_KEY}"

# 1. Submit once
SUBMITTED=$(curl --fail-with-body -sS https://apiking.ai/v1/images/tasks \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: model-docs-$(date +%s)-$$" \\
  -d '{
  "model": "Seedream 5.5",
  "prompt": "A cinematic scene with careful composition",
  "size": "auto",
  "resolution": "1K",
  "n": 1,
  "output_format": "jpeg",
  "watermark": false
}')
TASK_ID=$(printf '%s' "$SUBMITTED" | jq -r '.task_id // .id // empty')
if [ -z "$TASK_ID" ]; then
  printf '%s\n' "$SUBMITTED" >&2
  exit 1
fi
echo "task_id=$TASK_ID"

# 2. Poll until terminal
while true; do
  STATUS_JSON=$(curl --fail-with-body -sS \
    "https://apiking.ai/v1/images/tasks/$TASK_ID" \
    -H "Authorization: Bearer $API_KEY")
  STATUS=$(printf '%s' "$STATUS_JSON" | jq -r '.status // empty' | tr '[:upper:]' '[:lower:]')
  echo "status=$STATUS"
  case "$STATUS" in
    completed|succeeded|success) break ;;
    failed|failure|cancelled|canceled)
      printf '%s\n' "$STATUS_JSON" | jq .
      exit 1
      ;;
  esac
  sleep 3
done

# 3. Fetch the final result
curl --fail-with-body -sS \
  "https://apiking.ai/v1/images/tasks/$TASK_ID/content" \
  -H "Authorization: Bearer $API_KEY" | jq .
  1. 1提交任务
  2. 2轮询状态
  3. 3获取结果内容

生产环境推荐使用公网媒体地址。 先上传本地文件,再把 public_url 放入模型请求;避免发送大体积 Base64 请求体。

查看上传指南

参数说明

model
string必填

本次请求使用的精确模型标识。

doubao-seedream-5-5
prompt
string可选

Generation/editing instruction. Optional only when layer_decomposition is true.

images
string[]可选

Optional reference image URLs or data URIs, up to 10; each one is billed. Layer decomposition and transparent editing require exactly one image.

size
string可选

auto, 1K, 1.5K, 2K, a supported aspect ratio, or an exact WIDTHxHEIGHT value. Exact pixels must total 921600..4624220; above 2.61M pixels the higher price applies.

resolution
string可选

请求的输出分辨率。

1K1.5K2K
n
integer可选
1

响应流程

查看任务状态、终态和结果响应示例。

提交
{
  "id": "task_xxx",
  "task_id": "task_xxx",
  "object": "image.task",
  "model": "Seedream 5.5",
  "status": "queued"
}
结果内容
{
  "created": 1720000000,
  "data": [
    {
      "url": "https://media.example/result.png"
    }
  ]
}

等待中

queued · submitted · in_progress · processing

成功

completed · succeeded · success

失败

failed · failure · cancelled · canceled

错误与生产配置

查看重试规则、幂等要求和最小生产检查清单。

400 / 422

修正请求字段或不支持的选项,不要原样重试。

401

检查 API 密钥是否存在、有效,并已通过 Bearer Token 发送。

402

账户余额不足。

409

Idempotency-Key 正在处理中,或已被其他请求体使用。

429

按照 Retry-After 退避后再重试。

5xx

使用指数退避重试,并保留原始 Idempotency-Key。

  • 面向公众的移动端和浏览器应用应把 API 密钥保存在服务端。
  • 为每个会计费的异步操作设置唯一 Idempotency-Key。
  • 持久保存 task_id,以便重启后恢复轮询。
  • 为每个 HTTP 请求设置超时,并在支持工单中提供请求 ID。
  • 读取实时模型元数据,不要硬编码价格和支持选项。

价格与档位

标价,所有人都是这个价。

按请求计价

$0.017075/ 次

档位定价

每张输入图片(含首帧图)加 $0.006567。

拆图层按实际拆出的张数收(含底图),每张:1k $0.017075 · 1.5k $0.017075 · 2k $0.030209。

分辨率价格
1k$0.017075
1.5k$0.017075
2k$0.030209
尺寸价格
  • 1.5k$0.017075
  • 16 · 9$0.017075
  • 1 · 1$0.017075
  • 1 · 2$0.017075
  • 1k$0.017075
  • 21 · 9$0.017075
  • 2 · 1$0.017075
  • 2 · 3$0.017075
  • 3 · 2$0.017075
  • 3 · 4$0.017075
  • 4 · 3$0.017075
  • 9 · 16$0.017075
  • auto$0.017075
  • 2k$0.030209

页面展示的价格即实际计费价格,调用失败会自动退款。

Seedream 5.5 一览

模型 ID
Seedream 5.5
类型
图片生成
厂商
字节跳动
分辨率
1K · 1.5K · 2K
参考素材
最多 10 张图片
端点
POST /v1/images/tasks
返回方式
异步任务:轮询或接收 webhook 通知
计费方式
按张

Seedream 5.5 要花多少钱

  • 1 张 1K 图片$0.017075
  • 1 张 1.5K 图片$0.017075
  • 1 张 2K 图片$0.030209
  • 100 张 1K 图片$1.707463

按标价计算。失败的调用不收费。

常见问题

Seedream 5.5 API 多少钱?

在 APIKing 上,Seedream 5.5 的价格是 $0.017075/张。 按用量从余额中扣费。

怎么调用 Seedream 5.5 API?

向 https://apiking.ai/v1/images/tasks 发请求,用你的 APIKing 密钥作为 Bearer 令牌,并把 model 设为 Seedream 5.5。 调用会返回一个任务。轮询它直到完成,或设置 webhook 在完成时通知你。

Seedream 5.5 的模型 ID 是什么?

把 model 参数设为 Seedream 5.5。

Seedream 5.5 支持哪些分辨率?

分辨率:1K, 1.5K, 2K。

Seedream 5.5 能用参考图生成吗?

支持。参考素材:最多 10 张图片。

Seedream 5.5 调用失败会扣费吗?

调用失败、生成失败都不收钱。任务先预估,完成后按实际用量结算。

Seedream 5.5 与同类模型对比

模型厂商价格规格
Seedream 5.5字节跳动$0.017075 / 次最高 2K
GPT Image 2.5 ExtOpenAI$0.006 / 次最高 4K
GPT Image 2OpenAI$0.006 / 次最高 4K
GPT Image 2.6 FlareOpenAI输入 $3.75 · 输出 $22.50 / 1M最高 4K
Nano Banana ProGoogle$0.0196 / 次最高 4K
GPT Image 2.5 SunburstOpenAI输入 $3.92 · 输出 $23.52 / 1M最高 4K