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.
API calls use paid credits. Browser runs remain free after sign-in, allowing you to refine the input and criteria before purchasing credits for an application integration. Read the request and response examples in the documentation alongside the generated code.
POST /v1/systemone
typesafe/jev-1.13
// 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);