The SPRO Decisions API is now generally available. Send a single input with a set of questions to POST /v1/decisions, and get back structured results: probabilities, choices and scores, not free-form text. The endpoint is fully compatible with the OpenAI SDK, and it supports both OpenAI's gpt-6-luna and Google's gemini-decision-1 through one integration.
What's new
- A new endpoint:
POST https://spro.hridaai.com/v1/decisions, OpenAI-compatible. - Two decision models:
gpt-6-luna-decisions(OpenAI) andgemini-decision-1(Google). - Gemini Decision 1 through the OpenAI SDK. Google's OpenAI-compatible layer doesn't list a decisions endpoint. On SPRO, you don't need Google's SDK.
- Yes/no questions work the same on both models. SPRO converts them for Google and converts the answers back to the standard shape.
- Guardrails, scoped API keys and usage tracking on every call, like the rest of the gateway.
- No markup on model usage.
What is a Decisions API?
Think of an essay question versus a multiple-choice question.
A normal AI model answers the essay question: you ask, it writes. A Decisions API answers the multiple-choice version. You send one input and a list of questions with fixed answers, and it returns one answer per question, as a value your code can use.
Say a customer writes:
"My order arrived broken and nobody is answering my emails."
You ask three questions:
- Is this a complaint? (yes/no)
- Which team should handle it? (billing, shipping, general)
- How urgent is it? (low, medium, high)
You get back "97% yes", "shipping", and an urgency score, each with a confidence. No paragraph to read and nothing to parse.

Figure 1. A chat model writes text. A Decisions API returns one typed answer per question.
What it's good for
- Routing and triage: send each ticket or email to the right team.
- Moderation and policy checks: is this message safe?
- Agent steps: should the agent call a tool, or answer directly?
- Scoring: rate a response, a lead or a bug report against a rubric.
- Auto-reply safety: is it safe to reply automatically, or should a human look first?
The three question types
| Type | You ask | You get back |
|---|---|---|
predicate (yes/no) | "Is this statement true?" | A probability that it's true |
choice (pick one) | "Which of these fits best?" | The chosen value, a confidence, and a probability for each option |
score (rate it) | "Rate this on a scale" | A score, a confidence, and a probability for each level |
One request can mix all three, and you can send up to 400 questions about the same input.
Why it was hard to use both models
OpenAI and Google both launched decision models within weeks of each other. They work alike in spirit, but not in code:
| OpenAI Decisions API | Gemini Decisions API | |
|---|---|---|
| Model | gpt-6-luna | gemini-decision-1 |
| Status | Generally available | v1beta |
| Questions per request | Up to 400 | Up to 1,000 |
| Inputs | Text, images, JSON, tool-call history | Text, images, audio, video, PDF |
| Prompt caching | Yes | Not mentioned at launch |
| Price per 1M input tokens | $0.10 | $0.10 |
| How you call it | POST /v1/decisions | Google's native SDK |
From the OpenAI Decisions API guide and Google's launch post, November 2026. Check the vendor docs before you build.
If your app is built on the OpenAI SDK, using both meant two SDKs, two keys, two bills, two request formats and adapter code to connect them.

Figure 2. Before: two integrations. After: one SPRO endpoint, one SDK and one key.
With SPRO, you use one SDK, one key and one endpoint, and you switch models by changing the model name.
Try it: your first request

