Seedream 5 Pro
专业图像生成与编辑,支持最多 10 张参考图、1K/2K 输出和精确指令遵循
功能特性
- 文生图生成
- 图生图编辑
- 最多 10 张参考图的多图融合
- 1K 与 2K 输出
- 每次请求输出 1 张图片
定价
| Mode | 1K | 2K |
|---|---|---|
| Economy | 10 (~$0.11) | |
| Standard | 13 (~$0.14) |
端点
POST
/api/v1/images/generate参数
| 参数 | 类型 | 必需 | 描述 |
|---|---|---|---|
| model | string | 必需 | Must be "seedream-5-pro" |
| type | string | 可选 | "text-to-image" or "image-to-image" (default: text-to-image) |
| prompt | string | 必需 | 用于生成图像的提示词,支持中英文。建议不超过300个汉字。字数过多信息容易分散,模型可能忽略细节,只关注重点,造成图片缺失部分元素。 |
| generation_mode | string | 可选 | "economy" or "standard". Existing API clients that omit this field keep the Standard-mode default. |
| resolution | string | 可选 | "1K" or "2K" (default: 1K) |
| aspect_ratio | string | 可选 | "1:1", "4:3", "3:4", "16:9", "9:16", "2:3", or "3:2". Standard mode also supports "21:9" (default: 1:1) |
| image_urls | string[] | 可选 | Input image URLs for image-to-image. Supports up to 10 JPEG, PNG, or WebP images. Economy mode supports up to 10MB per image; Standard mode supports up to 30MB. Each image adds 1 credit. |
| input_image | string | 可选 | Deprecated. Alias for image_urls[0] |
| num_images | number | 可选 | Must be 1 |
请求示例(文生图)
{
"model": "seedream-5-pro",
"prompt": "A premium ecommerce product photo of a translucent smart speaker on a glass table, soft daylight, crisp details",
"generation_mode": "economy",
"resolution": "2K",
"aspect_ratio": "16:9"
}请求示例(图生图)
{
"model": "seedream-5-pro",
"type": "image-to-image",
"prompt": "Turn these references into one coherent luxury campaign image while preserving the product shape and brand colors",
"image_urls": [
"https://tempfile.aiquickdraw.com/workers/nano/image_1772780968156_ygk0zm.png"
],
"generation_mode": "economy",
"resolution": "2K",
"aspect_ratio": "16:9"
}响应示例
{
"success": true,
"data": {
"task_id": "task_seedream5pro_abc123",
"request_id": "req_abc123",
"credits_used": 20,
"remaining_credits": 480,
"model": "seedream-5-pro",
"generation_mode": "economy",
"resolution": "2K"
}
}代码示例(文生图)
curl -X POST https://gateway.bananapro.site/api/v1/images/generate \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream-5-pro",
"prompt": "A premium ecommerce product photo of a translucent smart speaker on a glass table, soft daylight, crisp details",
"generation_mode": "economy",
"resolution": "2K",
"aspect_ratio": "16:9"
}'代码示例(图生图)
curl -X POST https://gateway.bananapro.site/api/v1/images/generate \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream-5-pro",
"type": "image-to-image",
"prompt": "Turn these references into one coherent luxury campaign image while preserving the product shape and brand colors",
"image_urls": ["https://tempfile.aiquickdraw.com/workers/nano/image_1772780968156_ygk0zm.png"],
"generation_mode": "economy",
"resolution": "2K",
"aspect_ratio": "16:9"
}'