Quickstart Tutorial · 5 Minutes

How to Use Jev AI: From Playground to Production API

Follow five practical steps to turn unstructured text or JSON into fast, probability-backed choices, scores, and yes/no decisions—free to test online with no waitlist.

Step-by-step workflow

Five steps to your first production decision

STEP 01

Validate your scenario in the free Playground

Open the online Jev AI Playground with no waitlist. Paste a real ticket, user message, or JSON record into State, add one or two questions, and inspect live probabilities before writing any code.

STEP 02

Give State the exact context the decision needs

State can be a plain string, a structured JSON object (e.g. ticket + order + policy), or an array of text snippets. Keep irrelevant boilerplate out so every question evaluates clean evidence.

STEP 03

Choose atomic Choice, Score, or Noul questions

Use choice for multi-class routing (2–255 options), score for ordered rubrics (2–10 levels), and noul for calibrated yes/no gates. Split compound questions into separate keys—Jev evaluates them in parallel.

STEP 04

Create an API key and call POST /v1/systemone

Sign in to your Jev AI account, generate a Bearer API key in Settings → API Keys, store it in a server-side environment variable, and send the exact JSON shape you validated in the Playground.

STEP 05

Branch in code using probabilities and confidence

Read answers by your question IDs. Automate low-risk routes at moderate thresholds, and require higher confidence (or human confirmation) for deletes, refunds, and escalations.

Working code examples

Call the Jev model API and branch on probabilities

cURL · Parallel choice, score & noulREST
curl -X POST https://thejevai.com/v1/systemone \
  -H "Authorization: Bearer $JEV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "typesafe/jev-1.14",
    "state": "Three deploys failed and checkout is returning HTTP 500.",
    "questions": {
      "urgent": {
        "type": "noul",
        "instructions": "Does this incident require immediate on-call escalation?"
      },
      "queue": {
        "type": "choice",
        "instructions": "Which team should own this alert?",
        "criteria": {
          "infra": "Outages, 500 errors, failed deployments",
          "billing": "Payments, invoices, subscriptions",
          "support": "General customer questions"
        }
      },
      "severity": {
        "type": "score",
        "instructions": "Rate production impact severity.",
        "criteria": ["Minor", "Degraded", "Critical outage"]
      }
    }
  }'
TypeScript · Threshold branchingNode / Edge
const res = await fetch("https://thejevai.com/v1/systemone", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.JEV_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "typesafe/jev-1.14",
    state: ticket.body,
    questions: {
      urgent: { type: "noul", instructions: "Needs immediate escalation?" },
    },
  }),
});

const { data } = await res.json();
const urgentProb = data.result.answers.urgent.noul;

if (urgentProb >= 0.85) {
  await pageOnCall(ticket);
} else if (urgentProb >= 0.5) {
  await flagForTriage(ticket);
}

Best practices that improve accuracy

  • Ask one narrow, testable question per key instead of bundling multiple goals into a single prompt.
  • Write crisp criteria descriptions for every choice option so boundaries never overlap.
  • Calibrate different confidence cutoffs for low-risk routing vs. destructive or financial actions.

Common mistakes to avoid

  • Do not ask Jev to generate free-form paragraphs—delegate text writing to an LLM after Jev decides the route.
  • Do not treat confidence as guaranteed accuracy; validate thresholds on 50–100 real examples from your domain.
  • Do not expose JEV_API_KEY in browser code; always call /v1/systemone from your backend.

FAQ

Getting started with Jev AI

Do I need an invite or waitlist to start using Jev AI?+

No. You can test the Jev model immediately in the free online Playground with no waitlist, and sign in anytime to generate API keys for production backend calls.

Which model ID should I start with?+

Start with typesafe/jev-1.14 for predictable, pinned production behavior, or ~typesafe/jev-latest if you want requests to follow TypeSafe’s newest Jev release automatically.

Should I ask Jev to write emails or summarize documents?+

No. Jev is a System One decision model designed to return typed choices, scores, and yes/no probabilities—not paragraphs of prose. Pair Jev with a generative LLM when your workflow needs text generation.

How many questions can I include in a single request?+

You can evaluate multiple independent questions in parallel against the same state in one API request (up to eight in the Playground UI), avoiding chained round trips.

Where should I put my Jev API key?+

Always keep your Jev API key in server-side environment variables and proxy browser traffic through your backend. Never embed keys in frontend JavaScript or public repositories.