Gemini Decision and the Decisions API: yes/no, choice and score answers with zero output tokens (November 11, 2026)
New gemini-decision-1 model returns yes/no, choice and score answers, billed on input only at $0.10 per 1M tokens on the paid tier.
Your keys
0 of 1 ready
Create each key on its own page, paste it below, then copy the finished lines into your project's .env file. What you paste stays in this tab. It is never sent to Wirestack or saved.
- Google Gemini API API keyGEMINI_API_KEYGet key
Click Create API key
What changed
On November 11, 2026 Google released the model gemini-decision-1 and the Decisions API. You send it text, images, audio, video or a PDF plus a set of questions in one request. It sends back probabilities, not generated text, so output token usage is always 0.
There are three question types:
noulchecks whether a statement holds. It returns a probability between 0.01 and 0.99, plusconfidence.choicepicks one option from a fixed list. It returnschoice,probabilitiesandconfidence.scorerates the input against ordered levels. It returnsscore,probabilities,legendandconfidence.
The endpoint is POST https://generativelanguage.googleapis.com/v1beta/decisions, on the Gemini Developer API (v1beta) only. It needs google-genai 3.2 or later, for both Python and JavaScript. One request can carry 1 to 1,000 questions, within a 262,144-token context window.
Pricing: input is free on the Free Tier and costs $0.10 per 1M tokens on the Paid Tier. There is no output price. Shared input is billed once per request, however many questions you ask. Free Tier content can be used to improve Google's products; Paid Tier content is not.
Prerequisites
- A Gemini API key in
GEMINI_API_KEY - Python:
pip install -U google-genai(3.2 or later) - Node:
npm install @google/genai@latest(3.2 or later)
Steps
- Create the client on the v1beta API version:
genai.Client(http_options={"api_version": "v1beta"})in Python, ornew GoogleGenAI({ apiVersion: "v1beta" })in JavaScript. - Call
client.decisions.create(...)withmodel="gemini-decision-1", yourinputand a map. Each question key maps to an object with its and .
