SumoRouter
SumoRouter Customer API

Decisions

Server

Decision models (e.g. jev) that answer typed questions with probabilities instead of text.


Ask a decision model (OpenAI Decisions format)

POST
https://ai.brandkamu.id
/v1/decisions

Ask a decision model (e.g. jev-1.13.0) typed questions about an input and get probabilities back: yes/no (predicate), a pick from a list (choice) or a level (score). Accepts every model except embedding models. input and a questions array are required; streaming is not supported. A question the model won't answer comes back as {"type": "refusal"}. The response gets usage.cost (USD) added.

Ask a decision model (OpenAI Decisions format) › Request Body

model
​string · required
​required

The text to judge, or messages with input_text parts.

​object[] · required

Questions of type predicate, choice (with choices) or score (with levels). Answers come back in the same order.

Ask a decision model (OpenAI Decisions format) › Responses

Answers in the same order as the questions.

model
​string
​object[]
​object

Ask a decision model (TypeSafe System One format)

POST
https://ai.brandkamu.id
/v1/systemone

The same decision models in TypeSafe's System One format: a state and an object of named questions (noul, choice, score). Accepts every model except embedding models; no streaming. The response's usage.cost is SumoRouter's price in USD.

Ask a decision model (TypeSafe System One format) › Request Body

model
​string · required
state
​required

The text or state to judge.

​object · required

Named questions, each {"type": "noul" | "choice" | "score", "instructions": …}.

Ask a decision model (TypeSafe System One format) › Responses

Answers keyed by question name.

Provider-compatible JSON object passed through from the upstream (with `model` set to the catalog slug and `usage.cost` added in USD).