> ## 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-Hant/api-reference/endpoint/user-logs.md)。

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


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