Designed for developers
Connect Jev AI Model to your application
Move a tested question from the browser into your backend using the same state and question structure. The Jev AI Model workbench provides request examples in cURL, JavaScript, and Python, so you can inspect the payload before connecting it to an existing service. Create an API key in your account and send it as a Bearer token from your server.
A successful Jev AI Model API response includes structured answers and request usage information. Check the response status before reading the answers, record the request identifier for troubleshooting, and handle errors explicitly. Keep the API key out of browser code and public repositories. Your integration controls the next action, whether that is assigning a queue, requesting a review, or invoking another tool.
Web, API and evaluation share one credit balance and the same per-model rates. We reserve a budget before each call and settle actual input usage on success. Failed calls are refunded. Inspect the generated code and request examples before integrating.
POST /v1/systemone
typesafe/jev-1.13 · liquid/d1 · upstage/solar-decide · jaredpalmer/kev-4b · togethercomputer/tev1-4b-experimental · laya-english · laya-multilingual · laya-auto
// Server-side JavaScript (Node 20+ or Bun). Set JEV_API_KEY.
const response = await fetch("https://jevaimodel.net/v1/systemone", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.JEV_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "typesafe/jev-1.13",
"state": "I was charged twice for order A-4471. Please refund the duplicate payment.",
"questions": {
"route": {
"type": "choice",
"instructions": "Which team should handle this ticket? Use other when no option fits.",
"criteria": {
"billing": "Payments, charges and refunds",
"technical": "Bugs and product errors",
"account": "Login and account access",
"other": "None of these teams"
}
}
}
}),
});
const body = await response.json();
if (!response.ok || body.code !== 0) throw new Error(body.message);
console.log(body.data.result.answers);
console.log(body.data.creditsUsed);