GLM-4.7

Zhipu AIMCP Tool CallReasoning
zhipuai/glm-4.7Open Weights

Mature GLM model for dependable coding, reasoning, and structured agent tasks

Benchmark Pricing$0.45 / 1M in$2.09 / 1M out$0.09 cache read
Context: 204,800 tokens•Max Output: 131,072 tokens•Knowledge: 2025-04•Released: 2025-12-22

TECHNICAL SPECIFICATIONS

Context Window204,800204.8K tokens
Max Output131,072131.1K tokens
LicenseOpen SourceSelf-hostable
Input Modalities
Text
Function / Tool CallingSupported (MCP Ready)
Structured OutputsGuaranteed Schema

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

SWE-Bench Verifiedresolved
73.8
Terminal Bench 2.0score
33.4

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

15 providers
Zhipu AIglm-4.7
$0.45 / $2.09$0.09 cache
Cortecsglm-4.7-flash
$0.08 / $0.48
DInferenceglm-4.7
$0.45 / $1.65
Z.AI Coding Planglm-4.7
$0.00 / $0.00$0.00 cache
KUAE Cloud Coding PlanGLM-4.7
$0.00 / $0.00$0.00 cache
NanoGPTz-ai/glm-4.7:thinking
$0.40 / $1.93$0.08 cache
Meganovazai-org/GLM-4.7
$0.40 / $1.75$0.08 cache
MoarkGLM-4.7
$0.42 / $2.20
CrossModelz-ai/glm-4.7
$0.47 / $2.16$0.10 cache
Novita AIzai-org/glm-4.7
$0.60 / $2.20$0.11 cache
302.AIglm-4.7
$0.29 / $1.14
LLM Gatewaynovita/glm-4.7
$0.60 / $2.20$0.11 cache
Tempr Gatewayzai/glm-4.7-flashx
$0.07 / $0.40$0.01 cache
AI/ML APIz-ai/glm-4.7-flash
$0.17 / $0.69$0.01 cache
Venice AIzai-org-glm-4.7
$0.55 / $2.65$0.11 cache

Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.

Prompt Caching Active

This model supports prompt caching at $0.09 / 1M tokens, saving up to 80% on repetitive MCP tool definitions and system instructions.