Skip to content

Docs

TypeSafe Adapter for TanStack AI

TanStack AI's TypeSafe adapter covers evaluate only and talks to TypeSafe over fetch, wiring jev-latest into decide() with choice, score, and boolean question helpers and a required TYPESAFE_API_KEY.
Format
Docs
Reading time
2 min
Published by
Community
Author
TanStack
Last verified
Oct 2026

Highlights

  • Install @tanstack/ai and @tanstack/ai-typesafe; the adapter covers evaluate only, talks to TypeSafe over fetch, and no TypeSafe SDK is involved.
  • decide() takes a decider, a state, and questions built with choice, score, and boolean helpers, and returns value, probability, confidence, and meta.usage.
  • Two documented models: jev-latest, the current stable alias, and jev-1.13.0, a pinned release; other TypeSafe model ids can be passed as strings.
  • The adapter reads TYPESAFE_API_KEY from the environment; createTypesafeDecider accepts an explicit key and posts to /v1/systemone on the chosen base.
  • baseURL and defaultHeaders route every request through a gateway; baseUrl and headers are aliases, and the long forms win when both are set.

Watch out

Vendor documentation that states no licence and includes no accuracy, pricing, or rate-limit data. It covers the evaluate pathway only, requires a TypeSafe API key from typesafe.ai, and its proxy example uses Cloudflare AI Gateway headers, so other gateways depend on their own header handling.

Questions about this entry

Short answers drawn from the linked project or page.

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