# GLM 4.6 — Use via Hanzo AI API

> Compared with GLM-4.5, this generation brings several key improvements: Lon... Call via Hanzo's OpenAI-compatible API. Context: 205K.

GLM 4.6, through one API key.

[Get API key](https://platform.hanzo.ai/api-keys)[Try in Chat](https://hanzo.ai/chat)

Context Window

**205K**

In

**—**per million tokens

Out

**—**per million tokens

Z.ai

Model ID`z-ai/glm-4.6`

### Specifications

Context Window

205K

Modalities

text

Price

—

Model ID

z-ai/glm-4.6

## Quick start

z-ai/glm-4.6

—

TypeScript

```
import OpenAI from 'openai'
 
const client = new OpenAI({
  apiKey: process.env.HANZO_API_KEY,
  baseURL: 'https://api.hanzo.ai/v1'
})
 
const response = await client.chat.completions.create({
  model: 'z-ai/glm-4.6',
  messages: [{ role: 'user', content: 'Hello!' }]
})
 
console.log(response.choices[0].message.content)
```

[Get an API key →](https://platform.hanzo.ai/api-keys)

## More from Z.ai

[View all Z.ai models →](https://hanzo.ai/models/z-ai)

- [GLM 4.5 z-ai/glm-4.5GLM-4.5 is our latest flagship foundation model, purpose-built for agent-based applications. It leverages a Mixture-of-Experts (MoE) architecture and supports a context length of up to 128k tokens. GLM-4.5 delivers significantly...131K](https://hanzo.ai/models/z-ai/glm-4.5)
- [GLM 4.5 Air z-ai/glm-4.5-airGLM-4.5-Air is the lightweight variant of our latest flagship model family, also purpose-built for agent-centric applications. Like GLM-4.5, it adopts the Mixture-of-Experts (MoE) architecture but with a more compact parameter...131K](https://hanzo.ai/models/z-ai/glm-4.5-air)
- [GLM 4.5V z-ai/glm-4.5vGLM-4.5V is a vision-language foundation model for multimodal agent applications. Built on a Mixture-of-Experts (MoE) architecture with 106B parameters and 12B activated parameters, it achieves state-of-the-art results in video understanding,...66K](https://hanzo.ai/models/z-ai/glm-4.5v)
- [GLM 4.6V z-ai/glm-4.6vGLM-4.6V is a large multimodal model designed for high-fidelity visual understanding and long-context reasoning across images, documents, and mixed media. It supports up to 128K tokens, processes complex page layouts...131K](https://hanzo.ai/models/z-ai/glm-4.6v)
- [GLM 4.7 z-ai/glm-4.7GLM-4.7 is Z.ai’s latest flagship model, featuring upgrades in two key areas: enhanced programming capabilities and more stable multi-step reasoning/execution. It demonstrates significant improvements in executing complex agent tasks while...205K](https://hanzo.ai/models/z-ai/glm-4.7)
- [GLM 4.7 Flash z-ai/glm-4.7-flashAs a 30B-class SOTA model, GLM-4.7-Flash offers a new option that balances performance and efficiency. It is further optimized for agentic coding use cases, strengthening coding capabilities, long-horizon task planning,...200K](https://hanzo.ai/models/z-ai/glm-4.7-flash)

## Use GLM 4.6 via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.

[Get an API key](https://platform.hanzo.ai/api-keys)[Browse All Models](https://hanzo.ai/models)
