> ## 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.0 Pro 文生图

> 通过 AnyFast 调用 ByteDance Seedream 5.0 Pro，根据文本生成高精度图片。

Seedream 5.0 Pro 文生图是 ByteDance 面向高精度文本生成图片场景的工作流，通过 AnyFast API 提供服务。

模型 ID 为 `doubao-seedream-5-0-pro-260628`。

<Info>
  对于特定内容请求，请选择 **Special-Ns** 资源分组。
</Info>

## 核心能力

* **文生图** — 根据文本提示词生成单张图片。
* **原生多语种生成** — 支持俄语、阿拉伯语、菲律宾语、泰语、土耳其语、韩语、马来语、西班牙语、葡萄牙语、印尼语、法语、德语、越南语、日语等文字生成。
* **输出控制** — 通过 `size`、`response_format`、`output_format` 和 `watermark` 控制输出图片。

<Warning>
  Seedream 5.0 Pro 不支持组图生成、联网搜索和流式输出。调用该模型时不要依赖 `sequential_image_generation`、`sequential_image_generation_options`、`tools` 或 `stream`。
</Warning>

## 快速示例

<CodeGroup>
  ```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": "doubao-seedream-5-0-pro-260628",
      "prompt": "为智能音箱生成一张高端产品主视觉图，灯光精准，版式干净，包含日文和英文标签文字",
      "size": "2K",
      "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": "doubao-seedream-5-0-pro-260628",
          "prompt": "为智能音箱生成一张高端产品主视觉图，灯光精准，版式干净，包含日文和英文标签文字",
          "size": "2K",
          "output_format": "png",
          "watermark": False,
      },
  )

  print(response.json())
  ```
</CodeGroup>

## 参数

| 参数                        | 类型      | 是否必填 | 说明                                                             |
| ------------------------- | ------- | ---- | -------------------------------------------------------------- |
| `model`                   | string  | 是    | 必须为 `doubao-seedream-5-0-pro-260628`                           |
| `prompt`                  | string  | 是    | 图片生成或编辑提示词。官方建议提示词不要过长，避免细节被分散。                                |
| `size`                    | string  | 否    | 输出尺寸。可传 `1K`、`2K`，也可传 `2048x1024` 这类像素尺寸。像素尺寸需要满足官方总像素和宽高比限制。  |
| `response_format`         | string  | 否    | `url` 或 `b64_json`。默认 `url`。URL 为临时链接，请及时保存。                   |
| `output_format`           | string  | 否    | `png` 或 `jpeg`。默认 `jpeg`。                                      |
| `watermark`               | boolean | 否    | 是否添加 AI 生成水印。官方默认 `true`，传 `false` 可关闭。                        |
| `optimize_prompt_options` | object  | 否    | 提示词优化配置。使用 `mode: "standard"`。官方文档说明 Seedream 5.0 Pro 不支持快速模式。 |

## 尺寸说明

Seedream 5.0 Pro 支持两种尺寸写法：

* 分辨率档位：`1K`、`2K`。使用档位时，可在提示词中描述宽高比。
* 指定像素：`widthxheight`，例如 `2048x1024`。官方总像素范围为 `1280x720` 到 `2048x2048x1.1025`，宽高比范围为 `[1/16, 16]`。

<Card title="API Reference" icon="code" href="/zh/api-reference/model-api/bytedance/doubao-seedream-5-0-pro-260628-t2i">
  查看 Seedream 5.0 Pro 文生图的交互式 API 调试页。
</Card>

<script src="/feedback.js" />
