
Watching an LLM router burn 400 to 900 tokens just to decide which queue a support ticket belongs in, before a single word of the actual reply gets written, is a little maddening once you've seen it happen a few hundred times. Is that spend necessary, or is routing a problem that never needed a language model in the first place? TypeSafe's pitch for its Jev router is that the spend is unnecessary because routing is a structured decision, not a language problem. Their vendor comparison backing that claim is upfront that it covers cost and latency only and says nothing conclusive about accuracy. A cheaper router that routes worse isn't a win. The real cost of a misrouted ticket shows up as support overtime and churn, never as a line item next to the API bill. The rest of this post works through whether the savings are real and what they cost in accuracy.
That tension is the whole pitch behind TypeSafe's Jev, a routing layer released into general use this year and positioned specifically against the practice of calling a full LLM for decisions that aren't actually language problems. TypeSafe frames it this way: code for rules, Jev for fuzzy decisions, LLMs for language and reasoning. I've spent enough time debugging misrouted support tickets and bloated token bills to say that framing holds up more often than not. The caveats matter more than the headline number, though.
Jev Skips Prose and Returns Structure Instead
LLM Router Token Burn Before a Single Reply Word
Tokens Spent Just to Decide Which Queue a Ticket Belongs In
LLM Router, Low End
400
tokens per routing decision
LLM Router, High End
900
tokens per routing decision
All spent before a single word of the actual reply is written. TypeSafe's Jev reframes routing as a structured decision, not a language problem.
Jev evaluates conditions and returns structure, full stop. Where an LLM router gets a prompt like classify this ticket into one of four categories and explain why, a Jev call gets a prompt shaped more like a decision boundary: given these features, which route, and how confident are you across each option.
The practical difference shows up immediately in the response shape. An LLM response has to be parsed out of prose, sometimes wrapped in markdown fences nobody asked for, occasionally missing the JSON close brace because the model got distracted mid generation. I hit that exact failure in production: a GPT 4 class model returned a JSON blob for a routing decision that got cut off partway through because the max_tokens parameter had been left too low, and the downstream parser threw an error when the final curly brace never arrived.
the parsing failure that pushed me toward typed outputs
How a Routing Decision Gets Handled: LLM Prose vs Jev Structure
LLM Router Path (Prone to Failure)
1. Prompt asks for prose + explanation
→
2. Parse JSON out of markdown/prose
↓
3. Truncated at max_tokens, missing closing brace, JSONDecodeError raised
Jev Router Path (Structured by Construction)
1. Decision boundary prompt: which route, what confidence
→
2. Returns typed answer + probability distribution
↓
3. Code applies threshold check, tie breaker, or human fallback
import json
response = llm_client.complete(prompt, max_tokens=512)
try:
route = json.loads(response.text)
except json.JSONDecodeError as e:
# Expecting ',' delimiter: line 1 column 487 (char 486)
# truncated output, model ran out of tokens mid object
raise RuntimeError(f"router produced unparseable output: {e}")
Jev avoids that category of bug by construction. It returns typed answers and probability distributions directly, so there's no prose to truncate and no brace to lose. Your code owns what happens next: a threshold check, a tie breaker between two close routes, a fallback to a human queue when confidence drops below some number you picked after watching a few hundred real tickets. The model supplies judgment; your code wraps business behavior around that judgment. That separation moves your bugs from prompt engineering into threshold tuning, a more boring problem and, in my experience, a far more fixable one.
That Structural Difference Is Where the Cost and Latency Savings Come From
What an LLM Routing Call Pays For vs What Jev Skips
| Cost Component | LLM Router | Jev Router |
|---|---|---|
| Natural language generation | Paid for | Skipped |
| System prompt restating rules | Paid for | Skipped |
| Prose parsing / failure handling | Paid for | Skipped |
| Typed answer + confidence score | Not native | Native output |
Comparison isolates the router only; same tickets, routes, and responder held constant per TypeSafe's test setup.
TypeSafe's own comparison setup isolates one variable: same tickets, same offered routes, same downstream responder, only the router swapped out. Reasonable experimental design, and it's explicitly labeled as assumptions you can edit rather than measurements taken from a live fleet. The numbers in TypeSafe's writeup form a model, not a benchmark suite run against production traffic across providers.
Still, the directional claim holds up against what anyone who has built a routing layer already knows empirically. An LLM call for a routing decision pays for three things you don't need: natural language generation, a system prompt restating the rules every single time, and a nondeterministic sampling step that occasionally produces a response shaped differently than the one before it. Jev's fuzzy evaluation model skips generation entirely since there's no prose output to construct, and that's where most of the latency and most of the token spend concentrates. An LLM router call's latency varies by provider and model size, but it tends to be dominated by generation time rather than input processing. A structured evaluator call doesn't pay that generation tax because there's no text being generated token by token, so wall clock latency lands close to simple classifier latency rather than chat completion latency.
Token counting across providers is where the strongest pushback belongs for anyone treating this as a precise savings calculator. OpenAI's tokenizer, Anthropic's tokenizer, and whatever Google uses for Gemini all segment text differently, so a side by side token count between an LLM router prompt and a Jev evaluation is indicative at best. TypeSafe says as much in their own writeup, and that disclaimer is accurate. What you can compare more honestly is dollars per thousand routed tickets at a fixed accuracy target, and that number depends entirely on your ticket volume, the one input a vendor chart can never supply.
Does the Pricing Page Account for Accuracy?
The cost and latency numbers above only matter if the accuracy holds, and this is the part of the pitch that deserves the most skepticism rather than the least. From what I can tell in TypeSafe's own materials, cost and latency sit on one axis and accuracy on a separate axis, and the comparison they published covers the first two without saying anything conclusive about the third. That's an unusually honest thing for a vendor writeup to admit, and it's the sentence worth pinning above any dashboard before a team swaps a production router.
Here's where it gets specific. A misrouted support ticket doesn't cost the handful of tokens saved by skipping the LLM call. It costs a customer waiting an extra day for a resolution, a human agent reclassifying the ticket manually, and in the worse cases a billing or security issue that landed in the wrong queue and sat there. I watched a team swap a working LLM classifier for a cheaper rule based system specifically because the token bill looked bad on a monthly report, then reverse that decision three weeks later once support tickets about misrouted billing disputes started piling up. No postmortem logged that regression with a dollar figure attached, because the cost showed up as support team overtime and customer churn, not as a line item anyone was tracking next to the LLM API bill.
The honest way to evaluate a swap like this is to run both routers against the same labeled ticket set and measure routing accuracy before touching cost at all.
shadow comparison before committing to a router swap
from collections import Counter
def evaluate_router(router, labeled_tickets):
correct = 0
confusion = Counter()
for ticket, true_route in labeled_tickets:
predicted = router.route(ticket)
confusion[(true_route, predicted)] += 1
if predicted == true_route:
correct += 1
accuracy = correct / len(labeled_tickets)
return accuracy, confusion
llm_acc, llm_confusion = evaluate_router(llm_router, test_set)
jev_acc, jev_confusion = evaluate_router(jev_router, test_set)
print(f"LLM router accuracy: {llm_acc:.3f}")
print(f"Jev router accuracy: {jev_acc:.3f}")
only compare cost once these two numbers are close enough to matter
Run that shadow comparison for two or three weeks against live traffic, not a static test set assembled once and never refreshed. Ticket distributions drift, and a router tuned against last quarter's support volume degrades against this quarter's without anyone noticing until the confusion matrix gets ugly. What counts as "close enough" depends entirely on what a misroute costs you downstream, and that's not something a vendor comparison chart can hand you.
Rules, Jev, and LLMs Split the Work Three Ways
Weighing cost against accuracy case by case only works if you know which decisions belong to which tool in the first place. Rules handle the cases you can fully enumerate: a credit card number pattern, an account ID lookup, a known keyword list. LLMs handle the cases that require actual language understanding, like sentiment or ambiguous multi issue tickets where the customer's wording carries real signal. Jev sits in the middle, handling decisions with fuzzy boundaries, multiple weighted signals, and a need for calibrated confidence rather than a single label.
That middle category is larger than most routing architectures account for, which is probably why a tool built specifically for it produces measurable cost savings. The configuration below is close to what a first migration attempt looks like, confidence threshold included, because that threshold determines whether the savings are real or just deferred to a human queue.
router config, confidence threshold is the load bearing parameter
router:
provider: jev
model: typesafe/jev-router-v1
routes:
billing
abuse
technical
human_escalation
confidence_threshold: 0.72
fallback_route: human_escalation
log_distributions: true # keep raw probabilities, you'll want them later
The fallback_route line is the one most teams skip when they're in a hurry to ship the cost win, and it's the one that saves the on call engineer when the distribution comes back flat across three routes at 0.3 each because the ticket genuinely doesn't fit any category cleanly. A router that can't say it doesn't know will eventually be wrong with full confidence. 0.72 is a starting point, not a universal answer. The only way to find your own number is to watch what happens on either side of it for a few hundred real tickets.
So is the token spend at the start of this post unnecessary? For the fuzzy, enumerable-but-not-quite-rule-shaped slice of routing decisions, yes: Jev's structured output removes the generation cost without removing the judgment. But the savings are only real once you've run the shadow comparison and confirmed accuracy holds at your own confidence threshold. Skip that step and the token line goes down while the support overtime line goes up, and that second number was never on the vendor's chart.