z-ai
Z.ai: GLM 5.1
Try in chat →GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...
Context
205k tokens
Input / 1M tokens
$1.40
Output / 1M tokens
$4.40
Benchmark
—
Uptime & performance
Loading…
Pricing
Input tokens$1.40 per 1M tokens
Output tokens$4.40 per 1M tokens
Cache read$0.26 per 1M tokens
Apps and activity
Loading…
Technical details
Model IDz-ai/glm-5.1
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-5.1',
messages: [{ role: 'user', content: 'Hello!' }],
})Ready to use Z.ai: GLM 5.1?
Try it in the browser first, then get an API key and start making requests in minutes.