OpenAI Decisions API now available on AI Gateway
Key point
The API supports decision models like GPT-6 Luna Decisions and requires OpenAI SDK 7.30.0+ (JS) or 3.26.0+ (Python).
Details
OpenAI's Decisions API is now accessible on AI Gateway via an OpenAI-compatible /v1/decisions endpoint. This integration allows users to leverage decision models such as GPT-6 Luna Decisions alongside other models hosted on the platform.
How Decision Models Work
Unlike standard language models that generate text, decision models answer typed questions about a shared input, returning probabilities, choices, and scores. This structure is designed for tasks like routing, triage, guardrails, and rubric scoring. Users can combine predicate (yes/no), choice, and score questions in a single request against the same input.
Model Distinction and Billing
The model ID openai/gpt-6-luna-decisions is distinct from openai/gpt-6-luna, which remains a language model for text generation. Requests to the decisions ID are routed to the Decisions API and billed at its specific rates. The endpoint supports various decision models, including Jev, Liquid d1, and Laya.
Integration and Requirements
Developers can interact with the API using the OpenAI SDK, AI SDK, existing HTTP API at /v1/evaluate, or the AI CLI.
- OpenAI SDK: Requires version 7.30.0 or later for JavaScript, or 3.26.0 or later for Python to use
decisions.create. - AI SDK: Requires
aiversion 7.0.128 or later forexperimental_decide. Questions are keyed by name, with the yes/no type labeled asboolean.
Responses return answers as an array in question order, with each entry carrying the question's name.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.