Jev
Model Overview
Jev is TypeSafe's first "System One" model: a structured decision model that returns typed answers (yes/no, choice, score) with calibrated probabilities instead of generated text. It is built for routing, classification, triage and other in-app decision points where a fast, predictable verdict matters more than prose — typically answering in well under a second. Text input only, 32K context.
API Schema
post
Body
modelstring · enumRequiredPossible values:
stateany ofRequiredExample:
The content to evaluate: a string, a JSON object, or an array of texts. Text only.
Help! My payments have been failing for 3 days.stringOptional
or
Responses
200
Successful response.
application/json
modelstringRequiredExample:
Resolved model version that answered.
typesafe/jevpost/v1/decisions
curl -L \
--request POST \
--url 'https://api.aimlapi.com/v1/decisions' \
--header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "typesafe/jev",
"state": "Help! My payments have been failing for 3 days and nobody answers support.",
"questions": {
"is_urgent": {
"type": "noul",
"instructions": "Does this convey urgency?"
},
"department": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {
"billing": "Payments, invoicing, refunds",
"technical": "Bugs, outages, integrations",
"sales": "Pricing, upgrades, new accounts"
}
},
"frustration": {
"type": "score",
"instructions": "How frustrated is the customer?",
"criteria": [
"Calm",
"Frustrated",
"Very angry"
]
}
}
}'200
Successful response.
{
"model": "typesafe/jev",
"answers": {
"ANY_ADDITIONAL_PROPERTY": {
"type": "noul",
"noul": 1
}
},
"usage": {
"input_tokens": 1,
"output_tokens": 1
}
}Code Example
Last updated
Was this helpful?