Google 推出 Gemini Decisions API:不生成文字,直接回傳判斷機率
Google DeepMind 在 2026-11-11 推出 Gemini Decisions API,背後是新模型 Gemini Decision 1(gemini-decision-1),透過 Google AI Studio 的 Gemini API(v1beta)提供。它專門處理「選項固定」的判斷,例如工具選擇、政策檢查、模型路由和 context 評分。
它和一般生成 API 的差別
- 不逐字生成答案,而是一次 forward pass 替候選選項打分,回傳機率和 0 到 1 的 confidence。
- 一份共用輸入(文字、JSON、PDF、圖片、音訊、影片,最多 256K tokens)可以搭配最多 1,000 個互相獨立的問題。
- 三種題型:是非題(
noul)、選擇題(choice,2 到 255 個選項)、評分題(score,依序的 rubric)。 - output token 永遠是 0,價格是每 1M input tokens 0.10 美元。
官方公布的數字
- 端到端延遲 150–250 ms(模型計算中位數 50–100 ms),從 1 題到 100 題幾乎持平(Google 自己公布的數字)。
- 在官方的 benchmark 組合上,比用 Interactions API 呼叫 Gemini 3.5 Flash-Lite 便宜將近 5 倍(Google 自己公布的數字)。
開發者要注意
- 需要 SDK 3.2 以上(
google-genai或@google/genai)。 - 文件建議每題只問一件小事,再用一般的
if和權重在程式裡組合;confidence 低的案例可以轉給備援流程或人工。
Google launches the Gemini Decisions API, which returns calibrated decisions instead of generated text
Google DeepMind launched the Gemini Decisions API on 2026-11-11, powered by the new Gemini Decision 1 model (gemini-decision-1) and available through the Gemini API (v1beta) in Google AI Studio. It is built for bounded choices such as tool selection, policy checks, model routing, and context grading.
How it differs from a generative API
- Instead of generating answer text token by token, it scores the candidate options in one forward pass and returns probabilities plus a 0–1 confidence score.
- One shared input (text, JSON, PDF, images, audio, video, up to 256K tokens) can carry up to 1,000 independent questions.
- Three question types: yes/no (
noul), multiple choice (choice, 2 to 255 options), and ordered rubric scores (score). - Output tokens are always 0, and input costs $0.10 per 1M tokens.
Google’s own numbers
- 150–250 ms end-to-end latency (50–100 ms median model compute), nearly flat from 1 to 100 questions per request (figures published by Google).
- Nearly 5x cheaper across Google’s shared benchmark suite than Gemini 3.5 Flash-Lite via the Interactions API (figures published by Google).
For developers
- Requires SDK 3.2 or later (
google-genaior@google/genai). - The docs recommend narrow, single-purpose questions combined in code with ordinary
ifstatements and weights, sending low-confidence cases to a fallback or a human reviewer.