快速開始
三步完成第一次判定調用:郵箱驗證碼登入、建立 sk- 金鑰、替換官方 typesafe-sdk 的 base_url 與 api_key——五分鐘跑通。
三步接入,五分鐘跑通
STEP 2
2 · 建立 sk- API 金鑰
在控制台打開 API 金鑰 頁並點擊建立。明文金鑰(sk-...)僅展示一次——請立即複製保存。伺服器端只存 SHA-256 雜湊,丟失無法找回(重新建立一個即可)。詳見 API 金鑰。
STEP 3
3 · 替換 base_url 發起調用
把官方 typesafe-sdk 指向 EasyJev:base_url 改為 https://api.easyjev.online,api_key 換成你的 sk- 金鑰。其餘程式碼零改動——請求結構、異常類與 request_id 追蹤都保持官方契約。
閘道基地址(Base URL)
所有 API 請求都發往這一個源位址。它不隨模型變化——模型在請求體裡選。
https://api.easyjev.online
官方 SDK(Python)
from typesafe_sdk import Noul, TypeSafeClient # The only two edits: your sk- key from this site, and our base_url client = TypeSafeClient( api_key="sk-your-key", base_url="https://api.easyjev.online", ) result = client.system_one( state="User asks: can I get a refund for order #1024?", questions={"refund": Noul(instructions="Is this a refund request?")}, ) print(result.nouls["refund"].noul) # probability of "yes", e.g. 0.97
HTTP 直調(curl)
curl -X POST "https://api.easyjev.online/v1/systemone" \ -H "Authorization: Bearer sk-your-key" \ -H "Content-Type: application/json" \ -d '{ "model": "typesafe/jev-latest", "state": "User asks: can I get a refund for order #1024?", "questions": { "refund": {"type": "noul", "instructions": "Is this a refund request?"} } }'
接下來
- Python SDK 指南——三種題型、異常映射、多模態資產
- POST /v1/systemone 參考——全部欄位與處理語義
- 模型目錄——全部在售模型與即時價格
- GET /v1/balance——在程式碼裡查詢剩餘額度
- Agent 與 MCP——讓你的 AI Agent 自己讀這份文件