by 0G Foundation
GLM-5.1 is Zhipu AI's flagship model purpose-built for long-horizon tasks. 744B-parameter foundation supporting 200K context and up to 128K output tokens, with strong logical reasoning, long-text comprehension, and code generation. Tuned to balance performance with inference efficiency for intelligent interaction, enterprise applications, and developer assistance. Served via Alibaba Cloud Model Studio (DashScope, glm-5.1 tier).
207K
206,848 tokens
131K
131,072 tokens
1.8900 0G
per 1M tokens
7.5800 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.1",
"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.1",
"messages": [{"role": "user", "content": "Hello!"}],
"verify_tee": true
}Provider Routing
Control which provider handles your request using the provider parameter.
{
"model": "glm-5.1",
"messages": [{"role": "user", "content": "Hello!"}],
"provider": {
"sort": "latency",
"allow_fallbacks": true
}
}