GLM-4.7-FlashX

Zhipu AIMCP Tool CallReasoning
zhipuai/glm-4.7-flashxOpen Weights

Efficient GLM model for fast reasoning, coding, and agent workflows

Benchmark Pricing$0.07 / 1M in$0.45 / 1M out$0.01 cache read
Context: 200,000 tokens•Max Output: 131,072 tokens•Knowledge: 2025-04•Released: 2026-01-19

TECHNICAL SPECIFICATIONS

Context Window200,000200K 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-FlashX 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 200,000 tokens, this model can handle moderately large MCP tool definitions and multi-turn conversation logs comfortably.

API CALL INVOCATION EXAMPLE

// Example: Calling GLM-4.7-FlashX 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-flashx",
  messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});

console.log(response.choices[0].message.content);

PRICING BY PROVIDER

9 providers
Zhipu AIglm-4.7-flashx
$0.07 / $0.45$0.01 cache
LLM Gatewayzai/glm-4.7-flashx
$0.07 / $0.40$0.01 cache
Tempr Gatewayzai/glm-4.7-flashx
$0.07 / $0.40$0.01 cache
Vercel AI Gatewayzai/glm-4.7-flashx
$0.06 / $0.40$0.01 cache
Ofoxz-ai/glm-4.7-flashx
$0.07 / $0.40$0.01 cache
Merge Gatewayzai/glm-4.7-flashx
$0.07 / $0.40$0.01 cache
Z.AIglm-4.7-flashx
$0.07 / $0.40$0.01 cache
ZenMuxz-ai/glm-4.7-flashx
$0.07 / $0.44$0.01 cache
DevPass (LLM Gateway)glm-4.7-flashx
$0.07 / $0.40$0.01 cache

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

Prompt Caching Active

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