Source: https://ailoot.ai/models/zh-hant-tw/baidu-ernie-4-5-0-3b/
Canonical: https://ailoot.ai/models/zh-hant-tw/baidu-ernie-4-5-0-3b/
Language: zh-hant-tw

# ERNIE 4.5 0.3B

[Markdown](https://ailoot.ai/models/zh-hant-tw/baidu-ernie-4-5-0-3b/index.md) · [JSON](https://ailoot.ai/models/zh-hant-tw/baidu-ernie-4-5-0-3b/facts.json)

## [ERNIE 4.5 0.3B](https://ailoot.ai/models/zh-hant-tw/baidu-ernie-4-5-0-3b/)

ERNIE 4.5 0.3B是ERNIE 4.5開源系列的文字對話模型。透過Chat Completions或Messages使用確切ID baidu/ernie-4.5-0.3b，即可處理提供的文字：撰寫回覆、摘要筆記、擷取指定資訊，或解釋短文。其公開模型資料列出120,000個詞元的上下文容量與8,000個詞元的完成內容上限；兩個數值代表不同的限制。

- [**Ailoot Ultra · Chat Completions** `POST /v1/chat/completions` `baidu/ernie-4.5-0.3b`](https://ailoot.ai/models/zh-hant-tw/baidu-ernie-4-5-0-3b/#method-0)
- [**Ailoot Ultra · Messages** `POST /v1/messages` `baidu/ernie-4.5-0.3b`](https://ailoot.ai/models/zh-hant-tw/baidu-ernie-4-5-0-3b/#method-1)

關於模型

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

ERNIE 4.5 0.3B透過Ailoot Ultra接受文字對話。確切模型ID為baidu/ernie-4.5-0.3b。請將來源資料直接放入訊息，並描述需要的結果。這個文字模型規格適合將客戶筆記整理成回覆、濃縮文件節錄，或依約定版型擷取指定事實等任務。

實用的請求會結合資料、任務與回答要求。撰寫客服回覆時，請提供客戶訊息，以及回覆必須遵循的政策文字。製作摘要時，請指明預期讀者，並要求列出決策、待解問題與行動項目。擷取資訊時，請指定欄位名稱，並說明如何呈現來源未包含的事實。這些指示能讓您依據提供的資料核對結果。

使用Chat Completions時，請將model及非空的messages陣列傳送至POST /v1/chat/completions。每則訊息須提供role與文字content。若回答取決於對話內容，請納入相關的先前回合。處理文件時，請讀取實際文字，並將相關內容放入訊息；單獨提供檔名並不等於提供文件。

使用Messages時，請將model、messages與max\_tokens傳送至POST /v1/messages。使用user與assistant回合，並可另行提供system指示。內容可以是文字字串或文字區塊。max\_tokens須為至少1的整數。公開模型資料列出8,000個詞元的完成內容上限與120,000個詞元的上下文容量；準備對話時，請為要求的回答預留空間。上下文大小並不表示回答可以包含120,000個詞元。

兩種介面都提供布林值stream控制項，預設為false。取得完整JSON回答時，請保留所有回傳的結果欄位與usage紀錄。採用串流傳送時，請先收集事件並組合所有回答內容，再將回應視為完成。Chat Completions將一般回覆放在choices\[\].message.content；Messages則回傳內容區塊，以及stop\_reason與usage。若連線在完成前結束，請保留原始請求識別資訊與已收到的所有回應，以便調查不完整回應，避免盲目重送相同請求。

**Ailoot Ultra · Chat Completions** `POST /v1/chat/completions` `baidu/ernie-4.5-0.3b`

[`baidu/ernie-4.5-0.3b`](https://ailoot.ai/models/zh-hant-tw/#m=baidu%2Fernie-4.5-0.3b&route=Ultra&caller=baidu%2Fernie-4.5-0.3b&fmt=chat)

Baidu /`baidu/ernie-4.5-0.3b`

### 入門

ERNIE 4.5 0.3B是ERNIE 4.5開源系列的文字對話模型。透過Chat Completions或Messages使用確切ID baidu/ernie-4.5-0.3b，即可處理提供的文字：撰寫回覆、摘要筆記、擷取指定資訊，或解釋短文。其公開模型資料列出120,000個詞元的上下文容量與8,000個詞元的完成內容上限；兩個數值代表不同的限制。

接受的輸入

文字

結果

文字

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

**Ailoot Ultra · Chat Completions** `POST /v1/chat/completions`

輸入

`text`

輸出

`text`

上下文

120,000 tokens

輸出上限

8,000 tokens

輸出格式

JSON or supported SSE

| 欄位 | 類型 | 要求 | 值與限制 | 預設值 |
| --- | --- | --- | --- | --- |
| 欄位`model` | 類型`string` | 要求必填 | 值與限制 baidu/ernie-4.5-0.3b | 預設值— |
| 欄位`messages` | 類型`array` | 要求必填 | 值與限制 | 預設值— |
| 欄位`stream` | 類型`boolean` | 要求選填 | 值與限制 | 預設值false |
| 欄位`max_tokens` | 類型`integer` | 要求選填 | 值與限制 最小值: 1 | 預設值— |
| 欄位`max_completion_tokens` | 類型`integer` | 要求選填 | 值與限制 最小值: 1 | 預設值— |
| 欄位`n` | 類型`integer` | 要求選填 | 值與限制 最小值: 1 | 預設值— |
| 欄位`temperature` | 類型`number` | 要求選填 | 值與限制 | 預設值— |
| 欄位`top_p` | 類型`number` | 要求選填 | 值與限制 | 預設值— |
| 欄位`seed` | 類型`integer` | 要求選填 | 值與限制 | 預設值— |
| 欄位`stop` | 類型`` | 要求選填 | 值與限制 | 預設值— |
| 欄位`frequency_penalty` | 類型`number` | 要求選填 | 值與限制 | 預設值— |
| 欄位`presence_penalty` | 類型`number` | 要求選填 | 值與限制 | 預設值— |
| 欄位`user` | 類型`string` | 要求選填 | 值與限制 | 預設值— |
| 欄位`tools` | 類型`array` | 要求選填 | 值與限制 | 預設值— |
| 欄位`service_tier` | 類型`string` | 要求選填 | 值與限制 , auto, default | 預設值— |
| 欄位`modalities` | 類型`array` | 要求選填 | 值與限制 | 預設值— |

方法參數與生命週期

| 參數 | 規格 |
| --- | --- |
| 參數`content_type` | 規格application/json |
| 參數`required` | 規格model, messages |
| 參數`optional` | 規格stream, max\_tokens, max\_completion\_tokens, n, temperature, top\_p, seed, stop, frequency\_penalty, presence\_penalty, user, tools, service\_tier, modalities |
| 參數`material_types` | 規格text |
| 參數`conditions` | 規格Use text input and text output. Explicit cache, hosted tools and media are unavailable. Standard function tools remain a protocol feature and run in the client. |

生命週期： `synchronous_json_or_sse`

### 方案

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

快速模式

標準費率 選取快速模式時

flex 模式

標準費率 選取 flex 模式時

最高推理強度

標準費率 最高推理強度採用 default 調整值時

顯式快取計價

未啟用 請求顯式快取時

純文字零費率

快取、工具與媒體各依其另行列出的計價條件計費。 適用於純文字輸入與輸出

#### Ailoot 費率

#### 各設定的價格

| 設定 | 費率表 | 費用 |
| --- | --- | --- |
| 設定基礎 token 費率 | 費率表基本費率 | 費用 輸入 · 輸入 Token **$0** / 1K Token 輸出 · 輸出 Token **$0** / 1K Token 輸入 · 讀取快取 **$0** / 1K Token 輸入 · 寫入快取 **$0** / 1K Token 輸入 · 寫入快取，1 小時 **—** / 1K Token |

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

### 請求範例

#### Ailoot Ultra · Chat Completions

curl · 僅建立一次並保留完整結果

```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": "baidu/ernie-4.5-0.3b", "messages": [{"role": "user", "content": "Summarize the supplied text in three concise points."}], "stream": false}')

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/chat/completions \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
# Submit once. Retain the complete result, original identifiers and every response header.
```

### 接收並儲存結果

#### Ailoot Ultra · Chat Completions

JSON or supported SSE

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

請保留所有完整傳回的回應、檔案與內容區塊。

Retain the complete response, all actual results, original identifiers, usage and response headers.

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

Preserve the original response, headers and X-Client-Request-ID. An uncertain outcome does not authorize another creation.

### 別名

#### 模型別名

**Ailoot Ultra** [`baidu/ernie-4.5-0.3b`](https://ailoot.ai/models/zh-hant-tw/#m=baidu%2Fernie-4.5-0.3b&route=Ultra&caller=baidu%2Fernie-4.5-0.3b&fmt=chat)

#### 方法路徑別名

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

#### 相關呼叫用 ID

[`baidu/ernie-4.5-0.3b`](https://ailoot.ai/models/zh-hant-tw/#m=baidu%2Fernie-4.5-0.3b&route=Ultra&caller=baidu%2Fernie-4.5-0.3b&fmt=chat)

**Ailoot Ultra · Messages** `POST /v1/messages` `baidu/ernie-4.5-0.3b`

[`baidu/ernie-4.5-0.3b`](https://ailoot.ai/models/zh-hant-tw/#m=baidu%2Fernie-4.5-0.3b&route=Ultra&caller=baidu%2Fernie-4.5-0.3b&fmt=messages)

Baidu /`baidu/ernie-4.5-0.3b`

### 入門

ERNIE 4.5 0.3B是ERNIE 4.5開源系列的文字對話模型。透過Chat Completions或Messages使用確切ID baidu/ernie-4.5-0.3b，即可處理提供的文字：撰寫回覆、摘要筆記、擷取指定資訊，或解釋短文。其公開模型資料列出120,000個詞元的上下文容量與8,000個詞元的完成內容上限；兩個數值代表不同的限制。

接受的輸入

文字

結果

文字

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

**Ailoot Ultra · Messages** `POST /v1/messages`

輸入

`text`

輸出

`text`

上下文

120,000 tokens

輸出上限

8,000 tokens

輸出格式

JSON or supported SSE

| 欄位 | 類型 | 要求 | 值與限制 | 預設值 |
| --- | --- | --- | --- | --- |
| 欄位`model` | 類型`string` | 要求必填 | 值與限制 baidu/ernie-4.5-0.3b | 預設值— |
| 欄位`messages` | 類型`array` | 要求必填 | 值與限制 | 預設值— |
| 欄位`stream` | 類型`boolean` | 要求選填 | 值與限制 | 預設值false |
| 欄位`system` | 類型`string` | 要求選填 | 值與限制 | 預設值— |
| 欄位`max_tokens` | 類型`integer` | 要求必填 | 值與限制 最小值: 1 | 預設值— |
| 欄位`temperature` | 類型`number` | 要求選填 | 值與限制 | 預設值— |
| 欄位`top_p` | 類型`number` | 要求選填 | 值與限制 | 預設值— |
| 欄位`top_k` | 類型`integer` | 要求選填 | 值與限制 | 預設值— |
| 欄位`stop_sequences` | 類型`array` | 要求選填 | 值與限制 | 預設值— |
| 欄位`metadata` | 類型`object` | 要求選填 | 值與限制 | 預設值— |
| 欄位`tools` | 類型`array` | 要求選填 | 值與限制 | 預設值— |
| 欄位`service_tier` | 類型`string` | 要求選填 | 值與限制 , auto, default | 預設值— |
| 欄位`modalities` | 類型`array` | 要求選填 | 值與限制 | 預設值— |

方法參數與生命週期

| 參數 | 規格 |
| --- | --- |
| 參數`content_type` | 規格application/json |
| 參數`required` | 規格model, messages, max\_tokens |
| 參數`optional` | 規格stream, system, temperature, top\_p, top\_k, stop\_sequences, metadata, tools, service\_tier, modalities |
| 參數`material_types` | 規格text |
| 參數`conditions` | 規格Use text input and text output. Explicit cache, hosted tools and media are unavailable. Standard function tools remain a protocol feature and run in the client. |

生命週期： `synchronous_json_or_sse`

### 方案

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

快速模式

標準費率 選取快速模式時

flex 模式

標準費率 選取 flex 模式時

最高推理強度

標準費率 最高推理強度採用 default 調整值時

顯式快取計價

未啟用 請求顯式快取時

純文字零費率

快取、工具與媒體各依其另行列出的計價條件計費。 適用於純文字輸入與輸出

#### Ailoot 費率

#### 各設定的價格

| 設定 | 費率表 | 費用 |
| --- | --- | --- |
| 設定基礎 token 費率 | 費率表基本費率 | 費用 輸入 · 輸入 Token **$0** / 1K Token 輸出 · 輸出 Token **$0** / 1K Token 輸入 · 讀取快取 **$0** / 1K Token 輸入 · 寫入快取 **$0** / 1K Token 輸入 · 寫入快取，1 小時 **—** / 1K Token |

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

### 請求範例

#### Ailoot Ultra · Messages

curl · 僅建立一次並保留完整結果

```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": "baidu/ernie-4.5-0.3b", "messages": [{"role": "user", "content": "Summarize the supplied text in three concise points."}], "stream": false, "max_tokens": 256}')

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/messages \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
# Submit once. Retain the complete result, original identifiers and every response header.
```

### 接收並儲存結果

#### Ailoot Ultra · Messages

JSON or supported SSE

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

請保留所有完整傳回的回應、檔案與內容區塊。

Retain the complete response, all actual results, original identifiers, usage and response headers.

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

Preserve the original response, headers and X-Client-Request-ID. An uncertain outcome does not authorize another creation.

### 別名

#### 模型別名

**Ailoot Ultra** [`baidu/ernie-4.5-0.3b`](https://ailoot.ai/models/zh-hant-tw/#m=baidu%2Fernie-4.5-0.3b&route=Ultra&caller=baidu%2Fernie-4.5-0.3b&fmt=messages)

#### 方法路徑別名

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

#### 相關呼叫用 ID

[`baidu/ernie-4.5-0.3b`](https://ailoot.ai/models/zh-hant-tw/#m=baidu%2Fernie-4.5-0.3b&route=Ultra&caller=baidu%2Fernie-4.5-0.3b&fmt=messages)

FAQ · ERNIE 4.5 0.3B

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

`POST /v1/chat/completions` · `baidu/ernie-4.5-0.3b`: `text` → `text` `POST /v1/messages` · `baidu/ernie-4.5-0.3b`: `text` → `text`

請求使用哪些欄位？

`POST /v1/chat/completions` · `baidu/ernie-4.5-0.3b`: `model`, `messages`, `stream`, `max_tokens`, `max_completion_tokens`, `n`, `temperature`, `top_p`, `seed`, `stop`, `frequency_penalty`, `presence_penalty`, `user`, `tools`, `service_tier`, `modalities` `POST /v1/messages` · `baidu/ernie-4.5-0.3b`: `model`, `messages`, `stream`, `system`, `max_tokens`, `temperature`, `top_p`, `top_k`, `stop_sequences`, `metadata`, `tools`, `service_tier`, `modalities`

適用哪些限制？

`POST /v1/chat/completions` · `baidu/ernie-4.5-0.3b`: `ctx`: `120000`; `max_out`: `8000`; `max_tokens.minimum`: `1`; `max_completion_tokens.minimum`: `1`; `n.minimum`: `1` `POST /v1/messages` · `baidu/ernie-4.5-0.3b`: `ctx`: `120000`; `max_out`: `8000`; `max_tokens.minimum`: `1`

將 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功能。
