# GLM-4.6

> GLM-4.6 is Z-AI's open-weight mixture-of-experts model with 355B total and 32B active parameters, under the MIT license. It has a 200K context window, up from 128K, and a 128K max output. It improves coding, tool use, and search-based agents.

**ID**: `z-ai/glm-4.6`  
**Creator**: Zhipu AI  
**Category**: text  
**Context**: 200K tokens  
**Pricing**: $0.14 / $0.28 per 1M · billed by your provider (BYOK)  
**Released**: 2025-10-01  
**Links**: [Weights on Hugging Face](https://huggingface.co/zai-org/GLM-4.6) · [Announcement](https://z.ai/blog/glm-4.6) · [AnyRouter release](https://anyrouter.dev/blog/releases/2026-07-31)  
**Web page**: https://anyrouter.dev/model/z-ai/glm-4.6

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

**Tokenizer**: GLM

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

**Aliases**: `zai-org/GLM-4.6`

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

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| aihubmix-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) |
| deepinfra-byok | $0.14/M (list) | $0.28/M (list) |
| huggingface-byok | $0.14/M (list) | $0.28/M (list) |
| cline-byok | $0.14/M (list) | $0.28/M (list) |
| openrouter-byok | $0.50/M (list) | $2.00/M (list) |
| vercel-byok | $0.60/M (list) | $2.20/M (list) |
| novita-byok | $0.55/M (list) | $2.20/M (list) |
| nousresearch-byok | $0.50/M (list) | $2.00/M (list) |
| infron-byok | $0.60/M (list) | $2.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.55/M (list) | $2.20/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) |
| fluence-byok | $0.37/M (list) | $1.34/M (list) |
| helicone-byok | $0.14/M (list) | $0.28/M (list) |
| poe-byok | $0.14/M (list) | $0.28/M (list) |
| qiniu-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

- **SciCode**: 0.4

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

## Model card

- Architecture: mixture of experts [2]
- Total parameters: 355B [2]
- Active parameters: 32B [2]
- Native context: 200000 tokens [1,3]
- License: MIT, open weights (https://huggingface.co/zai-org/GLM-4.6) [1]

### Strengths [1]

- Context window grown from 128K to 200K tokens
- Better coding, including front-end page generation
- Stronger tool use and search-based agents

### Use cases [1]

- Agentic coding in coding agents
- Search and tool-using agents
- Writing and role-play

### API notes [1,3]

- Supports tool use during inference
- Thinking toggle: enabled or disabled, enabled by default
- Up to 128K output tokens

### Links

- announcement: https://z.ai/blog/glm-4.6
- model card: https://huggingface.co/zai-org/GLM-4.6
- docs: https://docs.z.ai/guides/llm/glm-4.6
- Previous version: https://anyrouter.dev/model/z-ai/glm-4.5
- Next version: https://anyrouter.dev/model/z-ai/glm-4.7

### Sources

1. [zai-org/GLM-4.6 model card](https://huggingface.co/zai-org/GLM-4.6/raw/main/README.md) (accessed 2026-10-14)
2. [zai-org/GLM-4.5 README (lists GLM-4.6)](https://raw.githubusercontent.com/zai-org/GLM-4.5/main/README.md) (accessed 2026-10-14)
3. [GLM-4.6 - Z.AI Developer Document](https://docs.z.ai/guides/llm/glm-4.6) (accessed 2026-10-14)

## Source

- Upstream docs: https://z.ai/blog/glm-4.6