Figure 3. How a decisions request moves through SPRO.
Your app sends one request to SPRO. SPRO checks your key, runs input guardrails, sends the call to the model you chose, and returns one answer per question, in the order you asked.
With curl
curl https://spro.hridaai.com/v1/decisions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer spro-xxxxxxxxxxxxxxxx" \
-d '{
"model": "gpt-6-luna-decisions",
"input": "My order arrived broken and nobody is answering my emails.",
"questions": [
{
"type": "predicate",
"name": "is_complaint",
"instructions": "The customer is making a complaint."
},
{
"type": "choice",
"name": "team",
"instructions": "Which team should handle this message?",
"choices": [
{ "value": "billing" },
{ "value": "shipping", "description": "Damaged or late orders" },
{ "value": "general" }
]
},
{
"type": "score",
"name": "urgency",
"instructions": "How urgent is this message?",
"levels": [
{ "label": "low" },
{ "label": "medium" },
{ "label": "high" }
]
}
]
}'With the OpenAI SDK
Point the SDK at SPRO and send the same body:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://spro.hridaai.com/v1",
api_key=os.environ["SPRO_API_KEY"], # your spro- key
)
result = client.post(
"/decisions",
body={
"model": "gpt-6-luna-decisions",
"input": "My order arrived broken and nobody is answering my emails.",
"questions": [
{
"type": "predicate",
"name": "is_complaint",
"instructions": "The customer is making a complaint.",
},
{
"type": "choice",
"name": "team",
"instructions": "Which team should handle this message?",
"choices": [
{"value": "billing"},
{"value": "shipping", "description": "Damaged or late orders"},
{"value": "general"},
],
},
],
},
cast_to=object,
)
print(result)What comes back
One answer per question, in the order you asked:
{
"answers": [
{ "type": "predicate", "name": "is_complaint", "probability": 0.97 },
{
"type": "choice",
"name": "team",
"choice": "shipping",
"confidence": 0.91,
"probabilities": [
{ "value": "shipping", "probability": 0.91 },
{ "value": "general", "probability": 0.07 },
{ "value": "billing", "probability": 0.02 }
]
}
],
"model": "gpt-6-luna-decisions",
"usage": {
"input_tokens": 142,
"output_tokens": 18,
"total_tokens": 160
}
}A score answer has a score, a confidence, and a probability for each level. If a question is refused, that one answer has "type": "refusal" and the others are still answered.
Tip: give every question a name, so you can match each answer to its question.
Using Gemini Decision 1
To use Google's model, change the model field to gemini-decision-1. What else changes depends on the question type:
| Question type | What you do | What you get back |
|---|---|---|
predicate (yes/no) | Send the same body as above. SPRO converts it for Google. | The standard answer shape. SPRO converts it back. |
choice and score | Send Google's native request format. | Google's response, unchanged. |
A yes/no request to Gemini Decision 1 looks like this:
result = client.post(
"/decisions",
body={
"model": "gemini-decision-1",
"input": "I was charged twice for my order.",
"questions": [
{
"type": "predicate",
"name": "billing_issue",
"instructions": "The customer has a billing or payment problem.",
}
],
},
cast_to=object,
)For choice and score questions with Gemini, follow Google's Gemini Decisions API docs for the question format. You still send it through the OpenAI SDK, to SPRO.
Naming rule: in converted Gemini requests, question names must be 1 to 64 characters (letters, digits, _ or -), and each name can be used only once. Otherwise you get a 400 error.
Which model should you choose?
gemini-decision-1: audio, video or PDF inputs, or very large batches of questions on Google's native API.gpt-6-luna-decisions: JSON and tool-call history as input, and prompt caching.- Not sure? Send the same yes/no questions to both and compare the results on your own data.
Built for production
- Input guardrails: SPRO scans each text field in your
input. If something is blocked, you get a403with the codeGUARDRAIL_BLOCKED. - Scoped keys: give a service or team access to
POST /v1/decisionsonly. - Same keys as the rest of the gateway: nothing new to set up.
- Prompt caching and abuse controls: send an optional
prompt_cache_keyto group requests, and an optionalsafety_identifierfor abuse detection (use a stable ID, not personal details).
Use confidence to stay safe
Decision models tell you how sure they are, so use it:
- Send the request.
- If the confidence is above your threshold, act automatically.
- If it isn't, send the case to a human or a stronger model.
Because one request carries many questions, you can set a different threshold for each. For example, route a ticket automatically at 90% confidence, but require 99% before sending an auto-reply.
A confidence score isn't a guarantee. Changes in your data, or inputs written to trick the model, can still cause wrong answers. Keep a human in the loop for anything high-stakes.
Limits
- Models: decision models only, such as
gpt-6-luna-decisionsandgemini-decision-1. Any other model returns400withunsupported_api_surface. - Up to 400 questions per request.
- Choice questions take 2 to 255 unique options.
- Non-streaming only.
- The
modelsfallback list isn't supported. - Sampling parameters such as
temperatureandtop_pare removed before the call. - Guardrails scan text only. Images and your question
instructionsaren't scanned.
Pricing
- Models: OpenAI and Google list their decision models at $0.10 per 1M input tokens, with no charge for output tokens. SPRO bills model usage at the provider's rate, with $0 markup.
- Plans: Free ($0, free models only), Starter ($19/month), Growth ($49/month) and Enterprise. Starter and above include all models.
🚀 Explore SPRO
Ready to get typed answers from Gemini and OpenAI decision models through one endpoint?
One OpenAI-compatible endpoint. Two decision models. One key, with guardrails on every call.
Get started → · API reference · Feature docs · Pricing
🌐 Learn More
- 🛡️ SPRO Product: https://spro.hridaai.com/
- 📚 Technical Blogs and Research: https://www.hridaai.com/blogs
- 📅 Book a demo: https://www.hridaai.com/book-demo
Ask the question. Get the answer. Skip the parsing.
Sources
- SPRO Decisions API reference
- SPRO Decisions feature docs
- OpenAI Decisions API guide
- Google: Gemini Decisions API announcement
- Google: OpenAI compatibility for the Gemini API