z-ai
Z.ai: GLM 4.6
Compared with GLM-4.5, this generation brings several key improvements: Longer context window: The context window has been expanded from 128K to 200K tokens, enabling the model to handle more complex...
Context
203k tokens
Input / 1M tokens
$0.43
Output / 1M tokens
$1.74
Benchmark
—
Pricing
Input tokens$0.43 per 1M tokens
Output tokens$1.74 per 1M tokens
Cache read$0.08 per 1M tokens
Technical details
Model IDz-ai/glm-4.6
Context window203k tokens
Input modalitiestext
Output modalitiestext
TokenizerOther
Max output tokens131,072
Use with MegaBrain
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://getmegabrain.com/api/gateway/v1',
apiKey: process.env.MEGABRAIN_API_KEY,
})
const response = await client.chat.completions.create({
model: 'z-ai/glm-4.6',
messages: [{ role: 'user', content: 'Hello!' }],
})