
OpenAI Decisions API now available on AI Gateway
Quick Answer
OpenAI's Decisions API is now accessible via AI Gateway, enabling users to query decision models like GPT-6 Luna Decisions for probabilities and choices.
Quick Take
This API supports multiple question types in a single request and requires specific SDK versions for integration.
Key Points
- Decisions API available at /v1/decisions endpoint on AI Gateway.
- Supports querying multiple decision models, including Jev and Liquid d1.
- Requires OpenAI SDK 7.30.0+ for JavaScript or 3.26.0+ for Python.
- Allows yes/no, choice, and score questions in a single request.
- Responses include probabilities and scores instead of generated text.
📖 Reader Mode
~2 min readOpenAI's Decisions API is now available on AI Gateway through an OpenAI-compatible /v1/decisions endpoint. Use it with GPT-6 Luna Decisions or any other decision model on AI Gateway.
Decision models answer typed questions about a shared input and return probabilities, choices, and scores instead of generated text, which suits routing, triage, guardrails, and rubric scoring. You can ask predicate (yes/no), choice, and score questions against the same input in one request. See seven practical use cases for examples of each question type.
openai/gpt-6-luna-decisions is a separate model ID from openai/gpt-6-luna, which stays a language model for text generation. Requests to the decisions ID go to the Decisions API and are billed at its rates.
Call it with the OpenAI SDK, the AI SDK, the existing HTTP API at /v1/evaluate, or the AI CLI.
Copy link to headingUpgrading
decisions.create requires the OpenAI SDK 7.30.0 or later for JavaScript, or 3.26.0 or later for Python. In the AI SDK, experimental_decide requires ai 7.0.128 or later.
Copy link to headingOpenAI SDK and AI SDK
Point the OpenAI SDK at AI Gateway and call decisions.create as you would against OpenAI. In the AI SDK, questions are keyed by name and the yes/no type is called boolean. Each key in questions becomes a key in answers:
Answers come back as an array in question order, each carrying the question's name. Set model to any decision model, including Jev, Liquid d1, and Laya.
See the OpenAI-compatible Decisions API reference for request limits and error formats, or the decision documentation for the AI SDK. To pick a model, browse all decision models on AI Gateway or read our decision model guides.
— Originally published at vercel.com
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from Vercel AI
See more →
The Agent Stack
The Agent Stack by Vercel AI provides essential building blocks for creating production-grade agents, enabling seamless integration across multiple AI models and secure operations. It features components like AI Gateway for model routing, Workflow SDK for durable execution, and Vercel Connect for scoped access, streamlining agent development and deployment across various platforms.

