Decisions let you ask questions about some content and get back answers as probabilities and labels, not generated text. You send one input and a list of questions, and Spro returns one answer per question, in the order you asked. This makes it a good fit for moderation, routing, triage and scoring.
Decisions are served at POST /v1/decisions, which is OpenAI-compatible, so you can use the OpenAI SDK with the Spro base URL. For the full request and response fields, see the Decisions API reference.
What you can ask
Every question has a type and instructions that say what to decide. Give each one a name so you can match answers to questions.
| Question type | Use it for | What you get back |
|---|---|---|
| Predicate | A yes or no statement, for example "The customer is making a complaint." | The probability that the statement is true. |
| Choice | Picking one option from a list, for example which team should handle a message. | The chosen option, a confidence, and a probability for every option. |
| Score | Rating on an ordered scale, for example low, medium or high urgency. | A score, a confidence, and a probability for each level. |
One request can mix all three types, and every question is answered against the same input.
Example uses
- Moderation: ask whether a message is abusive, and act when the probability is above your threshold.
- Routing and triage: pick the right team or queue for a support message.
- Scoring: rate urgency, sentiment or quality on a scale you define.
Because you get probabilities, you can set your own threshold for each question instead of trusting a single label.
Models
Only models built for decisions are served, such as gpt-6-luna-decisions and gemini-decision-1. Other models return 400 with the code unsupported_api_surface.
With a Gemini decision model, predicate questions work with the same request body as other models. Choice and score questions need Google's own request format, and you get Google's reply back unchanged.
Limits
- Up to 400 questions per request.
- Choice questions take 2 to 255 unique options.
- Non-streaming only.
- The
modelsfallback list is not supported, because each decision model is served by specific providers. - Sampling parameters such as
temperatureandtop_pare not accepted.
Guardrails
Input guardrails scan the text in input, one text field at a time. Images are not scanned. The instructions in your questions are written by you, so they are not scanned. If an input is blocked, the request returns 403 with the code GUARDRAIL_BLOCKED. Answers are probabilities and labels, so the output pass only logs usage.
See Guardrails for what you can turn on.
API key access
Decisions use the same API keys as the rest of the gateway. Keys with scoped permissions need access to POST /v1/decisions to call it.
