> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anyfast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Seedream 5.5 Pro

> 使用 Seedream 5.5 Pro 生成和编辑图片，支持透明 RGBA 素材与连续多轮编辑。

通过 AnyFast 使用 Seedream 5.5 Pro 进行文生图、参考图编辑和透明图片输出。请求模型 ID 为 `seedream-5-5-pro`。ByteDance 的 Seedream 5.5 发布说明介绍了该系列的多轮编辑、原生 RGBA、写实效果和文字渲染能力。

> [!WARNING]
>
> 生成透明图片时，请将 `background` 设为 `transparent`，并将 `output_format` 设为 `png`。未设置 `background: "transparent"` 时，接口返回不透明图片。

## 核心能力

* **文生图** — 根据自然语言提示词生成图片，呈现自然的材质纹理和清晰的文字
* **图片编辑** — 多轮编辑参考图，并保留请求中未指定修改的区域
* **透明背景** — 原生生成带全透明或半透明区域的 RGBA 图片

> [tab] 文生图
>
> ## 根据文本生成图片
>
> ```bash cURL theme={null}
> curl https://www.anyfast.ai/v1/images/generations \
>   -H "Authorization: Bearer YOUR_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{
>     "model": "seedream-5-5-pro",
>     "prompt": "一张写实的编辑风茶壶照片，茶壶放在木桌上，清晨窗边柔光，细致呈现釉面与木材纹理",
>     "size": "1K",
>     "response_format": "url",
>     "output_format": "png",
>     "watermark": false
>   }'
> ```
>
> ```python Python theme={null}
> import requests
>
> response = requests.post(
>     "https://www.anyfast.ai/v1/images/generations",
>     headers={
>         "Authorization": "Bearer YOUR_API_KEY",
>         "Content-Type": "application/json",
>     },
>     json={
>         "model": "seedream-5-5-pro",
>         "prompt": "一张写实的编辑风茶壶照片，茶壶放在木桌上，清晨窗边柔光，细致呈现釉面与木材纹理",
>         "size": "1K",
>         "response_format": "url",
>         "output_format": "png",
>         "watermark": False,
>     },
> )
>
> print(response.json())
> ```
>
> Seedream 5.5 系列致力于自然呈现光线、材质和皮肤纹理，并提升文字渲染效果。建议在提示词中描述构图、材质、光线以及需要准确呈现的文字。

> [tab] 图片编辑
>
> ## 编辑或优化参考图片
>
> ```bash cURL theme={null}
> curl https://www.anyfast.ai/v1/images/generations \
>   -H "Authorization: Bearer YOUR_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{
>     "model": "seedream-5-5-pro",
>     "prompt": "将蓝色围巾改为森林绿。保留人物、姿势、背景、光线和其他所有细节。",
>     "image": "https://example.com/source-image.png",
>     "size": "1K",
>     "response_format": "url",
>     "output_format": "png",
>     "watermark": false
>   }'
> ```
>
> 多轮编辑时，将最新生成图片作为下一次请求的 `image`。明确指出要修改的区域或元素，以及需要保留的细节。ByteDance 介绍了 Seedream 5.5 在连续编辑中以像素级精度保留未修改区域的能力。
>
> ![ByteDance 展示 Seedream 5.5 连续编辑图片并保留其余区域](https://lf3-static.bytednsdoc.com/obj/eden-cn/bdeh7uhpsuht/sd55-e01c-82a14c50.gif)
>
> ByteDance Seed 官方发布的 Seedream 5.5 多轮编辑示例（发布页面所述模型）。

> [tab] 透明背景
>
> ## 生成透明图片
>
> ```bash cURL theme={null}
> curl https://www.anyfast.ai/v1/images/generations \
>   -H "Authorization: Bearer YOUR_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{
>     "model": "seedream-5-5-pro",
>     "prompt": "一只飞翔的雪鸮，精细呈现羽毛边缘，独立素材，雪鸮以外的区域保持透明",
>     "size": "1K",
>     "response_format": "url",
>     "output_format": "png",
>     "background": "transparent",
>     "watermark": false
>   }'
> ```
>
> Seedream 5.5 支持全透明和半透明。使用 PNG 输出以保留 Alpha 通道。
>
> ![ByteDance 展示生成透明背景图片素材](https://lf3-static.bytednsdoc.com/obj/eden-cn/bdeh7uhpsuht/sd55-r03zc-34532bd0.gif)
>
> ByteDance Seed 官方发布的 Seedream 5.5 透明素材示例（发布页面所述模型）。

## 输出控制

| 参数 | 可选值 | 说明 |
| - | - | - |
| `size` | `1K`、`1.5K`、`2K` | 响应中的 `data[].size` 返回实际图片尺寸：`1K` 返回 `1248x832`，`1.5K` 返回 `1888x1248`，`2K` 返回 `2512x1680`。 |
| `response_format` | `url`、`b64_json` | 返回临时 URL 或 Base64 图片数据。 |
| `output_format` | `png`、`jpeg` | 两种格式均可用。需保留透明度时使用 PNG。 |
| `background` | `opaque`、`transparent` | 设为 `transparent` 可请求透明 RGBA 图片。 |
| `watermark` | `true`、`false` | 控制是否添加 AI 生成水印。 |
| `image` | 图片 URL | 图生图请求的源图片。 |

## 尺寸与输入限制

`1K`、`1.5K` 和 `2K` 均可用，返回尺寸分别为 `1248x832`、`1888x1248` 和 `2512x1680`。响应中的 `data[].size` 会返回实际尺寸。编辑图片时，可在 `image` 中传入源图片 URL。

查看 [Seedream 5.5 官方介绍](https://seed.bytedance.com/en/seedream5_5)和 [Seedream 5.5 官方发布说明](https://seed.bytedance.com/en/blog/more-realistic-images-more-stable-editing-across-100-rounds-introducing-seedream-5-5)，了解模型能力。

> [card] [API 参考](https://docs.anyfast.ai/zh/api-reference/model-api/bytedance/seedream-5-5.md)
>
> 查看 Seedream 5.5 Pro 的全部调用方式。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.