/IMAGE/seedream-5-5
图像
ByteDance

Seedream 5.5 API

Image generation and editing at 1K, 1.5K or 2K, with transparent PNG backgrounds and up to 10 references.

  • 文本转图像
  • 图像编辑

起价

$0.028

每次生成

7 个参数 · 5 种价格选项

Seedream 5.5 API 价格

选项每次生成的价格
1K$0.028
reference_image$0.011
reference_image_2K$0.02
1.5K$0.028
2K$0.05
1curl -X POST https://api.api-stock.com/api/v1/generation/create \
2 -H "Authorization: Bearer $API_STOCK_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "model": "seedream-5-5",
6 "input": {
7 "prompt": "黄昏时分城市的电影感镜头",
8 "size": "1:1",
9 "resolution": "1K",
10 "background": "auto",
11 "outputFormat": "png",
12 "promptOptimizeMode": "standard"
13 }
14 }'

参数

名称类型必填默认值描述
promptstring是—Text description for image generation or editing
urlsstring[]否—Up to 10 public HTTP(S) image URLs or lowercase base64 data:image URIs. JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC and HEIF; each at most 30 MiB and 36 million pixels. Every reference is billed, including the first.
sizestring否1:1Aspect ratio or auto (model chooses the ratio), with resolution defaulting to 1K. Also accepts 1K / 1.5K / 2K or WIDTHxHEIGHT without resolution. Exact dimensions require 921600–4624220 pixels and ratio 1/16–16. Omission defaults to 1:1 at 1K.以下之一:1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9, 2:1, 1:2, auto
resolutionstring否1KResolution for aspect-ratio or auto size (default 1K). Omit for tier or exact-pixel size.以下之一:1K, 1.5K, 2K
backgroundstring否autoBackground mode. Transparent output requires PNG.以下之一:auto, transparent, opaque
outputFormatstring否pngOutput format; JPEG cannot be combined with transparent background以下之一:jpeg, png
promptOptimizeModestring否standardOnly standard is supported. Optimization remains enabled when omitted.以下之一:standard

常见问题

Seedream 5.5 的费用是多少?

Seedream 5.5 通过 API Stock API 的起价为 $0.028 每次生成。您按使用量从单个预付余额中支付——无需订阅——最终价格会根据分辨率或时长等参数浮动。

如何获取 Seedream 5.5 的 API 密钥?

注册 API Stock 账号,使用可用的付款方式充值,然后在控制台创建 API 密钥即可,整个过程只需几分钟,无需签订合同。同一个密钥可调用目录中的所有模型,因此无需为 Seedream 5.5 单独申请密钥。

如何调用 Seedream 5.5 API?

向 https://api.api-stock.com/api/v1/generation/create 发送 POST 请求,并附上您的 API 密钥和模型 ID "seedream-5-5"。请求会返回一个任务 ID,您可以轮询该 ID;或者在结果准备就绪时通过 webhook 回调通知。上方的快速开始部分提供了一个可直接运行的示例。

Seedream 5.5 接受哪些输入参数?

Seedream 5.5 接受 7 个输入参数, 包括必填字段 prompt。参数表中列出了它们的类型、默认值和允许值。

如果 Seedream 5.5 请求失败,会发生什么?

API Stock 会自动通过备用提供商重试请求。如果所有提供商均失败,费用将退还至您的余额。

我可以使用与其他模型相同的 API 密钥来调用 Seedream 5.5 吗?

可以。API Stock 上的每个模型——视频、图像、音乐和聊天——共享一个 API 密钥和一个预付余额,因此您无需新的凭据即可切换到 Seedream 5.5。