Source: https://ailoot.ai/models/zh-hant-tw/bytedance-seed-seedream-5-0-flash/
Canonical: https://ailoot.ai/models/zh-hant-tw/bytedance-seed-seedream-5-0-flash/
Language: zh-hant-tw

# ByteDance Seed: Seedream 5.0 Flash

[Markdown](https://ailoot.ai/models/zh-hant-tw/bytedance-seed-seedream-5-0-flash/index.md) · [JSON](https://ailoot.ai/models/zh-hant-tw/bytedance-seed-seedream-5-0-flash/facts.json)

## [ByteDance Seed: Seedream 5.0 Flash](https://ailoot.ai/models/zh-hant-tw/bytedance-seed-seedream-5-0-flash/)

Seedream 5.0 Flash 可依文字及視覺參考建立與編輯圖片，支援空間引導變更、多語圖片文字及圖層拆分。ByteDance Seed 將 Flash 定位於更快生成，並與著重品質的 Pro 版本區分。

- [**Ailoot Ultra · 圖片** `POST /v1/images/generations` `bytedance-seed/seedream-5-0-flash`](https://ailoot.ai/models/zh-hant-tw/bytedance-seed-seedream-5-0-flash/#method-0)

關於模型

此說明介紹模型的能力。Ailoot 可用的輸入、輸出與選項，依所選方法列於下方。

較快速的圖片創作版本

Seedream 5.0 Flash 是 ByteDance Seed 為優先考量生成速度的流程提供的圖片生成與編輯模型。原廠 Pro／Flash 指南描述文字轉圖片，以及單參考或多參考圖片轉圖片創作。它區分 Flash 的較快生成與 Pro 的較高圖片品質優先方向，但未確立每份簡述的固定回應時間。

主要共用功能為互動編輯、圖層拆分及原生多語生成。一般生成回傳一張完成圖片。原廠 Flash 流程不支援連續相關圖片生成、網路搜尋或串流圖片輸出。提示詞最佳化使用 standard 模式；獨立的 fast 最佳化控制屬於 Pro，不屬於 Flash。

根據簡述與參考創作

交代預期畫面、主要主體、構圖及視覺處理，再指出各參考控制什麼。產品視覺應將確立物件的參考，與提供色盤或表面材質的參考分開。「保留第一張圖片的物件輪廓及視角；第二張只用於低彩度背景色盤」能讓參考用途不同且清楚。

原廠建議提示詞簡潔，不超過 300 個中文字元或 600 個英文單字。這是準備指引，不是明列的嚴格文字輸入截斷上限。先列決定性要求，包括必須出現的確切文字、預期長寬比及不可改變細節。請依清單檢查完成圖片，不要只看整體外觀。

空間引導編輯

Flash 可使用點、邊界框、箭頭及自由標記，識別編輯位置。請提供來源圖片、位置與變更。室內概念可標記椅子、要求替換布料，並指出應保留的地板、牆面、機位及鄰近物件。若標記只作引導，請明確要求從完成圖片移除。

原廠座標編輯指南使用 \<point\> 與 \<bbox\> 標籤，座標相對指定輸入圖片正規化為 0–999。點包含 x 與 y；方框包含左上與右下座標。請指出圖片編號與目標物件，尤其是框內包含多個主體時。跨圖片編輯應區分從某份參考取用的物件，以及另一張圖中的目標區域。

取得比例位置時，請使用顯示圖片本身尺寸；畫布縮放、平移或瀏覽器座標，不是正規化圖片座標。除了編輯區域，也要描述受保護區域。請將結果的透視、照明及周圍細節與原始來源比較。

將構圖分成可編輯圖層

圖層拆分是獨立模式，恰好接受一張圖片，回傳基底圖片及最多 16 個獨立圖層。每層都是帶 alpha 的 PNG。提示詞可指定待分離元素，例如標題、主要主體與裝飾；沒有拆分提示詞時，模型會自動識別主要元素。

結果包含圖層名稱、描述、堆疊順序及位置框。以堆疊索引零的基底圖片開始，再依堆疊順序由小到大放置其他圖層。絕對位置框描述在輸出基底圖片中的位置；正規化位置框則描述不同畫布上的比例位置。請將回傳位置中繼資料與圖片檔案一併保存，讓原構圖可在重新排列前重建。

海報修訂可將主要圖像與標題、裝飾分離，再檢查邊緣及恢復的背景區域。透明圖層可作為單一帶 alpha 通道輸入編輯，輸出透明 PNG。透明背景選項限於該單輸入圖片編輯流程；一般文字轉圖片生成是另一項操作。

多語構圖

除中文與英文外，原廠記載原生提示詞及圖片文字支援俄文、阿拉伯文、菲律賓文、泰文、土耳其文、韓文、馬來文、西班牙文、葡萄牙文、印尼文、法文、德文、越南文與日文。請提供核准的確切文字及閱讀方向，指出每個文字區塊位於何處。檢查最終圖片的重音符號、連寫字元、換行及小標籤。

參考檔案與輸出規格

圖片生成最多接受 10 份參考，格式可為 JPEG、PNG、WebP、BMP、TIFF、GIF、HEIC 或 HEIF。每份最高 30 MB、兩邊都大於 14 像素、總像素 196–36,000,000、長寬比 1:16–16:1。圖層拆分則要求一張 JPEG 或 PNG，總像素 262,144–36,000,000、最高 30 MB，比例範圍相同。

生成提供 1K、1.5K 與 2K 輸出等級，預設 2K，也可指定總像素 921,600–4,624,220、比例 1:16–16:1 的明確尺寸。自訂尺寸須同時符合兩項約束。圖層輸出使用 1K、1.5K、2K 或 auto，預設 auto；基底與各圖層保留各自來源長寬比。

完成圖片為 JPEG 或 PNG。基底圖片格式可分別選擇，拆分圖層則維持帶 alpha 的 PNG。交付可採編碼圖片資料，或保留 24 小時的下載連結。請保存每份回傳圖片及其中繼資料，供預期設計流程使用。以作品實際使用尺寸檢查文字、編輯細節及圖層對齊。

**Ailoot Ultra · 圖片** `POST /v1/images/generations` `bytedance-seed/seedream-5-0-flash`

[`bytedance-seed/seedream-5-0-flash`](https://ailoot.ai/models/zh-hant-tw/#m=bytedance-seed%2Fseedream-5-0-flash&route=Ultra&caller=bytedance-seed%2Fseedream-5-0-flash&fmt=images)

ByteDance Seed /`bytedance-seed/seedream-5-0-flash`

### 入門

依據文字需求說明，產生一張成品圖像。

- 製作產品靜態圖
- 探索視覺概念
- 繪製場景插圖

接受的輸入

文字

結果

圖片

### Ailoot 可用 · 輸入與方法

**Ailoot Ultra · 圖片** `POST /v1/images/generations`

輸入

`text`

輸出

`image`

輸出格式

圖片檔案

輸出數量

1 輸出

| 欄位 | 類型 | 要求 | 值與限制 | 預設值 |
| --- | --- | --- | --- | --- |
| 欄位`model` | 類型`string` | 要求必填 | 值與限制 bytedance-seed/seedream-5-0-flash | 預設值— |
| 欄位`prompt` | 類型`string` | 要求必填 | 值與限制 長度下限: 1 條件: 非空的 UTF8 提示詞。此處不會自行訂定適用於整個製造商的字元上限。 | 預設值— |
| 欄位`n` | 類型`integer` | 要求選填 | 值與限制 1 | 預設值1 |
| 欄位`response_format` | 類型`string` | 要求選填 | 值與限制 url, b64\_json | 預設值— |
| 欄位`stream` | 類型`boolean` | 要求選填 | 值與限制 false | 預設值false |

輸入素材組合

**文字生成圖片** · 必填： prompt

方法參數與生命週期

| 參數 | 規格 |
| --- | --- |
| 參數`content_type` | 規格application/json |
| 參數`required` | 規格model, prompt |
| 參數`material_types` | 規格text |
| 參數`optional` | 規格n, response\_format, stream |
| 參數`n` | 規格1 |
| 參數`stream` | 規格false |
| 參數`response_format` | 規格url, b64\_json |
| 參數`reference_images` | 規格false |
| 參數`edit` | 規格false |
| 參數`output_format_optional` | 規格 |
| 參數`resolution_control` | 規格null |
| 參數`aspect_ratio_control` | 規格null |
| 參數`other_fields` | 規格除完全相符且已固定的內部供應商路由外，均會拒絕 |

生命週期： `synchronous_result_then_owned_library`

`GET /v1/media/tasks/{task_id}` · 實際回傳的 task\_id 或媒體庫紀錄

`GET /v1/media/assets/{asset_id}/content`

`GET /v1/media/assets`

`GET /v1/media/assets/{asset_id}`

依提示詞生成一張圖片。

請儲存每個資料項目；url/b64\_json 是結果的編碼形式。

### 方案

##### 最終費用的計算方式

顯示的費率用於在生成前估算費用。最終費用依原始生成作業記錄的成本計算。實測的輸出時間長度與預估數量並非最終計費數量。

費率資訊不會增加請求選項。支援的參數列於所選方法中。

快速模式

未指定 選取快速模式時

flex 模式

未指定 選取 flex 模式時

最高推理強度

未指定 最高推理強度採用 default 調整值時

#### 供比較的預估費率

#### 各設定的價格

請逐一核對各項費用與所列條件。每組互為替代選項的設定只套用一種費率。

| 設定 | 費率表 | 預估數量 | 計費單位 | 費用 |
| --- | --- | --- | --- | --- |
| 設定基礎 token 費率 | 費率表基本費率 | 預估數量— | 計費單位— | 費用 輸入 · 輸入 Token · 僅供比較的估算 **—** / 1K Token 輸出 · 輸出 Token · 僅供比較的估算 **—** / 1K Token 輸入 · 讀取快取 · 僅供比較的估算 **—** / 1K Token 輸入 · 寫入快取 · 僅供比較的估算 **—** / 1K Token 輸入 · 寫入快取，1 小時 · 僅供比較的估算 **—** / 1K Token |
| 設定輸入圖片 | 費率表— | 預估數量— | 計費單位每張輸入圖片 | 費用 輸入 · 輸入圖片 · 僅供比較的估算 **$0** 每張輸入圖片 |
| 設定Ultra | 費率表— | 預估數量— | 計費單位每張輸出圖片 | 費用 輸出 · 圖片輸出 · 僅供比較的估算 **$0.036** 每張輸出圖片 |
| 設定預估生成費用 | 費率表— | 預估數量單次生成估算值 | 計費單位— | 費用 輸出 · 預估生成費用 · 僅供比較的估算 **$0.036** 生成前估算 此估算並非額外費用，也不是本次生成完成後的固定費率。 |

Ailoot 會在請求前預留估算金額。取得結果後，依實測用量結算最終費用。串流結算採用最終用量紀錄。[預留金額與結算的運作方式 →](https://ailoot.ai/docs/zh-hant-tw/billing/reserve/)

#### 參考費率詳情

模型層級的參考費率表不會變更方法選擇、報價或費用。實際計費採用所選 Ailoot 方法的費率。

圖片定價設定

#### 各設定的價格

請逐一核對各項費用與所列條件。每組互為替代選項的設定只套用一種費率。

| 設定 | 計費條件 | 費用 |
| --- | --- | --- |
| 設定輸出圖片 | 計費條件未宣告任何定價變體。 | 費用 輸出 · 輸出圖片 **$0.036** 每張圖片 |
| 設定輸入圖片 | 計費條件未宣告任何定價變體。 | 費用 輸入 · 輸入圖片 **$0** 每張圖片 |

等價的列項描述同一筆費用，不會額外加收第二筆費用。

### 請求範例

#### Ailoot Ultra · 圖片

curlPython SDKNode.js SDK

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"model": "bytedance-seed/seedream-5-0-flash", "prompt": "A lighthouse on a cliff, watercolor", "n": 1, "response_format": "b64_json"}')

Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/images/generations \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
python3 - <<'PY_RESULT'
import base64, json, os, subprocess
from pathlib import Path
from urllib.parse import urlsplit, urljoin

def save_images(items):
    if not items: raise SystemExit("No completed images; retain the full response")
    for index, item in enumerate(items):
        encoded=item.get("b64_json")
        uri=item.get("url", "")
        if not encoded and uri.startswith("data:image/"):
            header, separator, encoded=uri.partition(",")
            if not separator or ";base64" not in header: raise SystemExit("Unsupported image data URI")
        if encoded:
            raw=base64.b64decode(encoded,validate=True)
        elif uri:
            uri=urljoin("https://api.ailoot.ai",uri)
            parsed=urlsplit(uri)
            if parsed.scheme!="https" or not parsed.netloc or parsed.username or parsed.password:
                raise SystemExit("Invalid returned image URL")
            owned=parsed.netloc=="api.ailoot.ai" and parsed.path.startswith("/v1/media/assets/") and parsed.path.endswith("/content")
            args=["curl","--fail-with-body","--silent","--show-error",uri]
            if owned: args += ["-H","Authorization: Bearer "+os.environ["AILOOT_API_KEY"]]
            temporary=Path(f"image-{index}.bin")
            subprocess.run(args+["-o",str(temporary)],check=True)
            raw=temporary.read_bytes()
            temporary.unlink()
        else: raise SystemExit("Image has neither bytes nor URL")
        if not raw: raise SystemExit("Empty image result")
        ext="png" if raw.startswith(b"\x89PNG") else "jpg" if raw.startswith(b"\xff\xd8") else "webp" if raw[:4]==b"RIFF" and raw[8:12]==b"WEBP" else "svg" if raw.lstrip().startswith((b"<svg",b"<?xml")) else "bin"
        Path(f"image-{index}.{ext}").write_bytes(raw)
    print("Every returned image saved; complete response metadata retained")
save_images(json.loads(Path("result.json").read_text())["data"])
PY_RESULT
```

```python
from openai import OpenAI
import base64, json, os, subprocess
from pathlib import Path
from urllib.parse import urlsplit, urljoin

def save_images(items):
    if not items: raise SystemExit("No completed images; retain the full response")
    for index, item in enumerate(items):
        encoded=item.get("b64_json")
        uri=item.get("url", "")
        if not encoded and uri.startswith("data:image/"):
            header, separator, encoded=uri.partition(",")
            if not separator or ";base64" not in header: raise SystemExit("Unsupported image data URI")
        if encoded:
            raw=base64.b64decode(encoded,validate=True)
        elif uri:
            uri=urljoin("https://api.ailoot.ai",uri)
            parsed=urlsplit(uri)
            if parsed.scheme!="https" or not parsed.netloc or parsed.username or parsed.password:
                raise SystemExit("Invalid returned image URL")
            owned=parsed.netloc=="api.ailoot.ai" and parsed.path.startswith("/v1/media/assets/") and parsed.path.endswith("/content")
            args=["curl","--fail-with-body","--silent","--show-error",uri]
            if owned: args += ["-H","Authorization: Bearer "+os.environ["AILOOT_API_KEY"]]
            temporary=Path(f"image-{index}.bin")
            subprocess.run(args+["-o",str(temporary)],check=True)
            raw=temporary.read_bytes()
            temporary.unlink()
        else: raise SystemExit("Image has neither bytes nor URL")
        if not raw: raise SystemExit("Empty image result")
        ext="png" if raw.startswith(b"\x89PNG") else "jpg" if raw.startswith(b"\xff\xd8") else "webp" if raw[:4]==b"RIFF" and raw[8:12]==b"WEBP" else "svg" if raw.lstrip().startswith((b"<svg",b"<?xml")) else "bin"
        Path(f"image-{index}.{ext}").write_bytes(raw)
    print("Every returned image saved; complete response metadata retained")

request={'model': 'bytedance-seed/seedream-5-0-flash', 'prompt': 'A lighthouse on a cliff, watercolor', 'n': 1, 'response_format': 'b64_json'}
client=OpenAI(base_url="https://api.ailoot.ai/v1",api_key=os.environ["AILOOT_API_KEY"],max_retries=0)
result=client.images.generate(**request)
Path("sdk-result.txt").write_text(str(result),encoding="utf-8")
save_images([{"b64_json":getattr(item,"b64_json",None),"url":getattr(item,"url",None)} for item in result.data])
```

```js
import OpenAI from "openai";
import { readFileSync, writeFileSync } from "node:fs";
const key=process.env.AILOOT_API_KEY;
if(!key) throw new Error("Set your actual Ailoot API key");
const client=new OpenAI({baseURL:"https://api.ailoot.ai/v1",apiKey:key,maxRetries:0});
const request={"model": "bytedance-seed/seedream-5-0-flash", "prompt": "A lighthouse on a cliff, watercolor", "n": 1, "response_format": "b64_json"};
const result=await client.images.generate(request);
writeFileSync("sdk-result.json",JSON.stringify(result,null,2));
if(!result.data?.length) throw new Error("No completed images");
for(let index=0;index<result.data.length;index++) {
  const item=result.data[index];let encoded=item.b64_json,uri=item.url||"",raw;
  if(!encoded && uri.startsWith("data:image/")) {
    const comma=uri.indexOf(",");if(comma<0 || !uri.slice(0,comma).includes(";base64")) throw new Error("Unsupported image data URI");
    encoded=uri.slice(comma+1);
  }
  if(encoded) {
    if(encoded.length%4!==0 || !/^[A-Za-z0-9+/]*={0,2}$/.test(encoded)) throw new Error("Invalid Base64");
    raw=Buffer.from(encoded,"base64");
  } else if(uri) {
    const u=new URL(uri,"https://api.ailoot.ai");
    if(u.protocol!=="https:" || u.username || u.password) throw new Error("Invalid returned URL");
    const owned=u.origin==="https://api.ailoot.ai" && u.pathname.startsWith("/v1/media/assets/") && u.pathname.endsWith("/content");
    const response=await fetch(u,{headers:owned?{Authorization:"Bearer "+key}:{},redirect:"manual"});
    if(!response.ok) throw new Error("Image content download failed: "+response.status);
    raw=Buffer.from(await response.arrayBuffer());
  } else throw new Error("Image has neither bytes nor URL");
  if(!raw.length) throw new Error("Empty image result");
  const ext=raw.subarray(0,4).equals(Buffer.from([137,80,78,71]))?"png":raw[0]===255&&raw[1]===216?"jpg":raw.toString("ascii",0,4)==="RIFF"&&raw.toString("ascii",8,12)==="WEBP"?"webp":raw.toString("utf8").trimStart().startsWith("<svg")||raw.toString("utf8").trimStart().startsWith("<?xml")?"svg":"bin";
  writeFileSync(`image-${index}.${ext}`,raw);
}
console.log("Every returned image saved; sdk-result.json retains complete metadata");
```

### 接收並儲存結果

#### Ailoot Ultra · 圖片

下載每張傳回的圖片，或儲存其 Base64 內容

- `GET /v1/media/tasks/{task_id}`
- `GET /v1/media/assets/{asset_id}/content`
- `GET /v1/media/assets`
- `GET /v1/media/assets/{asset_id}`

##### 保留所有已完成的結果

請儲存每張已完成的圖片；從每個傳回的 URL 取得圖片，或解碼其 Base64 內容。

儲存所有資料項目。解碼每個 b64\_json，或透過每個回傳的已簽署 URL 取得內容。依實際 MIME 類型／位元組內容選擇副檔名。

##### 需要檢查原始回應時

若圖片生成或編輯結果需要檢查，請保留原始 operation\_id/X-Client-Request-ID 與回傳的結果資訊。使用實際的 task\_id 或 asset\_id 值，透過媒體庫取回自己擁有的既有結果。請勿重新提交生成／編輯請求，也請勿以 operation\_id 組成輪詢 URL。

回應欄位

| 欄位 | 類型 |
| --- | --- |
| 欄位`created` | 類型integer |
| 欄位`data[].url` | 類型string |
| 欄位`data[].b64_json` | 類型base64 string |
| 欄位`usage` | 類型object |

錯誤與後續步驟

| 回應 | 條件 | 下一步 |
| --- | --- | --- |
| 回應400 · `invalid_request_error` | 條件必要欄位、素材表示方式或參數值無效 | 下一步提出新的建立請求前，先修正指定欄位。 |
| 回應`server_error` | 條件回傳的回應表示該作業或結果需要檢查 | 下一步保留原始回傳的作業／任務 ID、請求標頭與回應；繼續以支援的方式讀取該原始作業。請勿重新提交建立請求。 |

### 別名

#### 模型別名

**Ailoot Ultra** [`bytedance-seed/seedream-5-0-flash`](https://ailoot.ai/models/zh-hant-tw/#m=bytedance-seed%2Fseedream-5-0-flash&route=Ultra&caller=bytedance-seed%2Fseedream-5-0-flash&fmt=images)

#### 方法路徑別名

請使用上方列出的 API 方法路徑。

#### 相關呼叫用 ID

[`bytedance-seed/seedream-5-0-flash`](https://ailoot.ai/models/zh-hant-tw/#m=bytedance-seed%2Fseedream-5-0-flash&route=Ultra&caller=bytedance-seed%2Fseedream-5-0-flash&fmt=images)

FAQ · ByteDance Seed: Seedream 5.0 Flash

可以使用哪些輸入與結果？

`POST /v1/images/generations` · `bytedance-seed/seedream-5-0-flash`: `text` → `image`

請求使用哪些欄位？

`POST /v1/images/generations` · `bytedance-seed/seedream-5-0-flash`: `model`, `prompt`, `n`, `response_format`, `stream`

將 Ailoot 串接 Claude Code、OpenCode、Hermes 或自己的應用程式。

## 公司及其專案組合

公司及其專案組合：數百萬客戶，每月銷售額達數十億。

## 優惠購買 token。

訂閱優惠適合持續工作，折扣碼購買 token 最高可折 50%。

訂閱

為定期請求選擇優惠方案。

最高 50% 折扣碼

購買時輸入代碼，價格依活動重算。

歷史中的費用

每次請求保存模型、token 與金額。

[選擇訂閱](https://ailoot.ai/docs/zh-hant-tw/billing/subscriptions/) · [查看模型價格](https://ailoot.ai/models/zh-hant-tw/)

## 將 API 加入 你銷售的產品。

依 Ailoot 正式服務條款與授權合約串接 SaaS、應用程式與機器人；轉售請申請經銷授權。

商用應用程式

在付費功能加入文字、圖片、影片與聲音生成。

經銷授權

提供專案說明與存取方式，要求書面使用和轉售條件。

網站文件

串接前可閱讀正式服務條款、授權合約與資料處理政策。

[申請經銷授權](mailto:support@ailoot.ai) · [正式服務條款與授權合約](https://ailoot.ai/legal/offer?lang=zh-hant-tw)

## Ailoot · 公司及其專案組合





Ailoot以累積的營運經驗、廣大的客戶群、穩定的服務及持續的KPI管理為基礎。





公司及其專案組合：數百萬客戶，每月銷售額達數十億。





Ailoot將這些營運經驗用於API存取，讓客戶的產品、代理、應用程式及自動化流程使用AI功能。
