Jev vs LLMs vs fine-tuned classifiers: three ways to put a decision in your code

Fast, smart, easy, generalized, cheap. For years you could pick two or three: a general LLM is smart but slow and pricey, a fine-tuned classifier is fast but needs labels, training and upkeep. Here is how Jev, TypeSafe's System One model, compares with both, with real numbers from TypeSafe's docs, and where each one still wins.

A scorecard with five rows, fast, smart, easy, generalized and cheap, and three columns. A general-purpose LLM is smart, easy and generalized, but slow, seconds per call, and not cheap. A fine-tuned classifier is fast, but only smart on what it was trained on, not easy because it needs labels, a training run and hosting, not generalized because it is one model per task, and cheap per call but costly to build and keep. Jev ticks all five, for decisions only.
Fig. 1 — Five things you want from a decision inside your code. Each option ticks a different set.

Every app that uses AI ends up with small decisions buried inside it. Which team should get this ticket? Is this LLM answer actually supported by the source? Are these two customer records the same person? Should this chat message be hidden?

Nobody reads these answers. Your code does, and it does something with them straight away: a branch, a route, a flag in a database. So what you want from the thing making the decision is a short list:

What you want
Fast Under about 100 ms, so it fits anywhere in the loop
Smart Reads the context and gets the obvious answer right
Easy No labels, no training run, no model to maintain
Generalized One model for routing, judging, matching and UI decisions
Cheap Cheap enough to ask on every turn, every message, every row

That list is how TypeSafe pitches Jev, its System One model. If you haven’t met Jev yet, start with What is Jev AI?. This article does something different: it puts Jev next to the two tools teams already use for these decisions, a general-purpose LLM and a fine-tuned classifier, and checks each claim against TypeSafe’s own documentation and benchmarks.

The three contenders

Let’s keep one running example: route a support ticket to billing, technical or sales, and tell the code how sure you are.

1. A general-purpose LLM, asked for JSON

You take a model like Claude Haiku or GPT mini, write a prompt with the three teams, and ask for JSON back.

import json
from openai import OpenAI

client = OpenAI()
reply = client.chat.completions.create(
    model="gpt-5.4-mini",
    response_format={"type": "json_object"},
    messages=[{
        "role": "user",
        "content": "Route this ticket to billing, technical or sales. "
                   'Reply as {"team": ..., "confidence": 0-1}.\n\n' + ticket,
    }],
)
answer = json.loads(reply.choices[0].message.content)   # hope it parses
team, confidence = answer["team"], answer["confidence"]  # hope "team" is one of the three

What’s good: it’s smart, it understands almost anything you throw at it, and it’s easy. You can change the teams by editing a sentence.

What hurts: the model writes its answer, one token at a time, and you pay for every token it writes. And that confidence is just another word it chose to write. Nobody measured it.

2. A fine-tuned classifier

The classic machine learning answer. You collect a few hundred or thousand tickets, label each one with the right team, and fine-tune a small model (often a BERT-style encoder, sometimes a small LLM with LoRA) to predict the label.

from datasets import load_dataset
from transformers import (AutoTokenizer, AutoModelForSequenceClassification,
                          Trainer, TrainingArguments)

# Step zero, before any code: someone labels tickets by hand.
data = load_dataset("csv", data_files="labelled_tickets.csv")   # text, label (0, 1, 2)
tok = AutoTokenizer.from_pretrained("distilbert-base-uncased")
data = data.map(lambda b: tok(b["text"], truncation=True), batched=True)

model = AutoModelForSequenceClassification.from_pretrained(
    "distilbert-base-uncased", num_labels=3)
Trainer(model=model, args=TrainingArguments("out", num_train_epochs=3),
        train_dataset=data["train"], processing_class=tok).train()
# ...then evaluate, package, host it behind an API, and monitor it.

What’s good: once it’s trained and hosted, it’s very fast (milliseconds) and cheap per call. It returns a probability for every class, and it never invents a fourth team.

What hurts: everything before that first call. You need labelled data, a training run, a server to host it, and someone to watch it. It only knows what it was taught: a ticket unlike anything in the training set can confuse it, and it can overfit to quirks in your labels. Want a fourth team? Label more data and retrain. Want to also score urgency? That’s usually a second model. And its probabilities are often overconfident unless you add a separate calibration step.

3. Jev, a System One model

Jev reads your input like an LLM does, but it never writes text. You give it the state and typed questions, and it returns typed answers with probabilities.

