GLM-4.5

Zhipu AIMCP Tool CallReasoning
zhipuai/glm-4.5Open Weights

Hybrid-reasoning GLM release that made the 4.5 line broadly useful

Benchmark Pricing$0.60 / 1M in$2.20 / 1M out$0.11 cache read
Context: 131,072 tokens•Max Output: 98,304 tokens•Knowledge: 2025-04•Released: 2025-07-28

TECHNICAL SPECIFICATIONS

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

MODEL CONTEXT PROTOCOL (MCP) READINESS

✓ GLM-4.5 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 131,072 tokens, this model can handle moderately large MCP tool definitions and multi-turn conversation logs comfortably.

STANDARDIZED BENCHMARKS & EVALS

Artificial Analysis Coding Indexindex
26.3
SciCodepercent correct
34.8
Terminal-Bench Hardsuccess rate
22

API CALL INVOCATION EXAMPLE

// Example: Calling GLM-4.5 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.5",
  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.5
$0.60 / $2.20$0.11 cache
NanoGPTz-ai/glm-4.5v:thinking
$0.60 / $1.80$0.30 cache
Novita AIzai-org/glm-4.5v
$0.60 / $1.80$0.11 cache
302.AIglm-4.5
$0.29 / $1.14
LLM Gatewaynovita/glm-4.5v
$0.60 / $1.80$0.11 cache
Tempr Gatewayzai/glm-4.5
$0.60 / $2.20$0.11 cache
AI/ML APIz-ai/glm-4.5v
$0.83 / $2.48$0.15 cache
AIHubMixglm-4.5v
$0.27 / $1.10
Abacuszai-org/GLM-4.5
$0.60 / $2.20
Vercel AI Gatewayzai/glm-4.5
$0.60 / $2.20$0.11 cache
UnoRouterglm-4.5-flash:free
$0.00 / $0.00
Merge Gatewayzai/glm-4.5
$0.60 / $2.20$0.11 cache
Hugging Facezai-org/GLM-4.5
$0.60 / $2.20
Z.AIglm-4.5
$0.60 / $2.20$0.11 cache
Kilo Gatewayz-ai/glm-4.5
$0.60 / $2.20$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.11 / 1M tokens, saving up to 82% on repetitive MCP tool definitions and system instructions.