A small API for clear decisions.
Send text or JSON and typed questions to Jev for probabilities, choices or scores. Use your account API key; no search service is required.
Manage API keysPOST /api/v1/decisions
curl 'https://jevapi.net/api/v1/decisions' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "typesafe/jev-1.13",
"state": {
"ticket": "Checkout is broken."
},
"questions": {
"is_bug": {
"type": "noul",
"instructions": "Is the customer reporting a software defect?"
},
"team": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {
"billing": null,
"support": null,
"sales": null
}
},
"urgency": {
"type": "score",
"instructions": "How urgent is this?",
"criteria": [
"Low",
"Medium",
"High"
]
}
}
}'All responses use code, message, data. code = 0 means success. Read answers, usage and billing from data.
1–40 questions and up to 96 KB per request. Model: typesafe/jev-1.13. Types: noul, choice, score. Per account: 5 concurrent requests and 60 requests/minute.
Free requests are used first, one per successful request. Otherwise, paid credits for up to 32K input tokens per question are reserved, then settled by actual usage. 1 paid credit = 1 million input tokens. Failed requests release the reservation.
HTTP 400 invalid input · 401 invalid key · 402 insufficient balance · 413 request too large · 429 rate limit · 502 upstream failure · 503 service not configured. Never expose your key in browser code.