For the complete documentation index, see llms.txt. This page is also available as Markdown.

Jev

This documentation is valid for the following list of our models:

  • typesafe/jev

Model Overview

Jev is TypeSafe's "System One" model: a structured decision model that returns typed answers (yes/no, choice, score, box) with calibrated probabilities instead of generated text. It is built for routing, classification, triage and other in-app decision points where a fast, predictable verdict matters more than prose — typically answering in well under a second. Context window is 262,144 tokens.

typesafe/jev is the floating id: it always resolves to the current release, today Jev 1.14, and moves with each new one. Pin typesafe/jev-1.14 or typesafe/jev-1.13 when you need the behaviour to stay put.

Version 1.14 reads experimental images and adds the box question — where something is in an image. See Jev 1.14 for how to send them.

How to make the first API call

1️⃣ Required setup (don’t skip this) ▪ Create an account: Sign up on the AI/ML API website (if you don’t have one yet). ▪ Generate an API key: In your account dashboard, create an API key and make sure it’s enabled in the UI.

2️ Copy the code example At the bottom of this page, pick the snippet for your preferred programming language (Python / Node.js) and copy it into your project.

3️ Update the snippet for your use case ▪ Insert your API key: replace <YOUR_AIMLAPI_KEY> with your real AI/ML API key. ▪ Select a model: set the model field to the model you want to call. ▪ Provide input: put the content to evaluate in state and describe what to decide in questions.

4️ (Optional) Tune the request See the API schema below for the four question types (noul, choice, score, box) and their criteria.

5️ Run your code Run the updated code in your development environment.

API Schema

post
Body
or
Responses
200Success
application/json
modelstringRequired

Resolved model version that answered.

post/v1/decisions
POST /v1/decisions HTTP/1.1
Host: api.aimlapi.com
Content-Type: application/json
Accept: */*
Content-Length: 307

{
  "model": "typesafe/jev",
  "state": "Help! My payments have been failing for 3 days.",
  "questions": {
    "ANY_ADDITIONAL_PROPERTY": {
      "type": "noul",
      "instructions": "text",
      "criteria": {
        "true": "text",
        "false": "text"
      }
    }
  },
  "images": [],
  "assets": {
    "a3f1c2e8-door": {
      "type": "image",
      "format": "jpg",
      "data_base64": "/9j/4AAQSkZJRg..."
    }
  }
}
200Success
{
  "model": "text",
  "answers": {
    "ANY_ADDITIONAL_PROPERTY": {
      "type": "noul",
      "noul": 1
    }
  },
  "usage": {
    "input_tokens": 1,
    "output_tokens": 1
  }
}

Code Example

Response

Last updated

Was this helpful?