Vibeleaderboard
← All Intel
Intel / article

OpenAI Decisions API now available on AI Gateway

Source
vercel.com
Author
Jerilyn Zheng
Date

Context

Vercel's AI Gateway now exposes OpenAI's Decisions , which returns answers to typed questions rather than generated text. Per the changelog, a decision takes one shared input and answers yes/no, multiple-choice or score questions about it, returning probabilities, choices and scores. Vercel says this suits routing, triage, and rubric scoring.

Its example sends the message "I was charged twice. Please refund me." with a choice question asking whether a billing or technical team should handle it, and answers come back as an array keyed by question name. The decisions model, openai/gpt-6-luna-decisions, is a separate ID from the text-generating GPT-6 Luna and is billed at the Decisions API rates. Other decision models, including Jev, Liquid d1 and Laya, can be used with the same call; an earlier Intel item covers Jev arriving on the Gateway.

The changelog documents access and usage, not accuracy or cost, so it does not show how reliable these decisions are.

Key takeaways · AI-distilled
  • On AI Gateway, openai/gpt-6-luna-decisions is a separate model ID from openai/gpt-6-luna: requests to the decisions ID go to the Decisions API and are billed at its rates, while the plain ID stays a text-generation model.
  • decisions.create needs OpenAI SDK 7.30.0 or later for JavaScript or 3.26.0 or later for Python. In the AI SDK, experimental_decide needs ai 7.0.128 or later, questions are keyed by name, and the yes/no type is called boolean.
  • Answers come back as an array in question order, each carrying its question's name, and the same request shape works with other decision models on the gateway, including Jev, Liquid d1 and Laya.
Terms in this piece · Glossary
  • API — Application programming interface: the agreed set of operations, inputs and outputs through which one piece of software uses another.
  • Model — A computational system that uses learned patterns to produce an output from information supplied to it.
  • guardrails — The checks around a model that block bad inputs and outputs — filters, validators, and permission rules the model itself can't override.
More from Jerilyn Zheng
Recommended reads
Comments

Checking sign-in…

Loading comments…