Jev is TypeSafe's structured evaluation model. It evaluates one state against typed Noul, Choice, and Score questions and returns calibrated answers with probabilities and confidence.
Jev (typesafe/jev) is a classification model from Typesafe, released 2026-09-17. Pricing via AIgateway: input $0.042/M tokens, output $0/M tokens. Call it via https://api.aigateway.sh/v1/classifications — set model="typesafe/jev".
curl https://api.aigateway.sh/v1/classifications \
-H "Authorization: Bearer $AIGATEWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"typesafe/jev","state":"Help! My payouts have been failing for 3 days.","questions":{"is_urgent":{"type":"noul","instructions":"Does this convey urgency?","criteria":{"true":"Explicitly time-sensitive","false":"No urgency expressed"}}}}'{
"model": "typesafe/jev",
"state": "Help! My payouts have been failing for 3 days.", // a string, or an object
"questions": {
"is_urgent": {
"type": "noul", // noul | choice | score
"instructions": "Does this convey urgency?",
"criteria": { "true": "Explicitly time-sensitive", "false": "No urgency expressed" }
},
"department": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": { "billing": "Payments, refunds", "technical": "Bugs, outages", "sales": "Pricing, upgrades" }
},
"frustration": {
"type": "score",
"instructions": "How frustrated is the customer?",
"criteria": ["Calm", "Frustrated", "Very angry"]
}
}
}{
"answers": {
"is_urgent": { "type": "noul", "noul": 0.95 },
"department": {
"type": "choice",
"choice": "billing",
"confidence": 0.8,
"probabilities": { "billing": 0.87, "technical": 0.13, "sales": 0 }
},
"frustration": {
"type": "score",
"score": 1.04,
"confidence": 0.94,
"legend": { "0": "Calm", "1": "Frustrated", "2": "Very angry" },
"probabilities": { "0": 0, "1": 0.96, "2": 0.04 }
}
},
"model": "typesafe/jev",
"usage": { "input_tokens": 426, "output_tokens": 73, "billing_unit": "token" }
}import os, requests
r = requests.post(
"https://api.aigateway.sh/v1/classifications",
headers={"Authorization": f"Bearer {os.environ['AIGATEWAY_API_KEY']}"},
json={
"model": "typesafe/jev",
"state": "Help! My payouts have been failing for 3 days.",
"questions": {
"is_urgent": {"type": "noul", "instructions": "Does this convey urgency?",
"criteria": {"true": "Explicitly time-sensitive", "false": "No urgency expressed"}},
"department": {"type": "choice", "instructions": "Which team should handle this?",
"criteria": {"billing": "Payments, refunds", "technical": "Bugs, outages"}},
},
},
)
print(r.json()["answers"])