# GLM-4.7

> GLM-4.7 is Z-AI's open-weight multilingual text generation model with a 131,072 token context window. It 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  
**Links**: [Weights on Hugging Face](https://huggingface.co/zai-org/GLM-4.7) · [Announcement](https://z.ai/blog/glm-4.7)  
**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) |
| cline-byok | $0.14/M (list) | $0.28/M (list) |
| openrouter-byok | $0.60/M (list) | $2.20/M (list) |
| vercel-byok | $0.60/M (list) | $2.20/M (list) |
| novita-byok | $0.60/M (list) | $2.20/M (list) |
| huggingface-byok | $0.14/M (list) | $0.28/M (list) |
| nousresearch-byok | $0.60/M (list) | $2.20/M (list) |
| infron-byok | $0.26/M (list) | $1.20/M (list) |
| requesty-byok | $0.60/M (list) | $2.20/M (list) |
| zenmux-byok | $0.29/M (list) | $1.16/M (list) |
| llmgateway-byok | $0.45/M (list) | $2.00/M (list) |
| orcarouter-byok | $0.14/M (list) | $0.28/M (list) |
| aimlapi-byok | $0.60/M (list) | $2.20/M (list) |
| nano-gpt-byok | $0.14/M (list) | $0.28/M (list) |
| edenai-byok | $0.14/M (list) | $0.28/M (list) |
| ofox-byok | $0.14/M (list) | $0.28/M (list) |
| fluence-byok | $0.44/M (list) | $1.94/M (list) |
| helicone-byok | $0.14/M (list) | $0.28/M (list) |
| qiniu-byok | $0.14/M (list) | $0.28/M (list) |
| jiekou-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).

## Model card

- License: MIT, open weights (https://huggingface.co/zai-org/GLM-4.7) [1]

### Links

- announcement: https://z.ai/blog/glm-4.7
- model card: https://huggingface.co/zai-org/GLM-4.7

### Sources

1. [GLM-4.7 model card](https://huggingface.co/zai-org/GLM-4.7) (accessed 2026-11-11)
2. [GLM-4.7 blog](https://z.ai/blog/glm-4.7) (accessed 2026-11-11)
