Train your own Jev
Jev, from TypeSafe AI, answers questions about your data with a probability for every answer, instead of writing text. It’s fast and cheap, but its weights are closed. Here’s how decision models like it work, and how to train your own for one decision in your app, on an open model, with probabilities you’ve checked on your own examples.
The short answer
- Jev is a hosted decision model. TypeSafe AI launched it on September 15, 2026. It answers typed questions with probabilities, for $0.042 per million input tokens, with output free.
- It isn’t open source. Its weights, architecture and training data aren’t public. Laya, Tev1 and Nimble are open models built for the same job.
- You can train one for your own decision. Label a few hundred examples, fine-tune a small open model to answer with one letter, read its probabilities from the logprobs, calibrate them on held-out examples, and act only above a threshold.
- Don’t train on Jev’s answers. Use your own labels, or a model whose terms allow it.
What Jev is
TypeSafe calls Jev the first System One model, after the fast, intuitive kind of thinking. You send it state (text, JSON or an image) and questions about it, and it returns structured answers, never prose. It takes four kinds of question:
| Question | Asks | Returns |
|---|---|---|
| Choice | Which one of these options? | choice, probabilities, confidence |
| Score | Where does it fall on this rubric? | score, probabilities, confidence |
| Noul | Is this statement true? | noul, the probability of yes, from 0 to 1 |
| Box | Where is it in this image? | box (top, bottom, left, right) and confidence |
It reads up to 64,000 tokens a request and 32,000 a question, and you can call it through TypeSafe’s API, Vercel’s AI Gateway, Cloudflare and OpenRouter: how to use Jev walks through the API. TypeSafe describes it as a transformer that doesn’t generate text, and hasn’t published its architecture. The only training method it has described is reinforcement learning for calibrated decisions (RLCD). Its accuracy and speed figures are its own, and haven’t been independently reproduced.
Is Jev open source?
No. You can’t download Jev, run it on your own servers or see how it was trained, and TypeSafe’s documentation describes no way to train it on your own examples. Several open models now do the same job:
- Laya, from Convai Innovations: Apache 2.0, built on ModernBERT, with a 421M English checkpoint and a 322M multilingual one, small enough to run on your own machine.
- Tev1, from Together AI: Qwen3.5 4B fine-tuned to answer with one option letter, with its training recipe public.
- Nimble, from Bespoke Labs: Qwen3.5 9B with a LoRA, with the model, recipe, evaluation and data pipeline public.
- Kev: Qwen3.5 in three sizes, an attempt to rebuild Jev’s design.
Jev vs Laya compares them, along with OpenAI’s Decisions API.
How a decision model works
A decision model answers one question from a fixed list, and says how sure it is. The pieces:
- One question, a few answers. Which queue gets this ticket, approve it or send it to a person, which tool to call next. Keep it to 20 answers or fewer: servers return the top 20 logprobs at most.
- One token per answer. Each answer gets a letter, and the model is trained to reply with just the letter. It answers in one step, with no reasoning first.
- Probabilities from logprobs. The model’s logprob for each letter becomes the probability of each answer.
- Calibration. Fine-tuned models are often too sure of themselves. Temperature scaling divides the logprobs by one number, fitted on held-out examples, so that answers given at 0.9 are right about 9 times in 10.
- A threshold. On the same examples, find the lowest probability at which the answers were wrong at most, say, 5% of the time. Your app acts on answers at or above it, and sends the rest to a person or a larger model.
Jev and Laya are built differently inside, but a small generative model trained to answer with one letter works the same way from the outside. Together’s Tev1 answers with one option letter, and so do Sous’s decision models.
Train your own, step by step
1. Write the question and its answers
Ask it the way you’d ask a person, and give each answer a letter. The model trains on this prompt and reads the same one in production:
Which queue should handle this support ticket?
A. billing
B. bug
C. feature_request
D. account
E. other
Answer with the letter of one option.2. Label a few hundred real examples
Take them from your app, and label each with the answer you want, from your team or from a model whose terms allow it. Hold back about a fifth to test and calibrate on.
3. Fine-tune a small open model to reply with the letter
Each training example is the prompt, the input and the right letter. A LoRA on a 2B to 9B model is enough for most decisions: see which models to start from and LoRA vs QLoRA vs full fine-tuning.
4. Read its probabilities from the logprobs
Ask for one token and the top 20 logprobs, from vLLM or any OpenAI-compatible server:
import math
LETTERS = "ABCDE"
reply = client.chat.completions.create(
model="your-decision-model",
messages=[{"role": "system", "content": PROMPT}, {"role": "user", "content": ticket}],
max_tokens=1, temperature=0, logprobs=True, top_logprobs=20,
)
probs = {}
for t in reply.choices[0].logprobs.content[0].top_logprobs:
letter = t.token.strip()
if letter in LETTERS: # " B" and "B" are the same answer
probs[letter] = probs.get(letter, 0.0) + math.exp(t.logprob)
logprobs = {letter: math.log(p) for letter, p in probs.items()}5. Calibrate on the held-out examples
Fit the one temperature that makes the right answers most likely. This is temperature scaling:
def probabilities(logprobs, temperature=1.0):
"""Each answer's probability: its letter's logprob over the temperature, renormalized."""
scaled = {letter: lp / temperature for letter, lp in logprobs.items()}
top = max(scaled.values())
weights = {letter: math.exp(v - top) for letter, v in scaled.items()}
total = sum(weights.values())
return {letter: w / total for letter, w in weights.items()}
# The temperature that makes the right letters most likely on held-out examples,
# a list of (logprobs, right letter).
def fit_temperature(held_out):
def loss(t):
return -sum(math.log(probabilities(lps, t).get(right, 1e-12)) for lps, right in held_out)
return min((t / 100 for t in range(5, 2001)), key=loss)6. Set a threshold from an error budget
Score the calibrated answers on the held-out examples, and find the lowest probability that keeps the answers at or above it within your budget:
# The lowest probability at which the answers given it or more were wrong at most
# budget of the time. answers: a list of (probability, whether it was right).
def threshold(answers, budget=0.05):
best, wrong = None, 0
for n, (p, right) in enumerate(sorted(answers, key=lambda a: -a[0]), 1):
wrong += not right
if wrong <= budget * n:
best = p
return best7. Route by the threshold
At or above it, your app acts on the answer. Below it, the call goes to a person, or to the large model you used before. Set the threshold again whenever you retrain: a new model has new probabilities.
Or let Sous train it
Sous does each of those steps. Choose A decision model, write the question and its answers, and upload a few hundred examples, with their answers or without: a frontier model labels the ones without. Sous trains decision models beside models that reason first, calibrates each decision model on the examples it held out, sets its threshold at 5% wrong, and recommends the model that matches best.
It fits the temperature on half the held-out examples and measures it on the other half, both ways round, so the calibration error it shows isn’t flattered by the fit.
Your app calls the model through Sous’s OpenAI-compatible API. The reply carries the answer as JSON, like any model’s, and under sous.decision the probability of each answer and of every option:
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.sousml.com/v1", api_key=os.environ["SOUS_API_KEY"])
reply = client.chat.completions.create(
model="<your model's id>", messages=[{"role": "user", "content": ticket}],
)
decision = reply.to_dict()["sous"]["decision"]
# For example:
# {"fields": {"queue": {"answer": "billing", "probability": 0.98, "options": {"billing": 0.98, ...}}},
# "confidence": 0.98, "temperature": 1.31}Decision models run on the same open models as other Sous models, from $0.05 per million input tokens and $0.40 per million output tokens, and an answer is a few tokens. You can download a trained model’s LoRA adapter, with the prompt and calibration it needs, and run it anywhere.
The decision model example on GitHub trains one on 336 support tickets, scores it on 84 more it never saw, and compares it with Jev and Laya on the same tickets.
In one run on those tickets, Sous held out 67 of the 336 and recommended a Qwen3.5 4B decision model. It gave the labeled queue on 65 of the 67, or 97%, against 92.5% for gpt-6.1-terra asked the same question. Its probabilities were off by 2.5% on average, and at 5% wrong its threshold was 0.90, which every held-out ticket met. It costs $0.032 per 1,000 calls, against $0.43 for gpt-6.1-terra.
When Jev is the better choice
- Many different questions, no examples. A general model like Jev or Laya answers a new question from its wording alone, today.
- Where something is in an image. Jev’s Box question returns a bounding box.
- Low volume. At a few thousand calls a month, a hosted model costs little, and there’s nothing to train.
Train your own when one decision runs often, you have labeled examples or can get them, and you need to know how often the model is wrong where your app acts on its own. SLM vs LLM covers when a small model is enough.
Questions people ask
What is Jev?
Jev is TypeSafe AI’s decision model, launched on September 15, 2026. It takes some state, such as text, JSON or an image, and typed questions about it, and returns each answer with probabilities instead of writing text. TypeSafe calls it the first System One model, after the fast, intuitive kind of thinking.
Is Jev open source?
No. Jev’s weights, architecture, training data and training recipe aren’t public, so you can’t download it or run it yourself. Open models built for the same job include Laya, Together AI’s Tev1 and Bespoke Labs’ Nimble.
Is Jev an LLM?
Not in the usual sense. TypeSafe describes it as a transformer that doesn’t generate text: it only returns typed answers with probabilities. It hasn’t published the architecture.
How does Jev work?
You send state and questions of four types: Choice, Score, Noul (a yes or no) and Box. Jev answers them all in one call, each with probabilities. The one training method TypeSafe has described is reinforcement learning for calibrated decisions, RLCD.
What is RLCD?
Reinforcement learning for calibrated decisions: the method TypeSafe says it trained Jev with, aimed at probabilities that match how often its answers are right. TypeSafe hasn’t published the details.
Can I fine-tune Jev on my own data?
TypeSafe’s documentation describes no way to train Jev on your own examples. For a decision model trained on your job, fine-tune an open model, as this guide shows, or let Sous train one.
Can I train a model on Jev’s answers?
Read TypeSafe’s terms first. Safeguard’s model listing marks Jev as not distillable. Labels from your own team, or from a model whose terms allow it, avoid the question.
How many examples does a decision model need?
A few hundred real examples is enough to start, with about a fifth held back to test the model and calibrate its probabilities. Rare answers need enough examples of their own.
What is temperature scaling?
A way to calibrate a model’s probabilities after training: divide its logprobs by one number, fitted on held-out examples, so that answers given at 0.9 are right about 9 times in 10. It changes how sure the model says it is, not which answer it picks.
Sources
- TypeSafe AI, documentation
- Sanity, Jev (TypeSafe AI model) definition
- Kanerika, Jev AI model
- Cloudflare, Jev model page
- Vercel, Jev on AI Gateway
- OpenRouter, TypeSafe SDK
- Mezha, TypeSafe AI unveils Jev, a fast AI model built for software automation
- DeepLearning.AI, The Batch: Models built to do one thing well
- Safeguard, TypeSafe AI: Jev
- Convai Innovations, Laya model card
- Together AI, How to train your own Jev for $17
- DataCamp, Top 7 open-source TypeSafe Jev alternatives
- Guo, Pleiss, Sun and Weinberger, On calibration of modern neural networks (2017)
- Sous examples, decision model
Sous isn’t affiliated with TypeSafe AI, or with the makers of the other models here.