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