z-ai
Z.ai: GLM 4.6
Try in chat →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
205k tokens
Input / 1M tokens
$0.50
Output / 1M tokens
$2
Benchmark
—
Uptime & performance
Loading…
Pricing
Input tokens$0.50 per 1M tokens
Output tokens$2 per 1M tokens
Cache read$0.10 per 1M tokens
Apps and activity
Loading…
Technical details
Model IDz-ai/glm-4.6
Context window205k tokens
Input modalitiestext
Output modalitiestext
TokenizerOther
Max output tokens131,072
Use with MegaBrain
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://themegabrain.ru/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!' }],
})Ready to use Z.ai: GLM 4.6?
Try it in the browser first, then get an API key and start making requests in minutes.