TypeSafe Jev · structured decision model · not a chat model

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.

Numbers, not textEach question yields a 0–1 probability, an option, or a score — compare it against a threshold in code, no prose parsing.
Cheap and fast$0.05 per million input tokens, $0 for output; a single decision usually costs a tiny fraction of a cent.
Dedicated endpointCall /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)
Inputmessagesstate (any text / JSON) + questions
OutputA block of text (needs parsing)A probability / option / score per question
Good atGeneration, reasoning, conversationYes/no, pick-one, degree scoring
BillingInput + outputInput only; output is $0
ContextVaries per model32,000 tokens
Model ID

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.

Availability

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.

1

Create an API key

In the console: API Keys → + New key. If you already have an sk-… key, reuse it.

2

Write a question

The simplest type is noul (yes / no): give it one instructions sentence and Jev returns the probability of "yes".

3

Send the request

If the curl below returns 200 and answers.refund.noul is a number between 0 and 1, you are connected.

shell
…
json · expected response
{
  "id": "gen-dec-…",
  "model": "typesafe/jev-1.13-20260917",
  "answers": { "refund": { "type": "noul", "noul": 0.76 } },
  "usage": { "input_tokens": 282, "output_tokens": 20 }
}
How to read it

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.

Endpoint
…

With the official TypeSafe SDK, set base_url to the host without /v1/systemone (…) — the SDK appends the path itself.

Authentication

http
Authorization: Bearer sk-YOUR_KEY
Content-Type: application/json

Endpoints

MethodPathNotes
POST/v1/systemonePrimary path; matches how the TypeSafe SDK builds the URL
POST/v1/decisionsAlias, same implementation
POST/alpha/decisionsAlias, so OpenRouter cookbook code needs one less edit
What does not work

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.

FieldTypeRequiredNotes
modelstringyesjev-1.13 (the prefixed form typesafe/jev-1.13 is also accepted). jev-latest is retired and returns 400
statestring · object · arrayyesThe 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.
questionsobjectyesQuestion name → question. Names are arbitrary (refund, is_bug…) and answers come back under the same names. Ask several in one call.
questions.*.typenoul · choice · scoreyesQuestion type — see the next section
questions.*.instructionsstring · object · arrayyesWhat to ask. One clear judgement sentence; structured guidance (object/array) is allowed
questions.*.criteriadepends on typerequired for choice / scoreDecision 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).

json
…

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".

json
…

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.

json
…

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.

json
…
Three rules for good questions

① 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.

json
…
FieldNotes
idUnique ID for this decision (gen-dec-…) — use it for debugging and reconciliation
modelThe build that actually served the request (e.g. typesafe/jev-1.13-20260917): the date suffix tells you whether upstream rolled a new build
answersQuestion name → answer. Each answer's type matches the question type you asked
usage.input_tokensThe billing basis: input tokens of state + questions
usage.output_tokensOutput tokens (not billed)
usage.estimatedPresent (true) only when upstream returned no usage: input is then estimated from text length
header x-clawcu-charged-picoAmount 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.

python
…
Fail closed

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.

shell
…

The standard library or requests both work; this uses requests.

python
…

Native fetch, no dependencies.

javascript
…

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.

python
…
typescript
…
SDK models.list() does not work

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#

ItemValueNotes
Context32,000 tokensstate + questions combined; exceeding it returns 400
Request body≤ 256 KiBExceeding it returns 413
Input price$0.05 / million tokensAs shown for jev-1.13 on the console rate card
Output price$0Output tokens are not billed
StreamingNot supportedA decision takes a few hundred milliseconds; responses are synchronous
Tool calls / imagesNot supportedText in, structured answers out
Rate limitsSame as the Model APIPer-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#

StatusMeaningWhat to do
400Bad request: wrong model name, empty questions, invalid type / criteria, over 32KFix it against Request format
401Invalid or revoked keyCreate a new key on the API Keys page
402Insufficient balance or restricted accountTop up and retry
403The account lacks Jev access, or this key's model list does not include JevTopping up does not unlock new standard accounts; existing standard accounts should check their top-up status and key allowlist
413Request body over 256 KiBTrim the state
429Rate/concurrency limit hit, or upstream throttling (passed through)Back off and retry per Retry-After; not billed
502Upstream error (body carries the upstream message)Retry later; report it if it persists
503Gateway temporarily unavailableRetry later
504Upstream did not respond within 60 secondsRetry; this call is not billed
Errors are 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.

References: the TypeSafe Jev model page (OpenRouter) and the Decisions API reference; every example on this page was checked field-by-field against the upstream request / response shapes. · Model API guide · API Keys · Rate card · Console