Models
glm-5.1 β API, Pricing & Context Window | Vivgrid
glm-5.1 on Vivgrid: Zhipu AI's capable coding model with a 200K context window, function calling, and competitive pricing.
glm-5.1 is Zhipu AI's capable coding and reasoning model, offering a 200K-token context window and reliable function calling at a competitive price. It's a strong open-weight-style option for agentic coding workloads.
On Vivgrid, glm-5.1 is reachable through the unified, OpenAI-compatible endpoint, so it integrates cleanly alongside models from OpenAI, Anthropic, Google, and DeepSeek under one API key.
Specifications
| Provider | Zhipu AI |
| Model ID | glm-5.1 |
| Best for | Coding |
| Context window | 200,000 tokens |
| Max output | 128,000 tokens |
| Modalities | Text |
| Tool / function calling | Yes |
| Knowledge cutoff | 2026-03 |
| Acceleration | π Global (Centralized) |
Pricing
Pricing in USD per 1M tokens, matching the provider's rates.
| Input | Cached input | Output |
|---|---|---|
| $1.40 | $0.30 | $4.40 |
Quick start
Call glm-5.1 through Vivgrid's unified, OpenAI-compatible endpoint. Get an API key from the Vivgrid Console.
curl https://api.vivgrid.com/v1/chat/completions \
-H "Authorization: Bearer $VIVGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.1",
"messages": [
{ "role": "user", "content": "Say hello in English, Chinese and Spanish." }
],
"stream": true
}'Ideal use cases
- Cost-effective coding agents and CLIs
- Tool-calling workflows on Chat Completions
- General reasoning within a 200K-token context
- Teams diversifying beyond US-based providers
Related models
- kimi-k2.6 β alternative high-context coding model
- deepseek-v4-pro β flagship low-cost coding model
- minimax-m3 β another competitive coding option