Back to Modelsby Z.ai
Z
GLM-5.1
GLMGLM-5.1 is a flagship LLM for agentic workflows, coding, and long-horizon reasoning tasks.
Free EndpointDownloadableApr 17, 2026open license28M API calls / 30d
Specifications
Context Length
131K
131,072 tokens
Input Price
Free
per 1M tokens
Output Price
Free
per 1M tokens
Modalities
1
text→text
Capabilities
text generationchatcodereasoningagenticfunction calling
Tags
agentic-aicodingreasoning
API Usage
1Router is fully OpenAI-compatible. Just set the base URL and use this model ID:
z-ai/glm-5.1cURL
curl https://api.1router.com/v1/chat/completions \
-H "Authorization: Bearer $ROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "z-ai/glm-5.1",
"messages": [{"role": "user", "content": "Hello!"}]
}'