图像
ByteDance
Seedream 5.0 Pro
Quality-focused image generation and editing with up to 2K output.
- 文本转图像
- 图像编辑
体验场
输入
Text description for image generation
Reference image URLs (URLs or base64 data URIs) for image-to-image mode
登录后运行
运行费用将从您的余额中扣除。
输出
输出将显示在此处。
定价
快速开始
完整 API 参考 →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": "doubao-seedream-5-0-pro",6 "input": {7 "prompt": "黄昏时分城市的电影感镜头",8 "size": "1:1",9 "resolution": "2K",10 "n": 1,11 "outputFormat": "jpeg",12 "promptOptimizeMode": "standard",13 "watermark": false14 }15 }'
参数
| 名称 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
prompt | string | 是 | — | Text description for image generation |
urls | string[] | 否 | — | Reference image URLs (URLs or base64 data URIs) for image-to-image mode |
size | string | 否 | 1:1 | Image aspect ratio以下之一:1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9, 9:21, auto |
resolution | string | 否 | 2K | Image resolution以下之一:1K, 2K |
n | number | 否 | 1 | Number of images to generate |
outputFormat | string | 否 | jpeg | Output image format (doubao-seedream-5-0-lite / doubao-seedream-5-0-pro only; ignored by other models)以下之一:jpeg, png |
promptOptimizeMode | string | 否 | standard | Prompt optimization mode (doubao-seedream-4-5 only; ignored by other models)以下之一:standard, fast |
watermark | boolean | 否 | false | Whether to add a watermark to the generated image |
常见问题
Seedream 5.0 Pro 的费用是多少?
Seedream 5.0 Pro 通过 API Stock API 的起价为 $0.044 每次生成。您按使用量从单个预付余额中支付——无需订阅——最终价格会根据分辨率或时长等参数浮动。
如何调用 Seedream 5.0 Pro API?
向 https://api.api-stock.com/api/v1/generation/create 发送 POST 请求,并附上您的 API 密钥和模型 ID "doubao-seedream-5-0-pro"。请求会返回一个任务 ID,您可以轮询该 ID;或者在结果准备就绪时通过 webhook 回调通知。上方的快速开始部分提供了一个可直接运行的示例。
Seedream 5.0 Pro 接受哪些输入参数?
Seedream 5.0 Pro 接受 8 个输入参数, 包括必填字段 prompt。参数表中列出了它们的类型、默认值和允许值。
如果 Seedream 5.0 Pro 请求失败,会发生什么?
API Stock 会自动在备用提供商上重试请求。如果所有提供商都失败,费用会退还至您的余额。
我可以使用与其他模型相同的 API 密钥来调用 Seedream 5.0 Pro 吗?
可以。API Stock 上的每个模型——视频、图像、音乐和聊天——共享一个 API 密钥和一个预付余额,因此您无需新的凭据即可切换到 Seedream 5.0 Pro。