由 0G Foundation 提供
Next-generation model purpose-built for coding and agent workflows; 744B foundation.
203K
202,752 個詞元
131K
131,072 個詞元
$0.5042
每 1M 詞元
$2.2704
每 1M 詞元
curl "https://router-api.0g.ai/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-d '{
"model": "glm-5",
"messages": [
{"role": "user", "content": "Hello!"}
],
"stream": true
}'TEE 驗證
使用 verify_tee 請求鏈上簽章驗證。回應的追蹤中包含 tee_verified 欄位。
{
"model": "glm-5",
"messages": [{"role": "user", "content": "Hello!"}],
"verify_tee": true
}供應商路由
使用 X-0G-Provider-* 請求標頭,控制哪個供應商處理您的請求。
curl "https://router-api.0g.ai/v1/chat/completions" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-H "X-0G-Provider-Sort: latency" \
-H "X-0G-Provider-Allow-Fallbacks: true" \
-d '{
"model": "glm-5",
"messages": [{"role": "user", "content": "Hello!"}]
}'