Seedream 5.0 Pro

由 Seedream 提供图像

Seedream 5.0 Pro 支持文生图、图生图、多图融合、图层拆分及交互式编辑,适合制作信息密集的图像。

更新于:
支持输入文本和图像最多 10 张参考图
输出2KPro 与 Flash
返回方式异步或同步返回 id 或图像
价格起价 1.575quota
Tea flavor-wheel infographic — Seedream official text-to-image exampleTea flavor-wheel infographic示例 01
Futuristic sports car blueprint — Seedream official text-to-image exampleFuturistic sports car blueprint示例 02
RPG stats interface — Seedream official text-to-image exampleRPG stats interface示例 03
Montessori education poster — Seedream official text-to-image exampleMontessori education poster示例 04
生成示例

Seedream 官方成图示例

Design an educational tea infographic with a watercolor flavor wheel, oxidation chart, brewing temperatures, and rice-paper texture.

Design a warm pet-store hero banner where a golden retriever reaches beyond its frame toward the call-to-action.

Photograph a father gently combing his daughter’s hair in their living room with believable family warmth and natural light.

Draw a futuristic sports car blueprint with front, side, rear and exploded assembly views plus dimension lines.

Produce sixteen numbered graphite storyboard panels of a medieval cavalry charge in a professional film-sketch layout.

Compose a 16:9 classroom infographic explaining Chomsky linguistic theory with organized labels and cool academic colors.

Turn the restaurant’s recommended dishes into an Italian Kitchen menu with readable dish names and appetizing images.

Create a dense RPG character screen with statistics, progress graphs, topographic map and restrained gold accents.

Make a parent-friendly vertical Montessori infographic in ivory, wood and sage tones with clear diagrams and readable headings.

模型能力

Seedream 5.0 Pro 能做什么

文生图

用提示词制作高信息密度的图片、海报、插画和写实照片。

图像编辑

用自然语言修改一张参考图,并保留原有结构。

多图融合

将两到十张参考图组合成同一画面。

图层拆分与交互编辑

将图像拆分为图层,或通过坐标和标注修改指定区域。

计费

按操作计费,单位为 quota

按模型、操作和输出设置扣除 quota。

Seedream Pro 计费官方定价
模型 / 操作规格优惠价原价
doubao-seedream-5-0-pro1.5K3.15 quota4.5 quota
doubao-seedream-5-0-pro2K6.3 quota9 quota
doubao-seedream-5-0-pro图层拆分 1.5K1.575 quota2.25 quota
doubao-seedream-5-0-pro图层拆分 2K3.15 quota4.5 quota
doubao-seedream-5-0-pro输入0.21 quota0.3 quota
API 请求

请求头与提交参数

使用 TTAPI 密钥,按下方字段向接口发送请求。

异步生成POST
/sd/api/v3/images/generations/tasks

提交 Seedream 文生图、参考图、多图融合、拆分图层或交互编辑任务。

查看接口文档
查询结果GET
/sd/api/v3/images/generations/tasks/{id}

用返回的 id 查询 Seedream 异步任务。

查看接口文档
同步生成POST
/sd/api/v3/images/generations

根据文字同步生成 Seedream 图像。

查看接口文档
POSThttps://api.ttapi.io/sd/api/v3/images/generations/tasks

请求头

TT-API-KEYstring必填

在请求头中发送 TTAPI API 密钥。

Content-Typestring必填

内容类型为 application/json。

请求体

modelenum必填

Seedream 模型 ID,选择 doubao-seedream-5-0-pro-260628 或 doubao-seedream-5-0-flash-260915。

promptstring必填

描述要生成的图像或要进行的修改。

imagestring | string[]按条件填写

涉及输入图像的操作必填。图生图、交互式编辑和图层拆分传一个 URL,多图融合传 2 至 10 个 URL。图生图支持 jpeg、png、webp、bmp、tiff、gif、heic、heif,宽高比 1:16 至 16:1,文件最大 30 MB。

sizestring选填

生成支持 1K、1.5K、2K(默认)或像素尺寸,如 2048x1024。图层拆分支持 1K、1.5K、2K 或 auto(默认,保留输入尺寸),不接受像素值。

output_formatenum选填

可选 png 或 jpeg,默认 jpeg。

response_formatenum选填

可选 url 或 b64_json,默认 url,下载链接有效期为 24 小时。

backgroundenum选填

可选 transparent 或 opaque(默认)。透明背景用于输入图含 Alpha 通道的图生图,输出默认 png。文生图、多图输入、交互编辑和图层拆分的 schema 未列出此选项。

watermarkboolean选填

是否添加 AI Generated 水印,默认 true。

optimize_prompt_optionsobject选填

mode 默认 standard。fast 可减少生成时间,但 Seedream 5.0 Flash 不支持。

layer_decompositionboolean按条件填写

默认 false。拆分图层时设为 true,传入 image,并在提示词中用 <bbox> 坐标标记区域,最多拆分 16 层。Pro 和 Flash 均有列出。output_format 控制基础图像,图层始终为 png。

execution_expires_afterinteger选填

任务超时时间,单位为秒,范围 3600 至 259200,默认 172800。

priorityinteger选填

执行优先级,范围 0 至 9,默认 0。

safety_identifierstring选填

哈希后的终端用户标识,最多 64 字符。

查看 TTAPI 接入文档
接入示例

发送请求并获取结果

复制当前模型的请求地址、鉴权请求头和请求体。

curl --request POST \
  --url https://api.ttapi.io/sd/api/v3/images/generations/tasks \
  --header "TT-API-KEY: $TTAPI_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"model":"doubao-seedream-5-0-pro-260628","prompt":"A high-density infographic explaining the six major types of tea, with a watercolor flavor wheel and labeled brewing temperatures.","size":"2K","output_format":"jpeg","response_format":"url","watermark":false}'