用简单 API,获得明确判断。

向 Jev 提交文本或 JSON 及判断问题,获得是非概率、分类或评分。使用账户 API Key,无需配置搜索服务。

管理 API Key

POST /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"
      ]
    }
  }
}'

所有响应使用 code, message, data。code = 0 表示成功,结果、用量和费用位于 data。

每次请求 1–40 个问题,最多 96 KB。模型:typesafe/jev-1.13。问题类型:noul(是非)、choice(分类)、score(评分)。每个账户最多 5 个并发请求、每分钟 60 次。

免费查询次数优先,每次成功请求扣 1 次。免费次数用完后,先预留每个问题 32K 输入 tokens 对应的付费积分,完成后按实际用量结算。1 付费积分 = 100 万输入 tokens。失败请求返还预留额度。

HTTP 400 参数错误 · 401 密钥无效 · 402 余额不足 · 413 请求过大 · 429 调用过频 · 502 上游失败 · 503 未配置服务。请勿在浏览器代码中暴露密钥。