from typesafe_sdk import Choice, Noul, TypeSafeClient

with TypeSafeClient(model="jev-latest") as client:
    result = client.system_one(
        state=ticket,
        questions={
            "team": Choice(
                instructions="Which group should own this request",
                criteria={
                    "billing": "Invoices or plan changes",
                    "technical": "Software faults or integration errors",
                    "sales": "Purchasing or pricing questions",
                },
            ),
            "urgent": Noul(instructions="The text signals time pressure"),
        },
    )

team = result.choices["team"]
if team.confidence > 0.8:
    route(ticket, team.choice)          # act on the confident ones
else:
    send_to_human(ticket)               # escalate the unsure ones

No labels. No training run. No parsing. Two questions in one request, and the answers drop straight into an if. Now let’s check the five claims one by one.

Fast: about 100 ms, with many questions at once

The best evidence is in TypeSafe’s own consistency cookbook, which ran the same 8-question moderation rubric through Jev and four LLMs, 15 times each. Average time and cost per call:

Model Time per call Cost per call vs Jev (time) vs Jev (cost)
Jev (jev-1.13.0) 114 ms $0.000046 1x 1x
GPT-5.4 mini (single pick) 826 ms $0.000936 7x 20x
Claude Haiku 4.5 (single pick) 992 ms $0.001527 9x 33x
GPT-5.4 mini (probabilities) 2,293 ms $0.002299 20x 50x
Claude Haiku 4.5 (probabilities) 3,853 ms $0.003498 34x 76x
Claude Opus 4.8 (reasoning) 10,376 ms $0.028375 91x 617x
GPT-5.5 (reasoning) 12,978 ms $0.041255 114x 897x

Source: TypeSafe’s “Self-consistency: choices” cookbook, sampled September 2026. Costs use TypeSafe’s historical price assumptions, not current billing.

A second cookbook, with 14 yes-or-no questions about an insurance claim, came out almost the same: 111 ms for Jev against 1.1 to 1.8 seconds for the small LLMs and 11 to 14 seconds for the reasoning models.

Two details matter here. First, that 114 ms is for eight questions at once. Jev evaluates every question in parallel against the same state, and TypeSafe says adding questions barely changes the response time. Second, the “under 100 ms” claim is about right but not a hard number: in the docs you see about 90 to 120 ms for a shortlist re-rank, 111 to 114 ms for the rubric calls, and 0.24 s for 13 questions over a 54,000-character article.

Compared with a fine-tuned classifier: a small hosted classifier can answer in a few milliseconds, which is faster than Jev. So on raw speed, the classifier still wins. Jev’s point is that it gets close enough to fit in the loop without the classifier’s setup.

Smart: zero-shot, but on gut-check questions

“Smart” here doesn’t mean “can solve a maths olympiad”. It means reads the context and gets the obvious answer right, the way an expert would at a glance. That’s the System One idea, from Kahneman’s fast, intuitive thinking.

Two examples from the docs show what that looks like without any training:

  • Industry classification. One Choice question with 75 options (SEC industry groups) was asked of 60 company filings, with no fine-tuning and no training data. Forced to always pick a group, Jev got 65% right. But when its confidence was 0.9 or higher, it was right 90% of the time; the less sure half dropped back to the broader division and got 70% right. Overall, 80% of filings got a useful answer.
  • Picking the right skill for an AI agent. With Jev suggesting one skill from a catalogue of 182 before the agent chose, wrong skill loads fell from 16.8% to 7.3% and needless loads from 9.8% to 4.0%, with each ranking call taking about 0.16 to 0.31 seconds.

Compared with an LLM: a big LLM is smarter in the broad sense. It can reason over many steps, do maths and write. Jev is deliberately narrow. TypeSafe’s own “model jaggedness” page lists where it struggles: counting and exact numbers, comparing dates, double negatives and multi-hop reasoning, lots of irrelevant text in the state, and a mild preference for the first option in a Choice.

Compared with a fine-tuned classifier: a classifier trained on lots of your own labelled data can beat a zero-shot model on your specific labels, especially with in-house jargon. But it is only smart about what it was taught. Jev starts reasonably smart on day one, on any question you can describe in plain English.

Easy: the labels live in your code

This is the biggest difference from a fine-tuned classifier, and it’s easiest to see when requirements change.

