Jev-compatible API

Keep the Jev API. Lose the lock-in.

Jein speaks the Jev request format on top of Laya, an open-source decision model. Keep the TypeSafe SDK and the code built on it, switch the key, and run on a model no vendor can take away from you, hosted in the EU and free while we're in preview.

Free preview. Sign up with email, no credit card.

Your code stays

Point the TypeSafe SDK for Python or JavaScript at Jein with two environment variables. The request format is the one you already know.

An open model, no lock-in

Laya is open source. If you ever outgrow a hosted API, run the same model with the same API on your own servers. Nobody changes the terms under you.

Private, in the EU

Requests run on servers in the EU. The texts you send are processed and forgotten: never stored, never used for training.

Jein, Jev, or running Laya yourself

JeinJevLaya on your own server
Jev request format and TypeSafe SDKsYesYesAfter setting up laya-serve
Open model you can always take with youYesNoYes
Hosted in the EU, texts never storedYesNoIf you build it that way
Ready in minutesYesYesHours of setup
No server bill for idle hoursYesYesA server paid around the clock
Updates, uptime and monitoring handledYesYesAll on you
Free to startFree monthly allowance, no cardPay per tokenFree model, paid server

Thinking about running Laya yourself? See what self-hosting really costs.

Switch in three steps

  1. Get a free API key. Sign up with email; no card.
  2. Set two environment variables. The TypeSafe SDK picks them up.
  3. Send your first decision. The migration guide covers the details.
export TYPESAFE_BASE_URL=https://app.jein.dev
export TYPESAFE_API_KEY=YOUR_JEIN_API_KEY