Source: https://ailoot.ai/models/zh-hant-tw/cohere-north-mini-code-u003a-free/
Canonical: https://ailoot.ai/models/zh-hant-tw/cohere-north-mini-code-u003a-free/
Language: zh-hant-tw

# Cohere: North Mini Code (free)

[Markdown](https://ailoot.ai/models/zh-hant-tw/cohere-north-mini-code-u003a-free/index.md) · [JSON](https://ailoot.ai/models/zh-hant-tw/cohere-north-mini-code-u003a-free/facts.json)

## [Cohere: North Mini Code (free)](https://ailoot.ai/models/zh-hant-tw/cohere-north-mini-code-u003a-free/)

North Mini Code 1.0 是 Cohere 用於程式碼生成、儲存庫變更及終端機驅動代理任務的純文字模型。其稀疏 30B 總參數／3B 啟用參數設計支援工具使用與交錯思考，文件記載具有 256K 上下文及 64K 輸出額度。

- [**Ailoot Ultra · OpenAI Chat** `POST /v1/chat/completions` `cohere/north-mini-code:free`](https://ailoot.ai/models/zh-hant-tw/cohere-north-mini-code-u003a-free/#method-0)
- [**Ailoot Ultra · Anthropic Messages** `POST /v1/messages` `cohere/north-mini-code:free`](https://ailoot.ai/models/zh-hant-tw/cohere-north-mini-code-u003a-free/#method-1)

關於模型

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

North Mini Code 1.0 是 Cohere 用於代理式軟體工程、終端機任務及程式碼生成的模型。它接收文字並產生文字，包括程式碼、說明及工具請求。製造商以 Apache 2.0 授權發布權重，並將它列為 North 程式代理系列的第一個模型。它是專門的程式模型規格，而非圖片理解模型或通用決策評分器。

#### 稀疏架構與程式任務準備

模型具有 300 億總參數，約 30 億啟用參數。僅解碼器的 Transformer 使用稀疏混合專家架構，具有 128 個專家，每個 token 啟用八個，並在稀疏層前設置稠密層。帶旋轉位置的滑動視窗注意力，與不含位置嵌入的全域注意力以 3:1 比例交錯。啟用參數數字描述單一 token 使用的計算，而非必須儲存的全部權重。

Cohere 的後訓練先進行兩階段監督式微調，再進行使用可驗證獎勵的強化學習，聚焦軟體工程與終端機工作。開發商描述跨多種代理執行框架訓練，而非單一固定架構。這支援以所需行為與可用工具準備任務；周邊執行框架仍負責取得檔案、執行命令及傳回觀察結果。

#### 準備儲存庫層級變更

提供目前程式碼與行為、要求變更、相關檔案或介面邊界，以及能確立完成的佐證。錯誤修正應包含觀察到的錯誤或失敗輸入，以及預期結果。功能任務應說明必要行為與相容性限制。實用的最終產出是建議程式碼變更、說明，以及實際執行檢查的結果。

請求示例可要求更新剖析器，新增一種支援輸入並保留既有格式。指出具代表性的輸入，以及儲存庫中定義剖析器行為的部分。模型可使用程式碼與工具觀察結果發展變更；生成的修補或宣稱命令應可執行，都不能證明命令已成功。

#### 終端機工具與結構化觀察結果

原生模型卡記載工具使用訓練，並建議透過模型對話範本提供 JSON 結構描述的工具說明。清楚描述工具用途與引數。命令執行工具可傳回實際輸出及狀態；檔案檢視工具可傳回下一步所需資料。將每個工具結果與呼叫識別碼關聯，讓後續分析使用預期觀察結果。

開發商範例在歷史中保留工具呼叫與助理推理，執行工具，加入結果後再生成。其原生範本範例使用結構化字典表示工具結果。依文件記載的整合保留此表示，避免假設每個不相關 API 都以相同方式序列化工具結果。描述工具引數的 JSON 結構描述，與宣稱支援任意結構描述限制的最終輸出不同。

#### 交錯思考與多輪歷史

North Mini Code 支援交錯思考，開發商建議代理工作啟用此功能。將模型生成的思考內容與工具呼叫帶入後續代理步驟與對話輪次。原生範例在助理訊息中保留 reasoning 欄位，之後傳回相應工具觀察結果。這保留模型決定接下來檢視或變更什麼時所使用的資訊。

在任務歷史中保留目前目標、來源資料及實際觀察結果。較長儲存庫任務應圍繞變更行為與實用產出摘要最終結果，同時保留審閱所需佐證。交錯推理不代表簡短的可見回答不需要分析，也不能確立模型描述的操作已經發生。

#### 獨立程式碼與說明任務

製造商也指出代理循環以外的科學程式撰寫與演算法推理。提供問題定義、輸入與輸出格式、限制、相關數值假設及預期邊界行為。若所需產出是完整函式或程式，就明確要求，並提供符合讀者程度的說明。

程式碼說明應提供實作，以及要釐清的特定行為或相依關係。資料視覺化程式碼應指出提供欄位與預期比較，避免讓圖表用途未被明說。開發商的開發範例包含程式碼說明、編輯、視覺化及依規格實作。這些是生成或修改程式碼的任務模式，並非保證每個儲存庫或框架都能得到正確結果。

#### 上下文、輸出與生成設定

製造商模型卡與 API 頁面列出 256K 個 token 的上下文視窗，以及最多 64K 個 token 的輸出。依這些獨立額度與最終產出大小，準備大量儲存庫資料。保持來源邊界及識別碼完整，移除無關資料，避免假設大型視窗可免除聚焦任務說明的必要。

原生模型卡建議生成使用 temperature 1.0 及 top\_p 0.95，文字與工具工作流程使用模型對話範本並包含生成提示。範例輸出限制是那些範例的設定，不能取代模型公布的上限。Cohere 發布 BF16 權重，以及獨立具名的 FP8 產出。準備部署時選擇適合的產出。

實用的 North Mini Code 結果是可檢視、對應提供需求的程式碼產出或技術說明。將結果與原始行為及實際工具輸出比較，檢查會影響程式碼的假設，並保留審閱所需來源及觀察結果。純文字程式模型提供推理與生成內容；周邊應用程式執行操作，將這些提案轉成完成的軟體任務。

**Ailoot Ultra · OpenAI Chat** `POST /v1/chat/completions` `cohere/north-mini-code:free`

[`cohere/north-mini-code:free`](https://ailoot.ai/models/zh-hant-tw/#m=cohere%2Fnorth-mini-code%3Afree&route=Ultra&caller=cohere%2Fnorth-mini-code%3Afree&fmt=chat)

Cohere /`cohere/north-mini-code:free`

### 入門

North Mini Code 1.0 是 Cohere 用於程式碼生成、儲存庫變更及終端機驅動代理任務的純文字模型。其稀疏 30B 總參數／3B 啟用參數設計支援工具使用與交錯思考，文件記載具有 256K 上下文及 64K 輸出額度。

接受的輸入

文字

結果

文字

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

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

輸入

`text`

輸出

`text`

上下文

256,000 tokens

輸出上限

64,000 tokens

輸出格式

JSON

| 欄位 | 類型 | 要求 | 值與限制 | 預設值 |
| --- | --- | --- | --- | --- |
| 欄位`model` | 類型`string` | 要求必填 | 值與限制 cohere/north-mini-code:free | 預設值— |
| 欄位`messages` | 類型`array` | 要求必填 | 值與限制 | 預設值— |
| 欄位`stream` | 類型`boolean` | 要求選填 | 值與限制 false | 預設值false |
| 欄位`max_tokens` | 類型`integer` | 要求選填 | 值與限制 最小值: 1 最大值: 64,000 | 預設值— |
| 欄位`max_completion_tokens` | 類型`integer` | 要求選填 | 值與限制 最小值: 1 最大值: 64,000 | 預設值— |
| 欄位`n` | 類型`integer` | 要求選填 | 值與限制 最小值: 1 最大值: 128 | 預設值— |
| 欄位`temperature` | 類型`number` | 要求選填 | 值與限制 | 預設值— |
| 欄位`top_p` | 類型`number` | 要求選填 | 值與限制 | 預設值— |
| 欄位`seed` | 類型`integer` | 要求選填 | 值與限制 | 預設值— |
| 欄位`stop` | 類型`` | 要求選填 | 值與限制 | 預設值— |
| 欄位`frequency_penalty` | 類型`number` | 要求選填 | 值與限制 | 預設值— |
| 欄位`presence_penalty` | 類型`number` | 要求選填 | 值與限制 | 預設值— |
| 欄位`user` | 類型`string` | 要求選填 | 值與限制 | 預設值— |

方法參數與生命週期

| 參數 | 規格 |
| --- | --- |
| 參數`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 |
| 參數`material_types` | 規格text |
| 參數`conditions` | 規格Use literal text messages only. Cache controls, tools, image/audio/video content and streamed responses are unavailable for this method., The complete encoded JSON request must not exceed 256000 bytes. |

生命週期： `synchronous_json`

### 方案

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

快速模式

標準費率 選取快速模式時

flex 模式

標準費率 選取 flex 模式時

最高推理強度

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

顯式快取計價

未啟用 請求顯式快取時

純文字零費率

Text input and output only. Cache, tools, media and streaming are unavailable. 適用於純文字輸入與輸出

#### Ailoot 費率

#### 各設定的價格

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

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

### 請求範例

#### Ailoot Ultra · OpenAI Chat

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": "cohere/north-mini-code:free", "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 · OpenAI Chat

JSON

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

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

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** [`cohere/north-mini-code:free`](https://ailoot.ai/models/zh-hant-tw/#m=cohere%2Fnorth-mini-code%3Afree&route=Ultra&caller=cohere%2Fnorth-mini-code%3Afree&fmt=chat)

#### 方法路徑別名

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

#### 相關呼叫用 ID

[`cohere/north-mini-code:free`](https://ailoot.ai/models/zh-hant-tw/#m=cohere%2Fnorth-mini-code%3Afree&route=Ultra&caller=cohere%2Fnorth-mini-code%3Afree&fmt=chat)

**Ailoot Ultra · Anthropic Messages** `POST /v1/messages` `cohere/north-mini-code:free`

[`cohere/north-mini-code:free`](https://ailoot.ai/models/zh-hant-tw/#m=cohere%2Fnorth-mini-code%3Afree&route=Ultra&caller=cohere%2Fnorth-mini-code%3Afree&fmt=messages)

Cohere /`cohere/north-mini-code:free`

### 入門

North Mini Code 1.0 是 Cohere 用於程式碼生成、儲存庫變更及終端機驅動代理任務的純文字模型。其稀疏 30B 總參數／3B 啟用參數設計支援工具使用與交錯思考，文件記載具有 256K 上下文及 64K 輸出額度。

接受的輸入

文字

結果

文字

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

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

輸入

`text`

輸出

`text`

上下文

256,000 tokens

輸出上限

64,000 tokens

輸出格式

JSON

| 欄位 | 類型 | 要求 | 值與限制 | 預設值 |
| --- | --- | --- | --- | --- |
| 欄位`model` | 類型`string` | 要求必填 | 值與限制 cohere/north-mini-code:free | 預設值— |
| 欄位`messages` | 類型`array` | 要求必填 | 值與限制 | 預設值— |
| 欄位`stream` | 類型`boolean` | 要求選填 | 值與限制 false | 預設值false |
| 欄位`system` | 類型`string` | 要求選填 | 值與限制 | 預設值— |
| 欄位`max_tokens` | 類型`integer` | 要求必填 | 值與限制 最小值: 1 最大值: 64,000 | 預設值— |
| 欄位`temperature` | 類型`number` | 要求選填 | 值與限制 | 預設值— |
| 欄位`top_p` | 類型`number` | 要求選填 | 值與限制 | 預設值— |
| 欄位`top_k` | 類型`integer` | 要求選填 | 值與限制 | 預設值— |
| 欄位`stop_sequences` | 類型`array` | 要求選填 | 值與限制 | 預設值— |
| 欄位`metadata` | 類型`object` | 要求選填 | 值與限制 | 預設值— |

方法參數與生命週期

| 參數 | 規格 |
| --- | --- |
| 參數`content_type` | 規格application/json |
| 參數`required` | 規格model, messages, max\_tokens |
| 參數`optional` | 規格stream, system, temperature, top\_p, top\_k, stop\_sequences, metadata |
| 參數`material_types` | 規格text |
| 參數`conditions` | 規格Use literal text messages only. Cache controls, tools, image/audio/video content and streamed responses are unavailable for this method., The complete encoded JSON request must not exceed 256000 bytes. |

生命週期： `synchronous_json`

### 方案

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

快速模式

標準費率 選取快速模式時

flex 模式

標準費率 選取 flex 模式時

最高推理強度

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

純文字零費率

Text input and output only. Cache, tools, media and streaming are unavailable. 適用於純文字輸入與輸出

#### Ailoot 費率

#### 各設定的價格

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

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

### 請求範例

#### Ailoot Ultra · Anthropic 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": "cohere/north-mini-code:free", "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 · Anthropic Messages

JSON

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

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

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** [`cohere/north-mini-code:free`](https://ailoot.ai/models/zh-hant-tw/#m=cohere%2Fnorth-mini-code%3Afree&route=Ultra&caller=cohere%2Fnorth-mini-code%3Afree&fmt=messages)

#### 方法路徑別名

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

#### 相關呼叫用 ID

[`cohere/north-mini-code:free`](https://ailoot.ai/models/zh-hant-tw/#m=cohere%2Fnorth-mini-code%3Afree&route=Ultra&caller=cohere%2Fnorth-mini-code%3Afree&fmt=messages)

FAQ · Cohere: North Mini Code (free)

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

`POST /v1/chat/completions` · `cohere/north-mini-code:free`: `text` → `text` `POST /v1/messages` · `cohere/north-mini-code:free`: `text` → `text`

請求使用哪些欄位？

`POST /v1/chat/completions` · `cohere/north-mini-code:free`: `model`, `messages`, `stream`, `max_tokens`, `max_completion_tokens`, `n`, `temperature`, `top_p`, `seed`, `stop`, `frequency_penalty`, `presence_penalty`, `user` `POST /v1/messages` · `cohere/north-mini-code:free`: `model`, `messages`, `stream`, `system`, `max_tokens`, `temperature`, `top_p`, `top_k`, `stop_sequences`, `metadata`

適用哪些限制？

`POST /v1/chat/completions` · `cohere/north-mini-code:free`: `ctx`: `256000`; `max_out`: `64000`; `max_tokens.minimum`: `1`; `max_tokens.maximum`: `64000`; `max_completion_tokens.minimum`: `1`; `max_completion_tokens.maximum`: `64000`; `n.minimum`: `1`; `n.maximum`: `128` `POST /v1/messages` · `cohere/north-mini-code:free`: `ctx`: `256000`; `max_out`: `64000`; `max_tokens.minimum`: `1`; `max_tokens.maximum`: `64000`

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