What it takes to add one new label, such as a new security team for support tickets. Top row, a fine-tuned classifier: label examples, hundreds per class; retrain on a GPU; evaluate on a held-out set; redeploy the model server; watch for drift, then do it again. Bottom row, Jev: add one line to the criteria in your code and ship, then test on your own tickets.
Adding one label. The fine-tuned classifier goes round the whole training loop. Jev needs one line of code.

With Jev, the “labels” are the criteria dictionary you send with every request. A new team, a renamed category, a sharper definition: you edit a string and deploy your app as usual. There is no model of your own to train, version, host or retrain. (You should still test the change on a sample of real data. Easy is not the same as untested.)

An LLM is just as easy to change. The difference is what you get back: an LLM hands you text to parse, Jev hands you a typed value that can only be one of your options.

Generalized: one model, four kinds of question

A fine-tuned classifier does one job: the job it was trained for. Ten decisions usually means ten models, or one model with ten heads and a training set for each.

Jev answers four kinds of question (TypeSafe calls them primitives), and you can mix them in one request:

Primitive Asks Returns
Choice Which of these options? the option, probabilities, confidence
Score Where on this scale? a score, probabilities, confidence
Noul Is this statement true? a probability from 0 to 1
Box Where is it in this image? a bounding box (images are still an early feature)

The cookbooks show the same model doing very different jobs:

  • Routing: intent routing, picking one skill from 182, mapping a trading request to the right typed function call.
  • Judging: guardrails for LLM inputs and outputs, checking whether an LLM’s answer follows from the given paragraphs, catching invented citations, deciding if an agent’s tool call runs, needs approval or is refused.
  • Matching: re-ranking legal search results, aligning records in a knowledge graph (merge, review or no link), finding one film among 5,000 from a vague description.
  • UI decisions: a Twitch chat filter that decides which messages to hide, blur or highlight; ticking off presentation notes from a live transcript.

An LLM is even more general, because it can also write. But Jev covers the decision half of that range with one API and one price.

Cheap: output is free

Jev’s price is $0.042 per million input tokens (that’s $42 per billion), and output tokens are free, because there are no words to write. Both current versions, jev-1.13.0 and jev-1.14.0, cost the same.

Put the cookbook numbers on a scale you can feel. One million calls of that 8-question moderation rubric:

Model Cost for 1 million calls
Jev about $46
GPT-5.4 mini (single pick) about $936
Claude Haiku 4.5 (probabilities) about $3,500
GPT-5.5 (reasoning) about $41,000

Worked out from the per-call costs above, so the same historical price assumptions apply.

Batching helps too. In another cookbook, 13 questions about a long article cost $0.000497 in one call against $0.006090 as 13 separate calls, about 12 times cheaper, with the same answers. You pay for the input once, however many questions you ask about it.

Compared with a fine-tuned classifier: per call, a self-hosted classifier can be nearly free. But the real bill includes labelling time, the training run, a server running all day whether you use it or not, and an engineer to keep it healthy. For a team without an ML platform, Jev’s per-call price is often cheaper than the classifier’s total cost.

The sixth thing: probabilities your code can trust

The five badges leave out what may be the most important difference: what the confidence number means.

  • LLM: when it writes "confidence": 0.9, that’s text. It’s a guess at what a good answer looks like.
  • Fine-tuned classifier: it gives real probabilities from its last layer, but modern neural networks are often overconfident. You usually need an extra calibration step on held-out data to fix that.
  • Jev: TypeSafe trains it with a method it calls RLCD (reinforcement learning for calibrated decisions), so the probabilities are optimised against real outcomes. In a well-calibrated model, answers given 0.8 are right about 80% of the time, across many answers. That’s a promise about the group, not about any single answer.

Calibrated probabilities make confidence-gated routing possible: act automatically on the confident answers, ask a person or a reasoning LLM about the rest. TypeSafe’s advice is to set the bar by risk: a read-only action can go ahead at moderate confidence, while something destructive, like approving a transfer, should need more than 0.9 or a human’s yes.

The consistency cookbook shows why this matters. Run 15 times, Jev’s probabilities moved less than five of the six LLM settings (only Haiku at temperature 0 was steadier). Its top label still flipped on two close questions. But with a simple rule, “if the top probability is below 0.60, call it uncertain”, Jev’s decisions agreed 99.2% of the time across repeats, about three quarters were handled automatically, and no question ever produced two different concrete labels. Repeatability isn’t accuracy, and that 0.60 line was illustrative, but it’s exactly the behaviour you want from something that runs unattended.

The full comparison

