← Back to glossary
+Suggest a term
Concept·Agents & Automation·Added 8 days ago

Decisions API

Also known as: OpenAI Decisions API, decision endpoint, bounded classification API

An API pattern, popularized by OpenAI, that asks a model a question with a fixed set of allowed answers and gets back a structured choice, probability, or score. Faster and cheaper than a full chat call for routing and classification steps inside an agent loop.

Most agent control-flow today is a workaround: you ask a chat model a yes/no question, it replies with a paragraph, and you parse the answer out of prose. That breaks in edge cases and costs more tokens than necessary. The Decisions API pattern replaces that with a dedicated endpoint: you send context plus a question and a closed list of answers, and the model returns exactly one of those answers, a probability, or a rubric score. No free text, no parsing.

OpenAI announced its Decisions API at DevDay 2026, powered by GPT-6 Luna. It supports three output shapes: predicate (a 0 to 1 probability for a condition), choice (picks from your fixed list), and score (a weighted average across ordered levels). It also accepts image inputs alongside text, so the same call can classify a photo or route a conversation transcript. OpenAI priced input tokens at $0.10 per million with no output-token charge, making it noticeably cheaper than a full Responses API call for high-volume routing.

For builders, the practical use case is replacing the string-parsing hacks that sit between an event trigger and the next agent action. Think: 'is this support ticket urgent?', 'which workflow should run next?', or 'does this screenshot show an error state?'. The Decisions API is not about replacing reasoning; it is about making the small, frequent classification decisions in an agent loop fast, cheap, and structurally reliable. Competing tools like Jev (from TypeSafe) address the same gap, suggesting this is becoming a recognized primitive in agentic architecture.

This definition is AI-generated and refreshed weekly. It may contain inaccuracies. Use your own judgment, especially for production decisions.
Related terms
Function CallingStructured OutputTool calling patternAgent frameworkModel router