Gemini Decisions API
549 points
• 1 day ago
• Article
Link
Gemini Decisions API 已推出,旨在为开发者提供一种高效方式:在多种媒体类型中进行快速的概率性决策。该工具由全新的 Gemini Decision 1 模型驱动,专为需要"有界选择"的场景而设计,例如模型路由、策略校验和内容分级。系统不再生成冗长文本,而是将多个候选选项放在一次前向传递中进行评估,从而显著提升速度与成本效率。
Gemini Decision 1 模型的一大核心优势是:它能针对同一份多模态输入,最多回答 1,000 个相互独立的问题。该输入既可以包含文本、图片、音频、视频,也可以包含最多 256K tokens 的 PDF 。由于系统在计算置信度分数与概率时无需像传统方法那样逐 token 解码,因此能达到令人印象深刻的端到端延迟(150 到 250 毫秒)。另外,该 API 不按输出 token 计费,使其在面向高并发、大规模分类任务时,相较于标准生成式 API 模型更具成本优势。
该 API 支持三类决策:二元 yes/no 校验、多项选择,以及有序评分量表。用户可以在同一次请求中混合使用这些类型;每次响应都会返回置信度分数,帮助开发者识别可能存在歧义、需要回退或人工复核的情况。由此,该系统能够成为复杂应用的强大、低延迟"控制中枢",例如将用户查询动态路由到合适的模型层级,或在实时场景中管理安全过滤器。
Google 内部已有多个团队将这项技术集成到产品中以提升效果。例如,Gemini Notebook 使用该 API 将传入查询即时路由到最合适的模型;Stitch rapid canvas 实验则借助它根据用户输入更新设计流程。该 API 还被用于 Google Labs 项目的高速响应,并作为 Google Search 的安全防护层,充分体现其在创意与分析类工作负载中的通用性。
开发者可通过 Google AI Studio 立即开始使用 Gemini Decisions API 构建应用。平台提供了简洁直接的接入流程,并支持 Python 、 JavaScript 以及 REST 等主流编程环境。此外,相关生态集成正持续上线,确保使用 LangChain 、 Vercel 和 Pydantic AI 等框架的开发者,能够轻松把这些快速且校准过的多模态决策能力整合到自身项目中。
The Gemini Decisions API has been introduced to provide developers with a highly efficient way to perform fast, probabilistic decision-making across various media types. Powered by the new Gemini Decision 1 model, this tool is designed for tasks that require bounded choices, such as model routing, policy checks, and content grading. Rather than generating lengthy text, the system focuses on evaluating multiple candidate options in a single forward pass, which results in significant improvements in speed and cost efficiency.
A core advantage of the Gemini Decision 1 model is its ability to handle up to 1,000 independent questions against a single multimodal input. This input can include text, images, audio, video, or PDFs of up to 256K tokens. Because the system calculates confidence scores and probabilities without the need for traditional token-by-token decoding, it achieves impressive end-to-end latency of 150 to 250 milliseconds. Furthermore, the API eliminates output token billing, making it a notably more cost-effective solution for high-volume classification tasks compared to standard generative API models.
The API supports three distinct decision types: binary yes/no checks, multiple-choice selections, and ordered rubric scoring. Users can mix these types within a single request, and every response includes a confidence score, which helps developers identify ambiguous cases that might require a fallback or human review. This flexibility allows the system to act as a powerful, low-latency control plane for complex applications, such as dynamically routing user queries to the appropriate model tier or managing safety filters in real-time.
Several teams at Google have already integrated this technology to optimize their products. For instance, Gemini Notebook uses the API to instantly route incoming queries to the most appropriate model, while the Stitch rapid canvas experiment utilizes it to update design flows in response to user input. The API is also being leveraged for high-speed reactions in Google Labs projects and as a safety layer within Google Search, demonstrating its versatility in handling both creative and analytical workloads.
Developers can begin building with the Gemini Decisions API immediately via Google AI Studio. The platform offers a straightforward implementation process, with support for popular programming environments like Python, JavaScript, and REST. Additionally, wide-ranging ecosystem integrations are currently rolling out, ensuring that developers working with frameworks such as LangChain, Vercel, and Pydantic AI can easily incorporate these fast, calibrated multimodal decisions into their own projects.
157 comments • Comments Link
• 决策导向模型,通常称为 decision APIs,发展势头很快。它们以高效、低成本、低延迟的方式处理 classification 、 routing 、 filtering 等任务,而这些任务过去往往需要完整的 generative models 。
• 这些模型之所以效果突出,很大程度上得益于以用户体验为导向的设计:核心优先级是速度与可靠性。这也反映了 ChatGPT 从技术探索走向主流工具的转变。
• 不少开发者把这类系统当作"gates"或"judges"来用:判断是否需要人工介入、内容是否可疑,或用来核验更复杂的 generative models 输出的质量。
• 虽然早期也有类似 BERT-era natural language inference (NLI) 这类方法,但现代 decision models 的不同在于它们与 causal LLM 架构的集成更紧密,并在 calibration 方面做了改进。至于这些概率在多大程度上确实对应 ground truth,人们看法并不一致。
• 由于速度快、成本低,这些模型具备大规模扩展的条件:一个工作流里可能包含数百次细粒度的 inquiry,而花费却只有传统 API calls 的一小部分。
• 像 Google 和 OpenAI 这样的巨头公司已经通过推出各自的版本来回应该领域的独立创新。这些版本往往是由企业对"在熟悉生态系统里足够好"的解决方案的需求所驱动。
• 但人们对 Google 面向开发者产品的长期可靠性仍存疑虑:考虑到其历史上曾多次突然淘汰工具,部分人因此更倾向于选择独立替代方案,或使用更专门的 local models 。
• 初创公司与大型科技公司的竞争通常是一场"谁能把推理时间做得更快"的竞赛——哪怕只有 500ms 的差距,也足以带来关键的功能机会。
• "nool"这一术语(指代 Bernoulli distributions)凸显了人们把关注点转向对概率化输出的处理;不过也有观察者认为,这些 decision models 在概念上仍与传统、训练完善的 classifiers 很接近。
• 最终,这些模型的价值在于能够为更复杂的 agents 提供基础设施:把 agentic loops 里的"decision"环节自动化,同时把高容量自动化任务的 token spend 控制在可接受范围内。
Decision-focused AI models 的出现,意味着开发者在把 language models 集成进生产软件的方式上越来越成熟。通过去掉不必要的 generative overhead,并把重点放在 classification 、 routing 和 verification 上,这些系统为处理高频、低延迟的任务提供了一种可扩展的路径。尽管行业仍在争论它们到底是"真正的新颖事物",还是对旧有 classification 技术的更复杂包装,但它们在实际工作流中的广泛采用表明:效率以及与 automated agents 的集成能力,是其最主要的价值驱动因素。市场竞争仍然激烈:初创公司的速度与更聚焦的专业取向,与主要平台持有者基于生态系统提供的"安全"替代方案之间,界限非常清晰。 • Decision-focused models, often called decision APIs, have gained significant traction by offering a highly efficient, cost-effective, and low-latency way to handle tasks like classification, routing, and filtering that previously required full generative models.
• The effectiveness of these models is largely due to their UX-driven design, which prioritizes speed and reliability, mirroring the shift seen with ChatGPT's transition from technical curiosity to mainstream tool.
• Many developers leverage these systems as "gates" or "judges," utilizing them to determine if a human needs to intervene, if content is suspicious, or to validate the quality of outputs from more complex generative models.
• While older methods like BERT-era natural language inference (NLI) existed, modern decision models differentiate themselves through better integration with causal LLM architectures and improved calibration, though opinions vary on how well these probabilities truly map to ground truth.
• The speed and low cost of these models allow for massive scaling, where a single workflow can involve hundreds of small, nuanced inquiries for a fraction of the cost of traditional API calls.
• Corporate giants like Google and OpenAI have responded to independent innovation in this space by releasing their own versions, often driven by the enterprise need for "good enough" solutions that exist within familiar ecosystems.
• Skepticism remains regarding the long-term reliability of Google's developer-focused products, given their historical propensity to deprecate tools abruptly, leading some to prefer independent alternatives or specialized local models.
• Competitive dynamics between startups and large tech companies often manifest as a race to implement features that allow for faster inference times, where even a 500ms difference can create significant functional opportunities.
• The terminology "nool"—a reference to Bernoulli distributions—highlights the shift in focus toward probabilistic output handling, even as some observers argue that these decision models are conceptually similar to traditional, well-trained classifiers.
• Ultimately, the utility of these models lies in their ability to act as infrastructure for more complex agents, automating the "decision" steps within agentic loops and keeping token spend manageable for high-volume automated tasks.
The emergence of decision-focused AI models marks a practical maturation in how developers integrate language models into production software. By stripping away unnecessary generative overhead and focusing on classification, routing, and verification, these systems offer a scalable way to handle high-frequency, low-latency tasks. While the industry debates whether these are truly novel or merely sophisticated versions of older classification techniques, the widespread adoption in real-world workflows suggests that their efficiency and integration into automated agents are their primary value drivers. Market competition remains intense, with a clear divide between the speed and specialized focus of startups and the ecosystem-driven, "safe" alternatives provided by major platform holders.