Z.ai
GLM 4.7 Flash
z-ai/glm-4.7-flashAs a 30B-class SOTA model, GLM-4.7-Flash offers a new option that balances performance and efficiency. It is further optimized for agentic coding use cases, strengthening coding capabilities, long-horizon task planning,...
Context
200K tokens
Input, 1M tokens
$0.07
Output, 1M tokens
$0.46
Benchmark
—
Uptime and speed
Loading…
Pricing
Charged from your prepaid balance for the tokens actually used.
Input tokens$0.07 per 1M tokens
Output tokens$0.46 per 1M tokens
Apps and activity
Loading…
Technical details
Model IDz-ai/glm-4.7-flash
Context window200K tokens
AcceptsText
ProducesText
TokenizerOther
Max output tokens117,964
How to connect
The API is OpenAI-compatible: the official SDKs, LangChain and any client with a "base URL" field work.
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-flash',
messages: [{ role: 'user', content: 'Hello!' }],
})Start using GLM 4.7 Flash
Create a free account, get a key in your dashboard and send your first request. Top up your balance when you need it.