Jev decision model
Jev does not write prose. You hand it a state and a few questions, and it returns a
probability or an option per question. Use it at decision points inside your program: gating an agent's tool calls,
triaging tickets, classifying content, choosing a route — you want a fast, stable verdict, not a paragraph.
Call it with the same sk-… key as the Model API, billed by input tokens only; output is free.
/v1/systemone, not /v1/chat/completions; the OpenAI SDK's chat methods do not apply — see below.What is Jev#
TypeSafe's first System One model: fast, structured decisions for software — typed answers instead of free text.
General-purpose models answer by generating text, and you write a parsing layer on top. Jev turns the judgement itself into an API: give it any state (a ticket, a conversation, an order, a tool call about to run) plus the questions and criteria you define, and it returns a probability distribution per question. Same input, same questions — the answer is numeric, and the threshold stays in your code.
| Chat model (chat/completions) | Jev (systemone) | |
|---|---|---|
| Input | messages | state (any text / JSON) + questions |
| Output | A block of text (needs parsing) | A probability / option / score per question |
| Good at | Generation, reasoning, conversation | Yes/no, pick-one, degree scoring |
| Billing | Input + output | Input only; output is $0 |
| Context | Varies per model | 32,000 tokens |
jev-1.13: a pinned version, recommended for production (your tuned thresholds will not drift when the
upstream model is upgraded). The model field in the response tells you which build actually served the request.
The drifting alias jev-latest was retired on 2026-10-01: it always pointed at the newest member of
the Jev family, so a release could silently shift your distributions. Use jev-1.13; everything else stays the same.
Starting 2026-11-23, Jev is no longer available to new standard accounts. Existing standard accounts retain access, and VIP accounts are unaffected. Jev is hidden from the API Keys page and rate card for accounts without access, and calls return 403. Topping up does not unlock Jev for new standard accounts.
Quickstart#
Three steps. The key is the same one the Model API uses.
Create an API key
In the console: API Keys → + New key. If you already have an sk-… key, reuse it.
Write a question
The simplest type is noul (yes / no): give it one instructions sentence and Jev returns the probability of "yes".
Send the request
If the curl below returns 200 and answers.refund.noul is a number between 0 and 1, you are connected.
…
{
"id": "gen-dec-…",
"model": "typesafe/jev-1.13-20260917",
"answers": { "refund": { "type": "noul", "noul": 0.76 } },
"usage": { "input_tokens": 282, "output_tokens": 20 }
}
0.76 is the probability that "the customer is asking for a refund" holds. usage.input_tokens is the billing
basis; the amount charged for this call is in the response header x-clawcu-charged-pico
(pico units — divide by 10¹² for the amount in your account currency).
Endpoint & auth#
One dedicated endpoint; the same Bearer key as the Model API.
…With the official TypeSafe SDK, set base_url to the host without /v1/systemone (…) — the SDK appends the path itself.
Authentication
Authorization: Bearer sk-YOUR_KEY Content-Type: application/json
Endpoints
| Method | Path | Notes |
|---|---|---|
| POST | /v1/systemone | Primary path; matches how the TypeSafe SDK builds the URL |
| POST | /v1/decisions | Alias, same implementation |
| POST | /alpha/decisions | Alias, so OpenRouter cookbook code needs one less edit |
Putting jev-1.13 into /v1/chat/completions returns 400: it is a decision model with no chat
shape. There is no streaming either (a decision usually takes a few hundred milliseconds).
Request format#
Three fields: model, state, questions.
| Field | Type | Required | Notes |
|---|---|---|---|
| model | string | yes | jev-1.13 (the prefixed form typesafe/jev-1.13 is also accepted). jev-latest is retired and returns 400 |
| state | string · object · array | yes | The state to judge: a piece of text, or a JSON object (ticket + customer tier + order history…). Objects are passed through as-is — field names are context. |
| questions | object | yes | Question name → question. Names are arbitrary (refund, is_bug…) and answers come back under the same names. Ask several in one call. |
| questions.*.type | noul · choice · score | yes | Question type — see the next section |
| questions.*.instructions | string · object · array | yes | What to ask. One clear judgement sentence; structured guidance (object/array) is allowed |
| questions.*.criteria | depends on type | required for choice / score | Decision criteria: for noul, optional {true, false} descriptions; for choice, an "option → description" object; for score, an array of descriptions from low to high |
Upstream example: one ticket, three questions at once (is it a defect / which team / how urgent).
…
Question types#
The type determines the shape of the answer. Pick the right type and your code is left with a comparison.
noul — yes / no, returns a probability
The most common type. Write instructions as a sentence that can be true or false; the optional
criteria.true / criteria.false disambiguate what counts as "yes" and "no".
The answer noul is a number from 0 to 1: closer to 1 means "yes".
…
choice — pick one, returns the option and the distribution
criteria is required: keys are option names (returned verbatim) and values describe them. The answer carries
choice (the most likely option), confidence (its probability) and
probabilities (the full distribution, summing to 1). A flat distribution (say a top value of 0.4) means the
model is unsure — a good case to route to a human.
…
score — ordered degree, returns a score
criteria is required and is an array of descriptions ordered from low to high (indexes 0, 1, 2…).
The answer score is a probability-weighted continuous value (between 0 and 2 for three buckets),
probabilities gives the per-bucket probabilities and legend maps indexes back to
descriptions. Use it for ordered quantities such as urgency, risk level or satisfaction.
…
① One question, one decision — split compound questions (one request may carry several questions, and you pay input tokens only once).
② Put the criteria in criteria instead of relying on a single instructions sentence: the more
specific the criteria, the sharper the distribution. ③ Put policies, rules and reference records into state
(if it is a JSON object, just add fields) rather than stuffing them into the question.
Response format#
HTTP 200 + JSON. Fixed fields; pick the answer by question name.
…
| Field | Notes |
|---|---|
| id | Unique ID for this decision (gen-dec-…) — use it for debugging and reconciliation |
| model | The build that actually served the request (e.g. typesafe/jev-1.13-20260917): the date suffix tells you whether upstream rolled a new build |
| answers | Question name → answer. Each answer's type matches the question type you asked |
| usage.input_tokens | The billing basis: input tokens of state + questions |
| usage.output_tokens | Output tokens (not billed) |
| usage.estimated | Present (true) only when upstream returned no usage: input is then estimated from text length |
header x-clawcu-charged-pico | Amount charged for this call (pico; divide by 10¹² for your account currency); also drillable per key on the usage page |
Patterns#
Three patterns from the official cookbooks — all of them "Jev gives a probability, your code sets the threshold".
1. Gating an agent's tool calls
Pass "the tool call about to run + the current ticket + your policy" as state and ask a couple of noul questions;
approve at ≥ 0.9, block at ≤ 0.1 with the reason handed back to the model, and pause in between for human review. A decision costs a
fraction of a cent — far cheaper than asking a human every time, and far more accurate than a blanket rule on the tool name.
…
Non-2xx responses, missing questions, probabilities outside 0–1: treat all of them as "needs a human", never as "approve" — a broken gate must not become no gate. The example above does exactly that.
2. Ticket / message triage
Ask three questions in one request — "is this a defect" (noul), "which team owns it" (choice), "how urgent" (score) — and write the answers into ticket fields. More reliable than asking a chat model to "output JSON": no format drift, no extra prose, and an order of magnitude cheaper.
3. Cascades: small model first, Jev verifies, escalate only if needed
Let a cheap model answer first, then hand "the question + its answer" to Jev with a "is this answer correct and complete" question. If the probability is high enough, keep it; otherwise escalate to the flagship model. Most requests stop at the cheap tier, with Jev as the quality backstop.
Client setup#
Anything that can send an HTTP POST works; with the official TypeSafe SDK, point one base_url at this platform. Replace sk-YOUR_KEY with a real key.
Minimal working request (same as Quickstart); add more entries to questions for more questions.
…
The standard library or requests both work; this uses requests.
…
Native fetch, no dependencies.
…
Official TypeSafe SDK (@typesafe-ai/sdk / typesafe_sdk): change only base_url and
api_key; the SDK appends /v1/systemone itself. You can also skip code changes and set the environment
variables TYPESAFE_BASE_URL and TYPESAFE_API_KEY.
…
…
It expects TypeSafe's own list format, while this platform (like OpenRouter) serves an OpenAI-shaped /v1/models, so the
SDK raises an error. Just hardcode the model ID jev-1.13.
Limits & billing#
| Item | Value | Notes |
|---|---|---|
| Context | 32,000 tokens | state + questions combined; exceeding it returns 400 |
| Request body | ≤ 256 KiB | Exceeding it returns 413 |
| Input price | $0.05 / million tokens | As shown for jev-1.13 on the console rate card |
| Output price | $0 | Output tokens are not billed |
| Streaming | Not supported | A decision takes a few hundred milliseconds; responses are synchronous |
| Tool calls / images | Not supported | Text in, structured answers out |
| Rate limits | Same as the Model API | Per-key rate and concurrency limits are in the Model API guide; upstream also caps this platform at 2,000 requests/minute and passes 429 through |
Charge = usage.input_tokens × the rate-card price, deducted from the same account balance as the Model API; the usage
page shows it under model jev-1.13. A zero balance returns 402. Existing standard accounts that have never topped up
cannot use the model; see the availability note above for new standard accounts.
Error codes#
| Status | Meaning | What to do |
|---|---|---|
| 400 | Bad request: wrong model name, empty questions, invalid type / criteria, over 32K | Fix it against Request format |
| 401 | Invalid or revoked key | Create a new key on the API Keys page |
| 402 | Insufficient balance or restricted account | Top up and retry |
| 403 | The account lacks Jev access, or this key's model list does not include Jev | Topping up does not unlock new standard accounts; existing standard accounts should check their top-up status and key allowlist |
| 413 | Request body over 256 KiB | Trim the state |
| 429 | Rate/concurrency limit hit, or upstream throttling (passed through) | Back off and retry per Retry-After; not billed |
| 502 | Upstream error (body carries the upstream message) | Retry later; report it if it persists |
| 503 | Gateway temporarily unavailable | Retry later |
| 504 | Upstream did not respond within 60 seconds | Retry; this call is not billed |
Only requests that return 200 with a usage object are charged. Treat every non-200 as "no decision available" in your client code.
FAQ#
Can I call it with the OpenAI SDK?
Not through chat.completions: Jev is not a chat endpoint and returns 400. POST to
/v1/systemone with any HTTP client, or use the official TypeSafe SDK. The same key works for both.
Is jev-latest still available?
No — it was retired on 2026-10-01 (passing jev-latest returns 400). It pointed at the newest
member of the Jev family and could drift with TypeSafe releases, silently shifting the distributions your thresholds were tuned on.
Only the pinned jev-1.13 remains. The response's model field still shows the build that served you.
Can state be non-English? Can it be JSON?
JSON objects or arrays are fine — fields are passed to the model as-is, and field names are context. Upstream examples are all in English; non-English input works, but calibrate your thresholds on your own samples, since the distribution for the same question can differ by language.
Does asking several questions cost more?
Billing is by input tokens only — an extra question adds a few dozen tokens. Grouping related decisions into one request is cheaper and faster than sending several.
How do I pick thresholds?
Run a few dozen samples with known answers, look at the two probability distributions and put the threshold in the gap between them.
Gate-style use cases want two thresholds (above → allow, below → block, in between → human review); for classification, route to a human when
confidence falls below some level. Do not blindly cut at 0.5.
Where can I see how much each call cost?
The response header x-clawcu-charged-pico is the charge for that call (pico; divide by 10¹² for your account
currency); totals are on the console usage page, drillable per key. Charge = rate-card price for jev-1.13 ×
usage.input_tokens; output is not billed.