Watch Jev decide
Jev Snake — watch the AI play live
Every tick the board goes to a real hosted decide call as one typed choice over the legal turns. You see latency, estimated cost and confidence — the same shape you'd use for routing or a tool-call guardrail. No API key required for the free demo (capped at 40 ticks/day per visitor).
decisions
0
last latency
—ms
Jev cost
$0.00000
length
3
confidence
—
Press play — watch Jev decide each turn live
0.0 decisions/sec · 0 input tokens · free anon cap 40/day
Decision stream
- press play — watch Jev decide live
The same demo is one Jev call
- Read the board — snake head, heading, food, body
- List the safe, non-reverse directions this tick
- Send it to Jev as one
choicequestion - Jev returns the direction (with confidence)
- Move one cell, then decide again next tick
one decision per tick · ~150–400ms · a fraction of a ¢ at retail rates
const res = await fetch("https://jevtypesafe.org/api/v1/decide", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.JEV_API_KEY}`, // jv_live_...
},
body: JSON.stringify({
state:
"Head (7,7) heading RIGHT. Food (7,10). Safe: up, right, down.",
questions: {
move: {
type: "choice",
instructions:
"Best direction? Head for food, don't hit a wall or yourself.",
criteria: {
up: "safe but not closer",
right: "toward the food",
down: "safe",
},
},
},
}),
});
const { answers } = await res.json();
// answers.move.choice → "right" (with calibrated probabilities)
step(answers.move.choice);This page's Play button hits a rate-limited demo route (POST /api/games/snake/tick). Production apps should call POST /api/v1/decide with a jv_live_ key from Account.
How this works
Nothing here is a hard-coded pathfinder. On each tick we build a short state string and a choice question whose criteria are only the currently legal turns (honest labels like “toward the food” vs “into the wall”). The hosted model returns one direction with a probability. If the free demo cap hits, sign in for monthly tokens or buy a small prepaid pack — same metering path as Tools.
This is an unofficial community playground. We are not affiliated with TypeSafe AI. Snake is a visible way to watch bounded decisions; production twins live under Tools and the hosted API guide.