by 0G Foundation
GLM-5 is a next-generation LLM purpose-built for coding and agent workflows, reaching open-source SOTA on complex systems engineering and long-horizon tasks with real-world programming quality approaching Claude Opus. Built on a new 744B-parameter foundation with asynchronous reinforcement learning and sparse attention, advancing from "writing code" to "engineering software systems". 198K context, 16K max output, 32K max reasoning chain. Served via Alibaba Cloud Model Studio (DashScope, glm-5 tier).
203K
202,752 tokens
16K
16,384 tokens
1.3000 0G
per 1M tokens
5.8700 0G
per 1M tokens
1
chatbot
0G Router normalizes requests and responses across providers for you. All endpoints follow the OpenAI API format.
Endpoint
Code Examples
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 Verification
If the provider runs inside a TEE (Trusted Execution Environment), you can request on-chain signature verification by setting verify_tee. The response will include a tee_verified field in the trace.
# Add verify_tee in the JSON body
{
"model": "glm-5",
"messages": [{"role": "user", "content": "Hello!"}],
"verify_tee": true
}Provider Routing
Control which provider handles your request using the provider parameter.
{
"model": "glm-5",
"messages": [{"role": "user", "content": "Hello!"}],
"provider": {
"sort": "latency",
"allow_fallbacks": true
}
}