API Free WeekHundreds of APIs are free to call this week.Browse free APIs
API reference · TypeSafe

typesafe/jev-1.14

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

LLMSynchronousOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/decisions
Model IDtypesafe/jev-1.14
01

Input Schema

2 parameters · 2 required · 0 optional

ParameterTypeRequiredDescription
stateanyRequiredState passed to the System One model. The upstream accepts the native TypeSafe state shape.
questionsobjectRequiredTyped questions evaluated against state.
02

Output Schema

FieldTypeDescription
idstringUnique identifier for this request
modelstringModel used for the request
answersobjectOne answer per question id (keys match your questions)
answers[].typestringAnswer type: choice, score, or noul
answers[].choicestringchoice: the selected option key
answers[].scorenumberscore: probability-weighted mean of level indices (a decimal)
answers[].noulnumbernoul: probability of "yes" (0.0-1.0)
answers[].probabilitiesobjectchoice/score: probability per option or level index
answers[].confidencenumberchoice/score: how peaked the distribution is (0-1); absent for noul
answers[].legendobjectscore: maps level index to your label
usage.input_tokensintegerTokens in the input
usage.output_tokensintegerTokens in the output
03

Code Examples

Ready-to-run snippets

const apiKey = process.env.SANDBASE_API_KEY;
const response = await fetch("https://api.sandbase.ai/v1/decisions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "typesafe/jev-1.14",
    "state": {
      "ticket": "I was charged twice and would like a refund."
    },
    "questions": {
      "refund_requested": {
        "type": "noul",
        "instructions": "Does the ticket explicitly request a refund?"
      }
    }
  }),
});

if (!response.ok) throw new Error(await response.text());
console.log(await response.json());