How to Build Things with Jev & OpenJevs
In this video, we build a model router using both the API-based original Jev and also using Semif. 👨💻 Github: code will be up in the next day or so 📺 2nd Channel: Coming Soon!! Twitter: https://x.com/Sam_Witteveen 🕵️ Interested in building LLM Agents? Fill out the form below Building LLM Agents Form: https://drp.li/dIMes 👨💻Github: https://github.com/samwit/llm-tutorials ⏱️Time Stamps: 00:00 Intro 01:45 Quick Recap on Jev 05:59 Model Router Demo 06:21 Models Used for both Local and Cloud 07:18 Running using any Model 07:37 Running using AutoJev 11:47 Architecture 15:06 Running using SemIf 16:46 Stats
Read Video · 文字起こしと深掘り分析
このエピソードには全文文字起こし + AI インサイトがあります
無料アカウント · カード不要 · 登録で150クレジット獲得、このエピソードのアンロックに十分
- 📄 タイムスタンプ付き全文文字起こし
- ✨ AI 要約・キーワード・マインドマップ
- 💡 重要ポイントと名言
エピソードのタイムライン
Introduction to building a model router with Jev and the models used locally and in the cloud.
- Jev is a system-one model from Typesafe AI that does not generate text but returns typed answers with probabilities for choice, score, and null questions.
- The router runs locally as an endpoint and uses a mini CPM 5 2B model locally, Qwen Image 2.1 for images, and DeepSeek V4.1 Flash via OpenRouter for cloud tasks.
- Jev charges nothing for output tokens and only 4 cents per million input tokens, with responses typically in the 70 to 500 millisecond range.
- The three question types map neatly onto routing: choice for categorization, score for difficulty, and null for privacy gating.
Demonstration of the router deciding between local and cloud models based on Jev's judgments.
- A simple greeting was routed to the local mini CPM model with zero difficulty and no private information, decided by Jev in 331 milliseconds.
- A Python code request was routed to DeepSeek because the choice category returned code with near 100% probability, and difficulty increased above chitchat.
- The choice question includes classes like chitchat, simple question, rewrite/summarize, code, reasoning/analysis, and image, each with defined criteria.
- The score question uses levels from trivial to hard, where trivial means a small 2B model handles it easily and hard requires frontier-level reasoning.
Privacy gating and the architecture of the router with FastAPI, SQLite, and OpenAI-compatible endpoints.
- A fake API key triggered the privacy null question, which returned 0.96 probability of private data and forced the request to stay local.
- The architecture uses a Next.js UI sending to a local FastAPI server that makes one Jev call for decisions, then routes and streams from the winning model.
- Lanes are preconfigured with an order of preference, and conditional rules include routing to web-enabled models if difficulty exceeds 6 or to local models if the privacy flag is above 0.5.
- Everything is logged to SQLite, including Jev decisions, messages, and generated images, with health checks and OpenAI-compatible endpoints for all models.
主要な概念
- Jev— The core system-one model from Typesafe AI that powers the entire routing logic without generating text.
- model router— The main project built in the episode, deciding which model handles each request.
- typed questions— The three question types (choice, score, null) that Jev answers with probabilities.
注目の名言
And remember, the cool thing for this is it doesn't charge you anything for output tokens at all, and it only charges you 4 cents per million input tokens.
🤯— Reveals an unexpectedly low pricing model that makes routing decisions nearly free compared to standard LLM calls.
A nice way of thinking about this is that you can kind of think of it as an if statement that understands language.
💡— Reframes a sophisticated AI model as a simple programming construct, making the concept instantly graspable.
実行可能なテイクアウェイ
🏗️AI Architecture
Jev acts as a language-aware if statement that returns typed probabilities, enabling fast conditional routing without parsing JSON.
This week, prototype a single Jev call with one choice question and one null question to see how probabilities map to your routing logic.
Running three questions in one request costs nearly the same time as one, so you can add more decision dimensions cheaply.
Add a second null question to your existing Jev call to detect whether a request needs web search, and log the results.
🔒Privacy & Security
Sending prompts to a cloud Jev to check for PII already leaks the data, so local open-source Jev is essential for true privacy.
Set up a local OpenJev instance this week and route all privacy-gating questions through it instead of the cloud version.
A privacy threshold above 0.5 can automatically force requests to stay local, preventing sensitive data from leaving the machine.
Configure your router to force local routing when the privacy score exceeds 0.5, and test with a fake API key.
文字起こしとAIインサイトは自動生成されたものであり、誤りが含まれる場合があります。認識精度は音質や話者の発話の明瞭さに左右されます——内容に不就がある場合は、元の音声をご確認ください。
すぐに読めるエピソードと動画
ポッドキャスト

The Mystery of Sea Creatures (1/5): A coral reef love story | Ayana Elizabeth Johnson
TED Talks Daily
2026年7月18日8:53EN
The SpaceX IPO, Fable 5, AI Capex Update & Market Check w/ Gavin Baker, Andrew Fox & Clark Tang | BG2
BG2Pod with Brad Gerstner and Bill Gurley
2026年6月11日1:20:47EN
87 | On the joys of being a young scientist
Night Science
2026年7月13日38:07EN
#4「見た目を草間彌生にした方がいい」
朝井リョウ・加藤千恵 信頼できない語り手
2026年2月27日46:24JA
#63 Der Westfälische Frieden
Wer wir sind und warum das nicht klappte ...
2026年6月24日55:25DE
la teorías de las parcelas 2
Más de lo Mismo
2025年11月2日36:26ES
動画

Moonshot AI - Kimi K3 tested
Luke's Dev Lab
2026年9月18日18:03EN
Jev (Fully Tested) + Browser Use: FASTEST AI Agent I'VE TRIED YET!
AICodeKing
2026年9月17日8:22EN
Why Graph Engineering will 10x your Claude/Codex
Greg Isenberg
2026年8月3日26:29EN
#40 Karl IV. und sein goldenes Prag
99 mal Geschichte
2026年1月8日1:03:51DE
Firma bez šéfov: Funguje to? - Money Talk 113 s Ferom Baníkom
Milan Dubec
2026年8月4日54:10SK