Dieselbe Entscheidungs-API verwenden
Sende model, state und questions mit einem hier erstellten API-Schlüssel an den /v1/systemone-Endpunkt von Jev AI Model. Setze model auf upstage/solar-decide; Antworten stehen unter data.result.answers.
Dieser Dienst berechnet max(1, ceil(Eingabetokens × 720 / 1.000.000)) Guthabenpunkte. Ausgabetokens werden nicht berechnet. Dieser Tarif ist getrennt vom OpenRouter-Anbieterpreis.
// 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": "upstage/solar-decide",
"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);