TypeSafe Jev Router.
TypeSafe Jev Router (model slug: typesafe/jev-router) is a managed model router hosted on OpenRouter. It provides an OpenAI-compatible POST /api/v1/chat/completions endpoint that evaluates each incoming request with TypeSafe's System One decision model (Jev) to select the backing generative model and reasoning effort, returning standard completion text.
Unlike direct Jev System One inference (which returns typed discrete decisions such as Choice, Noul, or Score), Jev Router acts as an intelligent proxy: it takes chat messages, uses Jev behind the scenes to determine how to route the request across OpenRouter's model catalog, and returns the downstream model's generated prose or stream to your application.
Key Specifications
Documented attributes published by OpenRouter and TypeSafe AI for the typesafe/jev-router endpoint:
| Property | Specification | Notes |
|---|---|---|
| Model Identifier | typesafe/jev-router | Model slug passed to OpenRouter API payloads. |
| Host Platform | OpenRouter | Deployed in partnership with TypeSafe AI as a hosted model endpoint. |
| API Protocol | POST /api/v1/chat/completions | OpenAI Chat Completions schema with SSE streaming and tool calling. |
| Context Window | 1,000,000 tokens | Published context window on OpenRouter's model card. |
| Input Modalities | Audio, File (PDF), Image, Text, Video | Documented input modalities accepted by the endpoint. |
| Output Modality | Text | Generative text completion or token stream from the selected model. |
| Decision Engine | TypeSafe Jev (System One) | TypeSafe's System One model evaluates the request to pick the model and reasoning effort. |
| Current Pricing | $0.00 / 1M prompt · $0.00 / 1M completion | Listed at zero cost on OpenRouter (verified October 2026; subject to change over time). |
| Release Date | September 25, 2026 | Official product launch on OpenRouter. |
Disambiguation: Jev Router Entities
Because the phrase “Jev Router” is used across different tools, repositories, and documentation, searchers frequently encounter four distinct entities:
| Entity | Type & Location | Primary Interface | What It Returns | Primary Purpose |
|---|---|---|---|---|
TypeSafe Jev Routertypesafe/jev-router(This page) | Managed cloud endpoint on OpenRouter | POST /api/v1/chat/completions | Generative text completion from the routed downstream model | OpenAI-compatible endpoint that automatically chooses a model and reasoning effort tier across OpenRouter's catalog. |
| Custom Jev Routing (Application pattern) | In-app code using @typesafe-ai/sdk | POST /v1/systemone | Typed choices (Choice), probabilities (Noul), or scores (Score) | Custom branching logic to bypass LLMs for cached data, dispatch to private internal models, or escalate low-confidence queries to human review. See pattern → |
Community CLI Proxydirien/jev-router(@ediri/jev-router) | Independent open-source local proxy (Engin Diri) | Local proxy (port 4100 UI) | Proxied CLI responses from selected tiers | Pass-through proxy (v1.6.0) for Claude Code and OpenAI Codex CLI. Intercepts human turns and queries Jev to switch model tiers (defaults: Haiku 4.5, Sonnet 5, Opus 5.5). Unaffiliated with TypeSafe AI. |
OpenRouter Auto Routeropenrouter/auto | Native OpenRouter meta-model | POST /api/v1/chat/completions | Generative text completion | Routes requests based on trailing 7-day community spend and usage share across OpenRouter. Billed at pass-through underlying model rates with up to 2M context. |
@ediri/jev-router (GitHub: dirien/jev-router). Running the unscoped command npx jev-router resolves to a separate, earlier project by Pratyush Garg (gargpratyush/jev-router). Neither CLI proxy is affiliated with TypeSafe AI or OpenRouter's hosted typesafe/jev-router endpoint.Documented Architecture & Behavior
OpenRouter and TypeSafe document the operational behavior of Jev Router as a multi-stage request lifecycle:
Requests enter OpenRouter via the standard Chat Completions endpoint. Jev Router accepts conversation history, system instructions, tool definitions, and multimodal inputs (audio, PDF documents, images, and video). The endpoint supports context lengths up to 1,000,000 tokens.
Before generating text, the request is evaluated by TypeSafe's Jev model. As a System One model, Jev specializes in fast, structured decisions rather than generative token drafting.
According to OpenRouter documentation, Jev Router picks the best model and reasoning effort for each request, balancing quality, speed, and cost. It leverages the broader model ecosystem and adapts dynamically as a multi-turn conversation evolves.
The prompt is forwarded to the chosen model endpoint. The resulting completion is returned as a standard JSON response or streamed chunk-by-chunk via Server-Sent Events (SSE).
Note on implementation details: TypeSafe and OpenRouter have not published the internal scoring algorithms, exact decision latency figures, or specific candidate pool thresholds used by Jev Router. While OpenRouter provides prompt caching across its platform, specific cache guarantees across dynamic model switches are not documented.
How to Use Jev Router (Runnable Examples)
Because Jev Router adheres to the standard OpenAI Chat Completions API schema, you call it by configuring your client with OpenRouter's base URL and specifying typesafe/jev-router:
cURL (HTTP POST)
POST openrouter.ai/api/v1/chat/completionsStandard HTTP request using an OpenRouter API key:
Python (OpenAI SDK)
pip install openaiConfigure the official OpenAI client with OpenRouter's base URL:
TypeScript / Node.js (OpenAI SDK)
npm install openaiTypeScript implementation using standard OpenAI chat completions:
Streaming Completions
stream=TrueStream generated tokens in real time over Server-Sent Events (SSE):
Multimodal Input (Vision / Files)
Text + Images / DocumentsSend structured multimodal content using standard OpenAI message parts:
Model Attribution & Transparency
When calling typesafe/jev-router on OpenRouter, the returned completion object indicates which underlying model fulfilled the turn:
In standard non-streaming requests, the top-level response.model attribute reports the identifier of the backing model selected by the router for that generation.
OpenRouter's user dashboard records each generation with its resolved downstream provider, token counts, and latency metrics.
OpenRouter's public model page for Jev Router features a “Top models used by Jev Router” section. As of October 2026, OpenRouter reports that no aggregate usage data is available yet; as request volume accumulates, OpenRouter publishes the live aggregate mix there.
Pricing & Token Economics
Understanding the pricing of Jev Router requires distinguishing between the router endpoint and direct Jev System One evaluation:
| Endpoint / Service | Published Rate | Status & Notes |
|---|---|---|
Jev Router Prompt Tokenstypesafe/jev-router | $0.00 / 1M tokens | Currently listed at zero cost on OpenRouter (verified October 2026). |
Jev Router Completion Tokenstypesafe/jev-router | $0.00 / 1M tokens | Currently listed at zero cost on OpenRouter (verified October 2026). |
Direct Jev 1.13 Inferencetypesafe/jev-1.13 | $0.042 / 1M input · $0.00 output | Published rate for direct System One decision calls on OpenRouter and TypeSafe. |
typesafe/jev-router with $0.00 prompt and completion pricing. Because catalog rates on hosted aggregators can change over time, always check OpenRouter's live model card before relying on specific rates for production budgets.When to Use Jev Router vs. Custom Routing
Choose between the managed router endpoint and custom in-application routing based on your architectural needs:
- Drop-in OpenAI compatibility: You want an automatic multi-model router without modifying your application's request architecture.
- OpenRouter model ecosystem: You want access to models across providers (Anthropic, OpenAI, Google, Meta, DeepSeek) through a single endpoint.
- Automatic reasoning effort: You want reasoning effort dynamically assigned per prompt rather than statically configured.
- Standard text completions: Your workload expects generative text, code completions, or multi-turn conversational responses.
- Non-LLM execution targets: You want to route deterministic queries directly to database queries, cached answers, or microservices at zero token cost.
- Confidence-gated human review: You need empirical confidence thresholds to route ambiguous or high-risk requests to human review.
- Private or self-hosted models: You need to dispatch to VPC-hosted endpoints, AWS Bedrock, or internal fine-tunes not available on OpenRouter.
- Multi-attribute classification: You want to evaluate multiple structured questions (e.g. intent, sentiment, urgency) in a single System One call. Explore guide →
Parameter Support & Capabilities
When sending requests to typesafe/jev-router, parameter handling operates across three distinct layers:
Controls accepted by OpenRouter's API gateway independently of the model, such as stream, provider preferences, and attribution headers (HTTP-Referer, X-Title).
Parameters advertised for typesafe/jev-router on OpenRouter, including tools, tool_choice, parallel_tool_calls, reasoning_effort, response_format (structured outputs), temperature, top_p, max_tokens, and stop sequences.
Because Jev Router dynamically routes requests to diverse backing models, execution of specific parameters ultimately depends on the capabilities of the selected model. Sending parameters not supported by the resolved backing model can result in an upstream HTTP 400 error.
Frequently Asked Questions
Jev Router (typesafe/jev-router) is a managed routing endpoint on OpenRouter. It runs on TypeSafe's Jev System One decision model to choose the backing model and reasoning effort for each request, returning the generated text completion through OpenRouter's OpenAI-compatible Chat Completions API.
Ordinary Jev (typesafe/jev-1.13) is a System One decision engine that takes structured state and questions, returning typed discrete probabilities (Choice, Noul, Score) rather than generating text. Jev Router is a chat proxy that uses Jev internally to decide which generative LLM should answer your prompt.
In non-streaming requests, inspect the top-level model attribute in the returned JSON response (e.g., response.model). OpenRouter populates this with the slug of the backing model that fulfilled the request. You can also view the routed model for any request in your OpenRouter Activity dashboard.
Yes. OpenRouter currently lists prompt and completion pricing for typesafe/jev-router at zero ($0.00 / 1M tokens), verified as of October 2026. Because platform rate cards can be updated over time, verify current pricing on OpenRouter's model page.
@ediri/jev-router (GitHub: dirien/jev-router) is an independent open-source local proxy created by Engin Diri. It runs locally to intercept human turns from terminal coding agents (Claude Code and OpenAI Codex CLI) and uses Jev to select between model tiers. It is unaffiliated with TypeSafe AI or OpenRouter's hosted router.
Any client or developer tool that supports configuring a custom OpenAI-compatible base URL (https://openrouter.ai/api/v1) and custom model identifier can send requests to typesafe/jev-router. Check your specific tool's configuration documentation for custom OpenRouter endpoint support.