A Jev API response example, read field by field
By Christophe Paka · Facts checked on 23 October 2026
Jev is an AI model from TypeSafe that answers questions about your data by picking from answers you wrote. Its reply is not text but a block of JSON, a format for data that programs read. This jev api response example reads that block one field at a time.
Say you got your API key, the password your code sends with each call, and ran the sample from TypeSafe's Quick start. Back came a pick, a score, a yes chance, two token counts and a model name you did not send. Which number do you act on? Read it wrong and your code pages the wrong team.
The figure is TypeSafe's own recorded call. It joins each question on the left to its answer on the right, by question ID: A, B and C.

Use this diagram on your site
Free to share in your blog post, docs, course or slides, as long as the credit link stays. Paste the code below where the figure should go.
How to read this figure
Read the request, top left. The state is the customer's message: their API integration returns 500 errors on every request, so they cannot process orders. The request asks for
jev-latest. Three questions follow, each under an ID your code chose.Follow arrow A: the team. Question A,
department, is a Choice between billing, technical and sales. The answer is technical. Its probabilities show all the weight on one option, and the confidence (how settled the answer is) is the top value. No doubt at all.Follow arrow B: the frustration. Question B is a Score on three levels, from calm to very angry. The answer is
0.67: between calm and frustrated but civil, nearer frustrated. Its confidence is0.5, a cue to look closer. See reading a Score.Follow arrow C: the urgency. Question C,
is_urgent, is a Noul. The answer0.99is the chance that yes is right, so a near certain yes. A Noul has no confidence field, because its one number already is a probability.Read the two fields about the call. The model field names the exact version that answered. Usage holds the token counts: 428 input tokens, which are billed, and 73 output tokens, which are free.
Key takeaways
- Read each answer by its question ID, never by its position in the response.
- Log the model field on every call, so you see when the answering version changes.
- Pin a versioned ID before you tune any threshold, and test a new version before you move the pin.
Worked example: where the frustration score comes from
A Score is a position on your scale, and it can fall between two steps. Rebuild answer B from its probabilities.
- Step 0, calm, has probability
0.33. Step 1, frustrated but civil, has0.67. Step 2, very angry, has0.0. - Multiply each step number by its probability:
0 x 0.33,1 x 0.67and2 x 0. - Add them up:
0 + 0.67 + 0 = 0.67. That is the score. - Now the confidence. The most likely step is 1. The
0.33on step 0 sits one step away, so the average distance from step 1 is0.33. An even spread, a third on each step, would average0.67away. - So confidence is 1 minus
0.33 / 0.67, which gives0.5: the answer has moved halfway from an even spread toward one step. - TypeSafe's sample code hands any confidence below
0.5to a person. This one sits exactly on that line, not below it, so that code would still act.
Result: The score reads as a point on your scale, not a probability. Its confidence sits right on the review line, so it is a cue to look closer, and a reason to pick your own line from tickets you have checked by hand.
Questions readers ask
Why does the response name a model I did not send?
The request sent jev-latest, an alias: a name TypeSafe can point at a newer model. The response names jev-1.13.0, a versioned ID that always means the same model. The alias can move with no change to your code, so send a versioned ID in production.
Is Jev free to call?
No, but only the text you send in is billed: the state plus the wording of every question. The answers, counted as output tokens, are free. TypeSafe charges $0.042 per million input tokens, so this call of 428 input tokens cost about $0.000018. Log the usage field and you can see what each call costs.
Do the probabilities of a Choice add up to one?
Yes. They show how Jev spreads its belief across the answers you allowed. In this call, technical holds all of it and billing and sales hold none, so the confidence is 1, as high as it can go. A high confidence still does not prove the answer is right, so check it on your own examples.
Sources: Quick start (TypeSafe docs); System One API reference (TypeSafe docs); Models (TypeSafe docs).
This figure is from Jev Made Crystal Clear, chapter 2.
The chapter builds the idea step by step, with recipes you can follow, a Try it to check yourself, and every source.
Get the book


