TypeSafe Jev · Apigator で提供
Jev は判断のためのモデルです。任意のテキストや JSON と型付きの質問を渡すと、約 100 ms でキャリブレーション済みの確率付き構造化回答が返ります。プロンプト調整も出力のパースも不要です。
新規登録したすべての Apigator アカウントに自動で付与されます。既存アカウントの方は、このページからログインすると 1 回受け取れます。
回答はすべて、あなたが名付けた質問をキーにした JSON で返ります。選択・スコア・Yes/No の確率を、コードでそのまま読めます。
各回答に確率と信頼度が付きます。確信があれば自動処理、なければ人や大きなモデルに回せます。
リクエスト経路に直接組み込める速さ:振り分け、モデレーション、フィルタ、ランキング。
同じテキストに対して部署・緊急度・感情を 1 リクエストでまとめて質問。往復も課金も 1 回です。
入力 100 万トークンあたり $0.042、出力は無料。コーヒー 1 杯分で数百万件を分類できます。
新しいアカウントや契約は不要。今の Apigator キーと残高で、Jev も他のすべてのモデルも使えます。
"type": "choice" Choice(選択)
定義した選択肢(最大 255)から 1 つを選びます。選ばれた項目と、各選択肢の確率を返します。
"type": "score" Score(スコア)
記述した順序付きレベル(2〜10)で評価します。レベルの間にも入る確率加重スコアを返します。
"type": "predicate" Predicate(Yes/No)
Yes/No の命題が真である確率を 0〜1 で返します。
チャットモデルは書く。Jev は判断する。それぞれ得意なことに使いましょう。
| LLM チャット(GPT、Claude など) | Jev | |
|---|---|---|
| 出力 | 自由形式のテキスト | 質問ごとの型付き JSON 回答 |
| パース | JSON モード、正規表現、崩れたら再試行 | 不要 — 形式が保証される |
| どれくらい確か? | 信頼できる指標なし | すべての回答にキャリブレーション済み確率 + 信頼度 |
| レイテンシ | 数秒 | 約 100 ms |
| 料金 | 入力・出力トークンの両方に課金 | 入力 100 万トークンあたり $0.042、出力は無料 |
| 得意なこと | 文章作成、推論、会話 | 分類、振り分け、スコアリング、フィルタ、ガードレール |
💡 よくある使い方:すべてのリクエストを Jev で選別・振り分けし、文章生成が必要なものだけ LLM に渡す。
1 つのリクエストで、同じメッセージに 3 つの質問をします。
curl https://api.apigator.ai/v1/decisions \
-H "Authorization: Bearer $APIGATOR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "typesafe/jev-latest",
"input": "Help! My payouts have been failing for 3 days.",
"questions": [
{
"name": "department",
"type": "choice",
"instructions": "Which team should handle this?",
"choices": [
{ "value": "billing", "description": "Payments, invoicing, refunds" },
{ "value": "technical", "description": "Bugs, outages, integrations" },
{ "value": "sales", "description": "Pricing, upgrades, new accounts" }
]
},
{ "name": "is_urgent", "type": "predicate", "instructions": "Does this convey urgency?" },
{
"name": "frustration",
"type": "score",
"instructions": "How frustrated is the customer?",
"levels": [{ "label": "Calm" }, { "label": "Frustrated" }, { "label": "Very angry" }]
}
]
}' {
"model": "jev-1.13.0",
"answers": [
{
"type": "choice", "name": "department", "choice": "billing",
"probabilities": [
{ "value": "billing", "probability": 0.87 },
{ "value": "technical", "probability": 0.13 },
{ "value": "sales", "probability": 0.0 }
],
"confidence": 0.8
},
{ "type": "predicate", "name": "is_urgent", "probability": 0.95 },
{
"type": "score", "name": "frustration", "score": 1.04,
"probabilities": [
{ "value": 0, "label": "Calm", "probability": 0.0 },
{ "value": 1, "label": "Frustrated", "probability": 0.96 },
{ "value": 2, "label": "Very angry", "probability": 0.04 }
],
"confidence": 0.94
}
],
"usage": { "input_tokens": 402, "output_tokens": 73, "total_tokens": 475 }
} const { answers } = await res.json();
const a = Object.fromEntries(answers.map((x) => [x.name, x])); // answers come back in question order
if (a.is_urgent.probability > 0.8) pageOnCall();
if (a.department.confidence > 0.7) {
assignTo(a.department.choice); // "billing"
} else {
sendToHumanTriage();
} $0.042
入力 100 万トークンあたり
出力トークン:無料
上の例のような呼び出しは実測で入力 300〜400 トークンなので、無料の 100 万トークンで約 2,500〜3,000 回呼び出せます。その後は通常の Apigator 残高から従量課金 — サブスクリプションはありません。
このページのボタンから登録 — Jev 100 万トークンが自動で残高に追加されます。
ダッシュボードで API キーをコピー。
https://api.apigator.ai/v1/decisions に POST — または公式 SDK で下の 2 つの環境変数を設定。
pip install typesafe-sdk # or: npm install typesafe
export TYPESAFE_BASE_URL=https://api.apigator.ai/typesafe
export TYPESAFE_API_KEY=sk-your-apigator-key