Skip to content

Article

A Deep Dive into Jev

A practical tour with JavaScript examples: typed choices, scores, probabilities, real latencies and costs, the jagged edges, and how to split jobs correctly.
Format
Article
Reading time
3 min
Published by
Community
Author
Flavio Copes
Last verified
Sep 2026

Highlights

  • Calls go to POST https://api.typesafe.ai/v1/systemone; 401 is a bad key, 422 invalid input, 429 rate limits, and 529 overload.
  • Rate limits at writing: 250,000 tokens per second and 1,200 requests per minute; state plus all questions share about 64,000 tokens.
  • A ~300-token support ticket costs about $0.0000126 per call at $0.042 per 1M input tokens, or $1.26 per 100,000 tickets.
  • Speculative fan-out: 13 questions in one call were 12.2x cheaper and 10x faster than 13 sequential calls on a 53,777-character document.
  • Adding one relevant example to a Score level moved a Safari bug from score 1.43 at 0.35 confidence to 1.03 at 0.96.

Quickstart

ts
import { choice, noul, score, TypeSafeClient } from '@typesafe-ai/sdk'

const client = new TypeSafeClient()

const { answers } = await client.systemOne({
  state: { ticket },
  questions: {
    category: choice('What kind of ticket is `ticket`?', {
      bug_report: 'Something is broken or behaving wrong',
      other: null,
    }),
    has_repro_steps: noul('Does `ticket` say how to reproduce the problem?'),
  },
})

console.log(answers.category.choice, answers.has_repro_steps.noul)

Watch out

The 193.6x faster and 444.6x cheaper headline comes from TypeSafe's own workflow evaluations, which it calls the high end of real-world results, so treat it as a ceiling.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

Hacker News: Thread for Flavio Copes' practical Jev tutorial with JS examples.

2 pointsA deep dive into Jev, TypeSafe's System One modelRead the thread on Hacker News

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai