0G Foundation tarafından
Zhipu AI next-generation open-source flagship purpose-built for long-horizon tasks; 1M lossless context. Strong coding and engineering: autonomous task decomposition, architecture design, full-stack development, integration testing, and multi-platform deployment.
1M
1.048.576 token
131K
131.072 token
$0.9
1M token başına
$3
1M token başına
curl "https://router-api.0g.ai/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-d '{
"model": "glm-5.2",
"messages": [
{"role": "user", "content": "Hello!"}
],
"stream": true
}'TEE Doğrulaması
verify_tee ile zincir üzerinde imza doğrulaması talep edin. Yanıt, izlemede bir tee_verified alanı içerir.
{
"model": "glm-5.2",
"messages": [{"role": "user", "content": "Hello!"}],
"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.
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.2",
"messages": [{"role": "user", "content": "Hello!"}]
}'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