GLM-5.1 is Zhipu AI's language model with a 203K context window and up to 64K output tokens, available from 4 providers, starting at $0.980 / 1M input and $3.08 / 1M output. Z AI's next-generation flagship agentic LLM with significantly stronger coding capabilities, vision support, and file input, achieving top performance on SWE-Bench.
Capabilities
Input3/5
Text✓
Image✓
Audio·
Video·
PDF✓
Output1/5
Text✓
Image·
Audio·
Video·
Embedding·
Capabilities6/13
Reasoning✓
Adaptive Reasoning·
Function Calling✓
Parallel Function Calling✓
Structured Outputs✓
Native JSON Schema✓
Web Search·
URL Context·
Computer Use·
Code Execution·
File Search·
Prompt Caching✓
Assistant Prefill·
Pricing by Provider
| Provider | Standard | ||
|---|---|---|---|
| Input $ / 1M | Output $ / 1M | Cache Read $ / 1M | |
OpenRouter | $0.980 | $3.08 | $0.182 |
Fireworks AI | $1.40 | $4.40 | $0.260 |
Hugging Face | $1.40 | $4.40 | N/A |
Vercel AI Gateway | $1.40 | $4.40 | $0.260 |
Cost Calculator
Preset:
Versions
| Version | Released | Context | Input / 1M | Output / 1M | Status |
|---|---|---|---|---|---|
| GLM-5.1 | 203K | $0.980 | $3.08 | Current | |
| GLM-5 | 203K | $0.573 | $1.92 | Available |