General LLM (prompt + JSON) Fine-tuned classifier Jev
What it returns Text you parse Class probabilities Typed answers + probabilities
Time per decision ~1 s (small) to 10+ s (reasoning) Milliseconds, once hosted ~100 ms, many questions at once
Labelled data needed None Hundreds to thousands of examples None
Training run No Yes, and again for every change No
Hosting Provider API Yours to run and monitor Provider API
Changing the labels Edit the prompt Relabel, retrain, redeploy Edit the criteria in code
New kind of decision New prompt Usually a new model New question in the same call
Can return an invalid answer? Yes (bad JSON, unknown label) No No
Confidence Written text, not measured Real, often overconfident Trained to be calibrated
Cost per decision Pay for every output token Near zero per call, plus fixed costs $0.042 per M input, output free
Can write, explain, reason Yes No No
Data stays on your servers Only with a self-hosted model Yes No (TypeSafe’s API)

So which one should you use?

Use a general-purpose LLM when a person will read the output (a reply, a summary, code), or the job needs real step-by-step reasoning, planning or maths. Jev can’t write, and TypeSafe says so plainly.

Use a fine-tuned classifier when you already have lots of good labels, the task is stable, you need single-digit milliseconds at huge volume, or the data can’t leave your servers. It’s also the honest choice when your domain is so specialised that zero-shot models keep getting it wrong.

Use Jev when the job is a quick judgment your code acts on: classify, route, score, check, match, filter. Especially when you have no labels yet, the categories will keep changing, or you need many different decisions about the same input.

And in practice, you often use them together:

  • Jev first, LLM second. Jev makes the fast first call on everything; only the low-confidence cases go to a reasoning LLM or a person. TypeSafe’s “SDE cascade” cookbook is this pattern: cheap extraction, Jev checks each field, and a reasoning model only when needed.
  • Jev as a guard on an LLM. The LLM writes, and Jev checks the answer is grounded, the citations are real and the policy is followed, fast enough to run on every response.
  • Jev answers as features. One cookbook feeds Jev’s answers into a classic CatBoost model as features. Your old ML pipeline and Jev don’t have to compete.

Honest caveats

  • The numbers are TypeSafe’s. Every benchmark above comes from TypeSafe’s own cookbooks, using historical prices. They’re useful, not independent.
  • Consistency isn’t accuracy. The repeat-run tests measured whether models agree with themselves, not whether they were right.
  • Calibration is for the group. A 0.9 can still be wrong. Pick thresholds on your data and start conservative.
  • Know the rough edges. Keep numbers, dates and counting in code. Keep the state focused. Treat user-supplied text as possibly hostile: Jev doesn’t do that by default.
  • It’s a hosted API. Your data goes to TypeSafe. For some industries that alone decides it.

Key takeaways

  • An LLM is smart, easy and general, but writes its answers, so it’s slow and you pay per word. Its “confidence” is just text.
  • A fine-tuned classifier is fast and cheap per call, but needs labels, training, hosting and retraining, and does one task.
  • Jev answers typed questions in about 100 ms, many at once, with no labels or training, at $0.042 per million input tokens with free output.
  • Its probabilities are trained to be calibrated, so your code can act on confident answers and escalate the rest.
  • It doesn’t write or reason step by step. Use an LLM for that, and a fine-tuned model when you have the labels and the need for raw speed or privacy.

Frequently asked questions

Is Jev a fine-tuned LLM?

Not in the usual sense. You don’t fine-tune it, and it doesn’t generate text. TypeSafe trains it with its own method (RLCD) to return decisions and calibrated probabilities. You customise it per request by writing the questions and options.

Is Jev a classifier?

It can do classification, and TypeSafe’s LangChain integration even calls it TypeSafeClassifier. But it isn’t trained on your labels. It reads the options you send each time, so one model can classify, score, check facts and match records.

Can Jev replace my fine-tuned model?

Often, for decisions you can describe in plain English, and it removes the labelling and upkeep. Test it on the same held-out data you used for your classifier and compare. If your model still wins on accuracy, speed or privacy, keep it.

Is Jev more accurate than GPT or Claude?

TypeSafe’s published tests compare speed, cost and consistency, not head-to-head accuracy. For quick judgments it’s far faster and cheaper; for anything needing reasoning or writing, a general LLM is the right tool.

How much does Jev cost?

$0.042 per million input tokens for jev-1.13.0 and jev-1.14.0, and output tokens are free. Images, an early feature, are billed as input tokens.

Sources

Comments

LEAVE A COMMENT
No sign-up. Comments appear after a quick review.