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
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, 30% 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.