> ## 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.

# Gemini Decision 1

> Gemini Decision 1 對共用輸入進行具名的真假判斷、分類和評分，透過 Google Decisions 協定回傳機率結果。

Gemini Decision 1 是用於分類、路由和量表評分的專用決策模型。它針對共用輸入獨立評估各個具型別的問題，回傳機率，而不是生成回答文字。

> [!NOTE]
>
> 使用專用的 Google Decisions 介面，不使用 generateContent 或 Chat Completions。模型目錄中的通用端點標籤，不代表它是通用聊天模型。

## 模型規格

| 欄位 | 說明 |
| - | - |
| `model` | gemini-decision-1 |
| `endpoint` | [POST /v1beta/decisions](https://mixroute.ai/docs/zh-Hant/api-reference/endpoint/google-decisions.md) |
| `上下文視窗` | 262,144 tokens |
| `單次問題數` | 1-1,000 |
| `輸出` | 具型別的機率結果; 生成文字 token 為 0 |

以上為廠商規格，同時受 MixRoute 路由限制。

## 能力與用法

* 真假判斷使用 `type=noul`，回傳陳述成立的機率。
* 分類問題從 criteria 物件中選擇一個選項；評分問題使用 criteria 陣列定義有序等級。
* 廠商上下文上限為共用輸入與所有問題合計 262,144 tokens，每次最多 1,000 個問題。模型支援多模態輸入，但問題 instructions 僅接受文字。

## 請求示例

將 `MIXROUTE_API_KEY` 設定為你的 MixRoute API Key。

```bash theme={null}
curl --request POST "https://api.mixroute.ai/v1beta/decisions" \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "gemini-decision-1",
  "input": "CSV export fails on every attempt. The customer needs the file today and asks for a human agent.",
  "questions": {
    "needs_human": {
      "type": "noul",
      "instructions": "Does the customer request a human agent?"
    }
  }
}'
```

[Google Decisions API](https://mixroute.ai/docs/zh-Hant/api-reference/endpoint/google-decisions.md)

## 答案與用量

輸出 token 為 0 是正常行為：模型回傳具型別的決策，不生成文字 token。輸入仍會計費。讀取 `usage.total_input_tokens`、`usage.total_output_tokens` 和 `usage.total_tokens`；實際扣費以控制台消費紀錄為準。

可用性和價格取決於 MixRoute 路由，請查看[模型廣場](https://console.mixroute.ai/models)。


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