0G Foundation tarafından
Next-generation model purpose-built for coding and agent workflows; 744B foundation.
203K
202.752 token
131K
131.072 token
$0.5042
1M token başına
$2.2704
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",
"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",
"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",
"messages": [{"role": "user", "content": "Hello!"}]
}'