The decisions kit: move your yes-or-no AI calls to the Gemini Decisions API
The short version
On 11 Nov 2026 Google released the Gemini Decisions API. It doesn't write text. You send it one input, like a support ticket, a photo or a PDF, plus the answers it is allowed to give, and it picks one. Every pick comes back with a confidence score from 0 to 1. Google says it answers in 150 to 250 milliseconds and costs ten cents per million input tokens, with free output.
The useful part is the score. Most apps already have AI calls that only ever answer yes, no, or one label from a short list, and they pay a chat model to write a paragraph around that answer. Move those calls to a model that just picks, send the confident answers straight through, and send the shaky ones to a person. One catch: it always picks something from your list, even when nothing fits, so every list needs an "other" option.
Sources: Google, Gemini Decisions API launch post, 11 Nov 2026 · Google AI Studio, Decisions API docs
Copy these prompts
Paste them into Claude Code (or any coding agent) in your app's repo, in this order.
1. Find your yes-or-no calls
Search this codebase for every place we call an LLM and only use its answer as a yes/no, a label, a category, a routing choice or a 1 to 5 score
(spam checks, ticket routing, intent classification, "which tool", moderation, photo approval, relevance grading, model routing).
For each one, list the file and line, the prompt, the exact answers it is allowed to return, how the code uses the answer, and roughly how much text we send.
Rank them by how often they run (best guess from the code) and mark the top three as candidates for a closed-set decision with a confidence score.
Don't change any code yet.
2. Write the options and the cutoff
Take the top call from that list. Write its answer options, and always add "other".
Propose a confidence cutoff: at or above it the answer is used automatically, below it the item goes to a human review queue.
Give me 20 labelled test cases from our real data, including 5 where none of the options fits.
3. Run it beside the old call
Add the Decisions API version of that call behind a flag, next to the current model. Do not remove the old call.
Run both on 200 real inputs. Report how often they agree, the latency of each, the cost per 1,000 calls of each,
and every input where they disagree with its confidence score. Then suggest where to move the cutoff.
Show me the diff before you apply it.
What you can ask
| Type | Key in the API | You get back |
|---|---|---|
| Yes or no | noul |
the probability the condition holds (the docs bound it at 0.01 to 0.99) |
| Pick one | choice |
the winner plus a probability for every option (2 to 255 options) |
| Grade it | score |
a weighted score over an ordered rubric, plus the probability of each level |
One request is one shared input (text, images, audio, video or PDFs, up to 256K tokens) plus up to 1,000 independent questions. The model is gemini-decision-1, in the Gemini API and Google AI Studio.
The numbers
These are Google's own claims, not independently tested.
| What | Value |
|---|---|
| Latency | 150 to 250 ms end to end, tested on inputs up to 16K tokens |
| Price | $0.10 per 1M input tokens, $0 output |
| Billing | the shared input is billed once per request; each extra question adds only its own instruction tokens |
| Free tier | a no-cost tier in AI Studio for prototyping |
| In use | Gemini Notebook uses it to send each question to the right model tier and thinking level |
What to watch for
- A
choicequestion always spreads its probability across your options, even when none of them fits. Without "other" it forces a wrong answer and still looks sure. - Question instructions are text only. YouTube links and
gs://URIs aren't accepted as input. - No context caching and no Batch API, so the same input sent twice is billed twice.
- An input blocked by the safety filter returns an HTTP 400 error, not an answer. Handle it like a low-confidence case.
- It needs the 3.2 or newer SDK. On Google Cloud it is listed as coming soon.
Steal this for your app
Calls that are usually a choice, not writing:
| Call | Question type |
|---|---|
| Is this signup or comment spam? | yes or no |
| Which queue does this support ticket go to? | pick one |
| Is this user photo ok to show? | yes or no |
| Is this a refund, a cancel or a question? | pick one |
| How urgent is this message, 1 to 5? | grade it |
| Which model should answer this question? | pick one |
The rollout that keeps you safe:
- Pick ONE call with high volume and low stakes. Keep the old model running beside it.
- Run both on 200 real examples and compare the answers.
- Set the cutoff where the new answers agree with the old ones. Below it, send the item to a person or the old model.
- Log the confidence next to every answer so you can move the cutoff later.
Keep refunds, account bans and anything with money on it behind a human until the numbers say otherwise.
Run this on your codebase
Audit every AI call in this repo.
1. Mark each one CHOICE (the answer is always from a fixed set: yes/no, a label, a category, a 1 to 5 grade) or OPEN (free text, code, a summary, a chat reply).
2. For every CHOICE call, write its exact answer set and add "other" if it is missing.
3. Say what happens today when the model is unsure, and where a low-confidence answer should go instead (a human queue or a bigger model).
4. Rank the CHOICE calls by volume and cost, and pick the first one to move to a decision model with a confidence cutoff.
Don't change any code. End with a table: call, file, answer set, current model, proposed cutoff, fallback.