TypeSafe: Jev
Decisionstypesafe/jev-latestJev. Evaluate conditions, select options, and score levels. Any of the three API formats below can call Jev. Jev accepts text, JSON objects, and arrays of text values. Images are not supported. Decisions calls are synchronous.
Context Window
64K
Released
2026-09-23
Capabilities
Decisions
Available Providers
TypeSafe
Supported Protocols
openai
Providers
TypeSafe
provider.type: "typesafe"Input Tokens
$0.042/M
Output Tokens
$0/M
Protocols
openai
/openai/v1/decisions/typesafe/v1/systemone/v1/decisionsDocumentation
Decisions guide for Jev: from the first request to handling low-confidence results in production.
- Quick startPrepare the connection details and make your first request.
- Scenario examplesTicket routing, content moderation, RAG filtering, structured data decisions.
- Integration via coding assistantCopy a prompt so a coding assistant integrates the model into your project.
- Decisions API referenceRequest fields, response format, limits and errors.
Code Examples
import jsonimport osimport urllib.requestbody = json.loads('''{"model": "typesafe/jev-latest","input": "I was charged twice. Please refund me today.","questions": [{"type": "predicate","name": "urgent","instructions": "Is this urgent?"},{"type": "choice","name": "department","instructions": "Which team should handle this?","choices": [{"value": "billing","description": "Payments and refunds"},{"value": "technical","description": "Bugs and outages"},{"value": "other","description": "None of the above"}]},{"type": "score","name": "severity","instructions": "How severe is this issue?","levels": [{"label": "Minor"},{"label": "Workaround available"},{"label": "Fully blocked"}]}]}''')request = urllib.request.Request("https://api.ofox.ai/v1/decisions", data=json.dumps(body).encode(), headers={"Authorization": "Bearer " + os.environ["OFOXAI_API_KEY"],"Content-Type": "application/json",})with urllib.request.urlopen(request) as response:print(json.load(response)["answers"])
Frequently Asked Questions
TypeSafe: Jev on Ofox.ai costs $0.042 per million input tokens and $0 per million output tokens. Pay-as-you-go, no monthly fees.
Direct HTTP requests use input and a questions array; answers are an array.
OpenAI SDK: base URL https://api.ofox.ai/openai/v1, input and a questions array; answers are an array.
TypeSafe SDK: base URL https://api.ofox.ai/typesafe, state and a questions map; answers use the same keys.
Evaluate conditions, select options, and score levels. Choose an API format below; each format can call either decision model.
Jev accepts text, JSON objects, and arrays of text values. Images are not supported. Decisions calls are synchronous.
TypeSafe: Jev supports the following capabilities: Decisions. Access all features through the Ofox.ai unified API.