Newshot
Account

Gemini Decision 1 now available on AI Gateway

Summary

Gemini Decision 1 from Google is now available on AI Gateway. The multimodal decision model works with text, images, audio, video, and PDF documents, returning Boolean probabilities, choices, and scores. Use it to route requests, check policies, filter agent tools, or rank results without generating output tokens. Use google/gemini-decision-1 with the AI SDK, TypeSafe-compatible API, or Decisions API. PDF, audio, and video inputs are supported through AI SDK 7. The TypeSafe-compatible and Decisions APIs support text and image inputs. AI Gateway provides a unified way to access models and track usage and cost. Decision calls appear in logs and count toward budgets alongside other model requests. See the decision documentation for Choice, Score, and Boolean questions. To pick a decision model, browse the available models or read our decision model guides . Read more

Original text(via Vercel Blog)

Gemini Decision 1 from Google is now available on AI Gateway. The multimodal decision model works with text, images, audio, video, and PDF documents, returning Boolean probabilities, choices, and scores. Use it to route requests, check policies, filter agent tools, or rank results without generating output tokens.

Use google/gemini-decision-1 with the AI SDK, TypeSafe-compatible API, or Decisions API.

PDF, audio, and video inputs are supported through AI SDK 7. The TypeSafe-compatible and Decisions APIs support text and image inputs.


        import { experimental_decide as decide } from 'ai';
const result = await decide({  model: 'google/gemini-decision-1',  state: 'I was charged twice. Please refund the duplicate charge.',  questions: {    requestsRefund: {      type: 'boolean',      instructions: 'Does the customer request a refund?',    },  },});
console.log(result.answers.requestsRefund);
      

AI Gateway provides a unified way to access models and track usage and cost. Decision calls appear in logs and count toward budgets alongside other model requests.

See the decision documentation for Choice, Score, and Boolean questions. To pick a decision model, browse the available models or read our decision model guides.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by Vercel Blog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