z-ai
Z.ai: GLM 5
GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading...
Context
203k tokens
Input / 1M tokens
$0.60
Output / 1M tokens
$1.92
Benchmark
—
Pricing
Input tokens$0.60 per 1M tokens
Output tokens$1.92 per 1M tokens
Cache read$0.12 per 1M tokens
Technical details
Model IDz-ai/glm-5
Context window203k tokens
Input modalitiestext
Output modalitiestext
TokenizerOther
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-5',
messages: [{ role: 'user', content: 'Hello!' }],
})