由 0G Foundation 提供
Vela 2.0 9B (vllm-sr, open weights, Apache-2.0): a System One decision model for routing and guardrails, with Jev's request and response shape (POST /decisions: model/state/questions). Answers noul / choice / score questions with calibrated probabilities instead of text, plus set questions (every label above threshold) and span questions (labelled character offsets into the state, e.g. personal information or claims a supplied source does not support). Qwen3.5-based decoder (7.9B), 16,384-token input. Billed on input tokens only.
16K
16,384 個詞元
$0.04
每 1M 詞元
—
決策不適用
curl "https://router-api.0g.ai/v1/decisions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-d '{
"model": "vela-2.0-9b",
"state": "Hi, we were billed twice for March. Please refund the duplicate today or we will cancel our plan.",
"questions": {
"department": {
"type": "choice",
"instructions": "Which department should handle this?",
"criteria": {
"billing": "invoices, payments, refunds",
"technical": "bugs, outages",
"other": "everything else"
}
},
"urgency": {
"type": "score",
"instructions": "How urgent is this?",
"criteria": ["not urgent", "soon", "blocking"]
},
"churn_risk": {
"type": "noul",
"instructions": "Does the user threaten to cancel?"
}
}
}'TEE 驗證
使用 verify_tee 請求鏈上簽章驗證。回應的追蹤中包含 tee_verified 欄位。
{
"model": "vela-2.0-9b",
"state": "Please refund the duplicate charge or we will cancel.",
"questions": {"churn_risk": {"type": "noul", "instructions": "Does the user threaten to cancel?"}},
"verify_tee": true
}供應商路由
使用 X-0G-Provider-* 請求標頭,控制哪個供應商處理您的請求。
X-0G-Provider-Address 固定供應商;X-0G-Provider-Identity 固定要透過該供應商的哪個上游進行路由。這兩個值都來自 GET /v1/providers 回應中的 address 與 provider_identity 欄位。兩者搭配即可指定某個供應商的特定上游。若兩者都不傳送,路由會依價格與健康狀況挑選,和先前完全相同。
curl "https://router-api.0g.ai/v1/decisions" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-H "X-0G-Provider-Address: <PROVIDER_ADDRESS>" \
-H "X-0G-Provider-Identity: <UPSTREAM>" \
-H "X-0G-Provider-Sort: latency" \
-H "X-0G-Provider-Allow-Fallbacks: true" \
-d '{
"model": "vela-2.0-9b",
"state": "Please refund the duplicate charge or we will cancel.",
"questions": {"churn_risk": {"type": "noul", "instructions": "Does the user threaten to cancel?"}}
}'僅限私人模型
此模型為私密模型。若要將請求固定至 TEE 支援的供應商,請加上 X-0G-Provider-Trust-Mode: private 標頭。此為選擇性設定,並非預設套用。
X-0G-Provider-Trust-Mode: private