z-ai
Z.ai: GLM 4.7
GLM-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...
Context
203k tokens
Input / 1M tokens
$0.40
Output / 1M tokens
$1.75
Benchmark
—
Pricing
Input tokens$0.40 per 1M tokens
Output tokens$1.75 per 1M tokens
Cache read$0.08 per 1M tokens
Technical details
Model IDz-ai/glm-4.7
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.7',
messages: [{ role: 'user', content: 'Hello!' }],
})