# 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  
**Pricing**: $0.60 / $1.92 per 1M · billed by your provider (BYOK)  
**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

**Aliases**: `z-ai/glm-5-turbo`, `z-ai/coding-glm-5-turbo`

## Usage

**Endpoint**: `POST https://anyrouter.dev/api/v1/chat/completions`

```bash
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "z-ai/glm-5",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| aihubmix-byok | $0.60/M (list) | $1.92/M (list) |
| aihubmix-byok | $0.60/M (list) | $1.92/M (list) |
| z-ai-byok | $0.60/M (list) | $1.92/M (list) |
| opencode-zen-byok | $0.60/M (list) | $1.92/M (list) |
| opencode-go-byok | $0.60/M (list) | $1.92/M (list) |
| siliconflow-byok | $0.60/M (list) | $1.92/M (list) |
| commandcode-byok | $0.60/M (list) | $1.92/M (list) |

BYOK routes are billed by your own provider key — AnyRouter charges $0. Rates marked (list) are the provider's published list price.

## Benchmarks

- **GPQA Diamond**: 0.8
- **HLE**: 0.3
- **τ²-Bench Telecom**: 1.0
- **SciCode**: 0.5
- **OTIS Mock AIME**: 0.8

Benchmark data from [Epoch AI](https://epoch.ai/benchmarks) (CC-BY 4.0).
