Availability
Decision models are available from Tyk AI Studio 2.3.0.
Overview
A decision model does not generate text. It answers questions about a piece of evidence. The evidence can be a customer message, a document, or a transcript. For each question, the model returns one of these answers:- A predicate question gets a probability for yes.
- A choice question gets one option from a list that you supply.
- A score question gets a score on a scale of levels that you supply.
Supported Providers
An OpenAI LLM provider serves chat models and decision models with one API key. To use a decision model, add it to the allowed models of the LLM provider.
A System One LLM provider serves decision models only. It cannot back chat rooms, agents, Model Routers, or Semantic Routers.
Configure a System One LLM Provider
- Go to Model management > Model providers and add a model provider. For more information, refer to LLM Management.
- In Vendor, select System One (decision models).
- In API Endpoint, keep the default
https://api.typesafe.aito use the hosted Jev API. For a self-hosted model, enter the URL of your server, for examplehttp://llama:8080. - In API Key, enter your TypeSafe API key, or a secret reference such as
$SECRET/typesafe-key. The hosted API requires a key. A self-hosted server can run without a key. - In Default Model or Allowed Models, add the models that Apps can use, for example
jev-latest. - Save the LLM provider.
- Give Apps access to the LLM provider, the same as for other LLM providers.

Call a Decision Model
Apps send decision requests in the OpenAI Decisions schema toPOST /v1/decisions on the Main Ingress. The model string has the form {llmSlug}/{model}.
The gateway uses the same schema for all providers. For a System One provider, the gateway translates the request to the System One format. It then translates the answers back, in the order of your questions.
POST /ai/{llmSlug}/v1/decisions with the model name only. Clients that use the native format of a provider can use the vendor-native endpoint: /llm/rest/{llmSlug}/v1/decisions for OpenAI, or /llm/rest/{llmSlug}/v1/systemone for System One. The gateway governs and records these calls in the same way.
GET /v1/models lists the models that the App can use. Each entry has a capabilities field. Decision-capable routes include decisions.
Request Rules
The gateway rejects these requests with400:
- A request with
"stream": true. Decision models do not stream. - A request with image input to a System One provider. System One providers accept text only.
- A score question with fewer than 2 levels.
- For a System One provider, a choice question with more than 255 options.
- For a System One provider, a score question with more than 10 levels.
- A request to a Model Router or a Semantic Router. Routers do not route decision calls.
422) becomes 400 with the type invalid_request_error. A System One “overloaded” response (529) becomes 503, which clients can retry.
Governance
Filters and Guardrails
Filters and guardrails see a decision request as a list of messages:- One system message for each question. The message holds the instructions of the question.
- One final user message that holds the evidence.
input.context.request_kind is "decision" for decision requests. For other requests, the value is empty.
Response filters see the answers as text, with one answer on each line. A response filter can block the answers in the same way as other responses.
Plugins
Gateway plugins and AI Studio plugins receive the request kind in their context. For decision calls, the request kind isdecision. For more information, refer to Request Kind (Decision Models) in the Plugin SDK reference.
Budgets
Decision spend counts against App, LLM, and team budgets, the same as other spend. When a budget is spent, the gateway refuses decision calls with403.
Analytics
AI Studio records each decision call with its token usage and cost. It also records the number of questions and the number of questions that the model did not answer (refusals). When there is decision traffic, the Overview page of the AI Studio admin UI shows a Decision Models panel for the selected period:- Tiles show the decision calls, the questions answered, the refusal rate, and the cost.
- A table shows the calls, questions, refusals, input tokens, cost, and cost per 1,000 calls for each model.
aistudio_decision_questions_total metric counts questions by vendor, model, and outcome (answered or refused). For more information, refer to Observability.
To get the same data from the API, use GET /api/v1/analytics/decisions. For the parameters and the response, refer to Get decision-model usage in the AI Studio API reference.
Failover
The failover waterfall of an LLM provider applies to decision calls. The gateway skips a fallback in these cases:- The provider of the fallback serves no decision models.
- The fallback cannot take the request, for example image input to a System One model.

Pricing
Providers bill decision models by input tokens. Output is usually free. Add a model price for each decision model:- Set Cost per Million Input Tokens to the input price of the provider.
- Set Cost per Million Output Tokens to
0.

jev-latest can come back as jev-1.13.0.
AI Studio first uses the price of the model that the provider reports. If that model has no price, AI Studio uses the price of the model in the request. Thus, you can price the alias that you configure or the resolved version.