0G Foundation tarafından
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 token
$0.04
1M token başına
—
Kararlar için geçerli değil
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 Doğrulaması
verify_tee ile zincir üzerinde imza doğrulaması talep edin. Yanıt, izlemede bir tee_verified alanı içerir.
{
"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
}Sağlayıcı Yönlendirme
X-0G-Provider-* istek başlıklarını kullanarak isteğinizi hangi sağlayıcının işleyeceğini belirleyin.
X-0G-Provider-Address bir sağlayıcıyı sabitler; X-0G-Provider-Identity, sağlayıcının üst akışlarından hangisine yönlendirme yapılacağını sabitler. Her iki değer de GET /v1/providers uç noktasındaki address ve provider_identity alanlarından gelir. Birlikte, bir sağlayıcının belirli bir üst akışını adreslerler. İkisi de gönderilmezse yönlendirme katmanı, tıpkı önceki gibi fiyata ve sağlık durumuna göre seçer.
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?"}}
}'Yalnızca özel modeller
Bu model Özel'dir. İstekleri bir TEE destekli sağlayıcıya yönlendirmek için X-0G-Provider-Trust-Mode: private başlığını ekleyin. İsteğe bağlıdır — varsayılan olarak uygulanmaz.
X-0G-Provider-Trust-Mode: private