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

# Dola Seedream 5.5

> 使用 Dola Seedream 5.5 根据文字或一张 PNG 参考图生成单张图片。

通过 `POST /v1/images/generations` 生成单张图片，将 `model` 设为 `dola-seedream-5.5`。参数放在 JSON 顶层，不使用 `metadata` 包装。

可仅发送文字提示，也可加入一张 PNG 参考图。本页不涵盖此模型 ID 的多张参考图、透明输出、图层拆分、批量输出或流式输出。

## 请求参数

| 字段 | 类型 | 说明 |
| - | - | - |
| `model` | string | 必填。使用 `dola-seedream-5.5`。 |
| `prompt` | string | 必填。描述要生成的图片，不得为空。 |
| `size` | string | 可指定 `1024x1024` 或 `2048x2048` 等具体宽高。上游的分辨率预设为 `1K`、`1.5K`、`2K`，这些预设名称不代表计费档位。 |
| `response_format` | string | 设为 `url`，请求返回图片下载链接。 |
| `watermark` | boolean | 设为 `false` 可关闭生成图片的水印。 |
| `image` | string | 可选。以 `data:image/png;base64,...` 格式的 Base64 data URI 提供一张 PNG 参考图。仍需在 `prompt` 中描述所需输出。 |

自定义宽高用小写 `x` 分隔。上游规定总像素数为 921,600 至 4,624,220，宽高比为 1:16 至 16:1。超过像素上限会被拒绝，例如 `2288x2288` 返回 HTTP 400。

## 快速示例

将 `MIXROUTE_API_KEY` 设为你的 MixRoute API Key。

```bash theme={null}
curl --request POST 'https://api.mixroute.ai/v1/images/generations' \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "dola-seedream-5.5",
    "prompt": "A simple red ceramic mug on a plain white tabletop, front view.",
    "size": "2048x2048",
    "response_format": "url",
    "watermark": false
  }'
```

## 响应字段

| 字段 | 说明 |
| - | - |
| `data[].url` | URL 模式下的输出图片下载链接。 |
| `data[].size` | 返回的图片尺寸，格式为 `宽x高`。 |
| `usage.input_images`, `usage.generated_images` | 输入和生成图片的张数，不是扣费金额。成功时返回 1 张图；纯文生图的输入为 0 张，使用参考图时为 1 张。 |

## 公开报价

以下为[公开报价目录](https://console.mixroute.ai/api/pricing/public)中的 USD 基础价格。输出按宽 × 高所得的总像素数分档，不按 `size` 字符串分档。例如，`1024x1024` 属于 `1K` 档，`2048x2048` 属于 `2K` 档。

| 项目 | 像素范围 | 基础单价（USD／张） |
| - | - | - |
| 输入图片 | 报价公式中的每张输入图 | \$0.008 |
| `1K` | 921,600–2,610,000 像素 | \$0.020 |
| `2K` | 2,610,001–4,624,220 像素 | \$0.035 |

每张输入图片按公开报价加计 \$0.008。一张输入图和一张 `1024x1024` 输出图的预计基础费用为 `0.008 + 0.020 = 0.028` USD。

切点两侧的示例：`1568x1664`（2,609,152 像素）基础费用为 $0.020；`1584x1648`（2,610,432 像素）基础费用为 $0.035。以上均未乘以账户分组倍率。

此模型不支持 `4K` 输出。命中的档位、分组倍率和实际扣费可在[用量日志](https://mixroute.ai/docs/zh-Hans/api-reference/endpoint/user-logs.md)中查看。

[模型介绍](https://mixroute.ai/docs/zh-Hans/model-api/bytedance/dola-seedream-5-5.md)


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