# GLM-5

> GLM-5 is Z-AI's general-purpose foundation model for reasoning, coding, and agentic workloads, with a 128K context window and 32K output, supporting thinking mode, function calling, and structured outputs.

**ID**: `z-ai/glm-5`  
**Creator**: Zhipu AI  
**Category**: text  
**Context**: 128K tokens  
**Input**: $0  
**Output**: $0  
**Released**: 2026-04-15  
**Web page**: https://anyrouter.dev/model/z-ai/glm-5

**Input modalities**: text  
**Output modalities**: text  

**Tokenizer**: GLM

**Capabilities**: chat, reasoning, streaming, function-calling, thinking

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| z-ai-byok | $0 | $0 |
| opencode-zen-byok | $0.60/M | $2.20/M |
| opencode-go-byok | $1.40/M | $4.40/M |

## Benchmarks

- **GPQA Diamond**: 0.7
