zhipuai/glm-4.7Open WeightsMature GLM model for dependable coding, reasoning, and structured agent tasks
TECHNICAL SPECIFICATIONS
MODEL CONTEXT PROTOCOL (MCP) READINESS
✓ GLM-4.7 natively supports OpenAI / Anthropic format tool calling and is fully compatible with MCP servers and agent loops.
MCP Context Window Recommendations
With a context capacity of 204,800 tokens, this model can handle moderately large MCP tool definitions and multi-turn conversation logs comfortably.
STANDARDIZED BENCHMARKS & EVALS
API CALL INVOCATION EXAMPLE
// Example: Calling GLM-4.7 via OpenAI SDK
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.ZHIPUAI_API_KEY,
});
const response = await client.chat.completions.create({
model: "zhipuai/glm-4.7",
messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});
console.log(response.choices[0].message.content);PRICING BY PROVIDER
Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.
This model supports prompt caching at $0.09 / 1M tokens, saving up to 80% on repetitive MCP tool definitions and system instructions.
MODEL RESOURCES
More Models by Zhipu AI
Alternative and family models from the same lab
Flagship GLM model for long-horizon coding, agents, and complex project delivery
Native multimodal GLM model for efficient coding and long-horizon agent tasks
Open flagship GLM for long-horizon coding agents and million-token context work