# jev-preview

Jev is TypeSafe's structured decision model and the first System One model. It does not generate text. Send a state plus typed questions and it returns probabilities your code can branch on: choice picks one of your options, score places the state on a rubric you define, and noul is the probability that a statement is true. It is suited to routing, classification, verification, and ranking. One request can use 64,000 tokens, of which the state plus the longest question stays within 32,000. Input is text only. Output tokens are free. jev-preview tracks the newest release and moves ahead of jev-latest when a preview build exists. There is no separate preview right now, so it also points to jev-1.14.0. Call POST /typesafe/v1/systemone. Streaming is not supported.

TypeSafe Jev 是结构化决策模型，也是第一个 System One 模型。它不生成文本。提交一段 state 和若干类型化问题，它返回程序可以直接使用的判断和概率：choice 从给定选项里选一个，score 按你定义的量尺打分，noul 给出陈述为真的概率。适合路由、分类、校验和排序。单次请求上下文 6.4 万 token，其中 state 加上最长的一道题不超过 3.2 万 token。只接受文本，不支持图像、音频和视频。只按输入 token 计费，输出免费。jev-preview 指向最新发布，有预览构建时会先于 jev-latest。目前没有单独的预览版，和 jev-latest 一样指向 jev-1.14.0。调用 POST /typesafe/v1/systemone，不支持流式输出。

- 供应商: TypeSafe
- 计费方式: 按量计费
- 标签: 技术，分类
- 模型 ID: `jev-preview`
- 网页版: https://llmoxy.com/models/jev-preview

## 价格

价格以人民币（￥）计；按量计费的价格按每 1M tokens 计。

| API Key 分组 | 输入 |
| --- | --- |
| Jev | ￥0.168 |

## 快速调用

运行前先把环境变量 LLMOXY_KEY 设成你的 API 密钥。

### cURL

```bash
curl https://llmoxy.com/typesafe/v1/systemone \
  -H "Authorization: Bearer $LLMOXY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "jev-preview",
    "state": "Our Stripe integration has been failing for 3 days and we are losing sales. Please help ASAP.",
    "questions": {
      "team": {
        "type": "choice",
        "instructions": "Which team should handle this?",
        "criteria": {
          "billing": "Payments, invoices, refunds",
          "technical": "Bugs, outages, integrations",
          "sales": "Pricing, upgrades, new accounts"
        }
      },
      "urgent": {
        "type": "noul",
        "instructions": "Does the message convey urgency?"
      },
      "frustration": {
        "type": "score",
        "instructions": "How frustrated is the customer?",
        "criteria": ["Calm", "Frustrated", "Very angry"]
      }
    }
  }'
```

### Python

```python
import os
import requests

resp = requests.post(
    "https://llmoxy.com/typesafe/v1/systemone",
    headers={"Authorization": f"Bearer {os.environ['LLMOXY_KEY']}"},
    json={
      "model": "jev-preview",
      "state": "Our Stripe integration has been failing for 3 days and we are losing sales. Please help ASAP.",
      "questions": {
        "team": {
          "type": "choice",
          "instructions": "Which team should handle this?",
          "criteria": {
            "billing": "Payments, invoices, refunds",
            "technical": "Bugs, outages, integrations",
            "sales": "Pricing, upgrades, new accounts"
          }
        },
        "urgent": {
          "type": "noul",
          "instructions": "Does the message convey urgency?"
        },
        "frustration": {
          "type": "score",
          "instructions": "How frustrated is the customer?",
          "criteria": ["Calm", "Frustrated", "Very angry"]
        }
      }
    },
)
resp.raise_for_status()
answers = resp.json()["answers"]
print(answers["team"]["choice"], answers["urgent"]["noul"], answers["frustration"]["score"])
```

### Node.js

```javascript
const resp = await fetch("https://llmoxy.com/typesafe/v1/systemone", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.LLMOXY_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "jev-preview",
    "state": "Our Stripe integration has been failing for 3 days and we are losing sales. Please help ASAP.",
    "questions": {
      "team": {
        "type": "choice",
        "instructions": "Which team should handle this?",
        "criteria": {
          "billing": "Payments, invoices, refunds",
          "technical": "Bugs, outages, integrations",
          "sales": "Pricing, upgrades, new accounts"
        }
      },
      "urgent": {
        "type": "noul",
        "instructions": "Does the message convey urgency?"
      },
      "frustration": {
        "type": "score",
        "instructions": "How frustrated is the customer?",
        "criteria": ["Calm", "Frustrated", "Very angry"]
      }
    }
  }),
});
const { answers } = await resp.json();
console.log(answers.team.choice, answers.urgent.noul, answers.frustration.score);
```

## 接口

- System One: `POST https://llmoxy.com/typesafe/v1/systemone`

## 常见问题

### jev-preview 在 LLMoxy 上怎么收费？

按量计费，令牌分组「Jev」的价格：输入 ￥0.168 / 1M tokens。

### 怎么调用 jev-preview？

在 LLMoxy 控制台创建 API 密钥，请求时把 model 设为 jev-preview，发到以下接口：System One POST https://llmoxy.com/typesafe/v1/systemone。

### jev-preview 可以用哪些令牌分组？

令牌分组决定调用价格：在控制台创建 API 密钥时选择分组，用这个密钥的调用都按该分组的价格计费。jev-preview 可用的分组：Jev。

### 需要海外信用卡吗？

不需要。先在控制台充值余额，调用时按实际用量从余额扣费。支持的付款方式：支付宝、微信支付、Visa/MasterCard、Apple Pay，以及 USDT、BTC、SOL、TRX 等加密货币。多币种支持。

## TypeSafe 的其他模型

- [jev-latest](https://llmoxy.com/models/jev-latest.md): 输入 ￥0.168 / 1M

## 相关链接

- [全部模型价格](https://llmoxy.com/pricing.md)
- [文档](https://llmoxy.com/docs/api-reference/api-overview.md)
- [llms.txt](https://llmoxy.com/llms.txt)

本文是 https://llmoxy.com/models/jev-preview 的 markdown 版本。
