state and a set of questions, and it answers each one with a typed result you can check in code, such as a choice with a probability for every option.
Use it when your application has to make a decision, for example routing, triage, moderation or picking the next step in a workflow, and you would otherwise have to parse free text.
Prerequisites
- A Gloo AI Studio account
- Your API key from the API Credentials page
- Authentication setup - Complete the Authentication Tutorial first
Quick start
URL:https://platform.ai.gloo.com/xds/v2/sys1
Operation: POST
Example response
Question types
Writing questions
- Give each question a key that is unique in
questions. The key appears again inanswers. - Write
instructionsas the question for achoice, and as a statement that is true or false for anoul. - Write
choicecriteria that do not overlap, and add a fallback option such as"other"or"none"so the model does not have to force a choice. - Put everything the model needs in
state. It can be a string, or a JSON object or array of related context. A structured object keeps separate facts separate. - Act on the numbers rather than on the top answer alone. For example, act automatically only above 0.9 and send anything lower to a person. Identical requests can return slightly different probabilities.
Request parameters
The service drops any other top-level field, including
assets, so images are not accepted. You cannot select the model: Gloo AI chooses it, ignores any model you send, and returns the version that answered in the response.
Response fields
Responses are JSON, not a stream.
Data retention
System One requests are always sent with zero data retention required. You do not need to set anything, and no request field can turn it off.Pricing
System One is billed to your organization per token at the provider’s list rate, with no markup. For the current model, TypeSafe Jev 1.13, that is $0.042 per million input tokens with no charge for output tokens. The cost is not returned inusage.
Errors
Use the HTTP status to decide what to do. When Gloo refuses a request, the body looks like this:
See the error reference for general guidance.
Next steps
API Reference: System One Decisions
The full request and response schemas.

