# GLM-4.7

> GLM-4.7 is Z-AI's multilingual text generation model with a 131,072 token context window. Supports chat, instruction-following, multi-turn tool calling, and reasoning across 100+ languages.

**ID**: `z-ai/glm-4.7`  
**Creator**: Zhipu AI  
**Category**: text  
**Context**: 128K tokens  
**Pricing**: $0.14 / $0.28 per 1M · billed by your provider (BYOK)  
**Released**: 2025-04-10  
**Web page**: https://anyrouter.dev/model/z-ai/glm-4.7

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

**Tokenizer**: GLM

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

**Aliases**: `zai-org/glm-4.7`

## 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-4.7",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| aihubmix-byok | $0.14/M (list) | $0.28/M (list) |
| deepinfra-byok | $0.14/M (list) | $0.28/M (list) |
| z-ai-byok | $0.14/M (list) | $0.28/M (list) |
| Z-AI Coding Plan | $0.14/M (list) | $0.28/M (list) |
| ollama-byok | $0.14/M (list) | $0.28/M (list) |
| cline-byok | $0.14/M (list) | $0.28/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.7
- **HLE**: 0.1
- **τ²-Bench Telecom**: 0.9
- **SciCode**: 0.4
- **OTIS Mock AIME**: 0.8
- **SimpleQA (verified)**: 0.3

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