Glossary
/v1/systemone protocol
The /v1/systemone protocol is the request and response format, introduced by Jev and also spoken by Laya, for asking typed questions about a piece of text or data.
Swiss-hosted inference. Nothing you send is ever stored. Swiss data residency
Definition
What /v1/systemone protocol means
The /v1/systemone protocol is the wire format used by TypeSafe's Jev decision API and implemented by Laya's laya-serve server and by Laya Studio. The name comes from "System 1": fast, single-pass decisions rather than long generated reasoning.
Request
POST /v1/systemone with a JSON body:
state: a string, a JSON object, or a list of conversation turns.questions: an object mapping your question id to a definition withtype(choice,scoreornoul),instructions, andcriteria.choicecriteria: a dict of label to description, or a list of labels.scorecriteria: a list of level descriptions, level 0 first.noulcriteria: optional{"true": ..., "false": ...}descriptions.
model(optional): on Laya servers,english,multilingualortyped-decisionspins a checkpoint. Any other value, such as a Jev model id, is ignored and the request is routed automatically.
On Laya Studio, send it to https://api.laya.studio/v1/systemone with Authorization: Bearer lsk_live_....
Response
modelanswers: one entry per question id. Achoiceanswer haschoiceandprobabilities; ascoreanswer has the expected levelscore, alegendandprobabilities; anoulanswer hasnoul, the probability of true. Every answer hasconfidenceandaction.act_probability.usage:input_tokensandoutput_tokens(always 0 for Laya, since nothing is generated).routing(Laya only): which checkpoint answered and why. Jev clients ignore it.
A malformed question returns HTTP 422 with a message naming the question and the problem.
Because the shapes match, a Jev client can switch by changing its base URL and key. On Laya Studio each question in a call is billed the input tokens it reads, 15% below Jev's list price. See the /v1/systemone docs, choice, score and noul and Laya vs Jev.
Related terms
How /v1/systemone protocol connects to the rest of the vocabulary.
Go deeper
- ExplainerChoice, score and noul: three primitives for typed decisionsChoice picks a label, score places text on a scale, noul gives the probability a statement is true. How each works in Laya, when to use it and where it is weak.
- ComparisonLaya vs TypeSafe Jev: which decision model should you use?Laya vs TypeSafe Jev compared: speed, accuracy, calibration, languages, pricing, data residency and API compatibility, plus where Jev wins and how to migrate.
- ExplainerTyped decisions: asking a model for a value, not a paragraphWhat is a typed decision? You list the allowed answers up front and the AI returns one of them with a probability. No free text to parse, no invented labels.
Get started
Try it on your own text
Send any text with your own typed questions and get a calibrated probability for every answer. 6k free tokens, no card needed; then $0.0357 per 1M input tokens — 15% below Jev.
Swiss-hosted inference. Nothing you send is ever stored.