Z.ai, released Dec 22, 2025

GLM 4.7

GLM 4.7 is an older flagship text model from Z.ai, released on December 22, 2025. It's built mainly for coding and multi-step agent work, with tool calling, structured JSON output, and reasoning all supported out of the box. Z.ai has since shipped the GLM 5.2 and 5.3 lineups, so 4.7 sits a generation back now and actually costs more to run than most of the newer 5.3 models.

Already paying for ChatGPT or Claude?

GLM 4.7 costs $1.75 per 1M output tokens. Use GPT-6 and Claude through your plan instead, $0 per token.

Get your API key Free plan, no card needed

Updated

GLM 4.7 pricing and specs

Input
$0.40per 1M tokens
Output
$1.75per 1M tokens
Cached input
$0.08per 1M tokens
Context window
203K202,752 tokens
Max output
131K131,072 tokens
Released
Dec 22, 2025
Accepts
Text
Features
Tool callingReasoningStructured outputsOpen weights

What GLM 4.7 is good at

  • Multi-step agent loops that lean on tool calling and structured JSON, since Z.ai built this release to hold together better across longer chains of actions.
  • Coding work that needs both a big context window and a huge output limit in a single reply.
  • Generating very long text in one pass without getting cut off by a small output cap.

Good to know

  • Text only. If you need to pass in images or anything non-text, you'll want a different model.
  • Reasoning is switched on by default, though you can dial it down when you've got simpler prompts that don't need it.
  • Most of Z.ai's newer 5.3 lineup (including the base GLM 5.3, GLM 5.3 Flash, and GLM 5.3 FlashX) is cheaper than GLM 4.7, with only GLM 5.3 Prime costing more. So unless you specifically want 4.7 or its open weights, check those newer models first.

GLM 4.7 vs similar models

API price per 1M tokens
ModelInputOutputPlan2APIContext
GLM 4.7$0.40$1.75Not available203K
GLM 5.4$1.40$4.40Not available1M
GLM 5.3 FlashX Legal$0.37$1.25Not available1M
GLM 5.3 Prime$1.68$5.28Not available1M
Gemini 3.1 Flash Lite$0.25$1.50$0 on Gemini1M
Qwen3.5 Plus 2026-04-20$0.30$1.80Not available1M

GLM 4.7 cost per month

Tokens a month at $0.40 input and $1.75 output per 1M
WorkloadAPI price
Side project2M in, 500K out$1.68
Production app25M in, 5M out$18.75
Agents at scale250M in, 50M out$188

FAQ

How much does the GLM 4.7 API cost?

GLM 4.7 costs $0.40 per 1M input tokens and $1.75 per 1M output tokens, and cached input costs $0.08 per 1M.

What is the GLM 4.7 context window?

GLM 4.7 takes 202,752 tokens of context, with up to 131,072 output tokens per request.

When was GLM 4.7 released?

Z.ai released GLM 4.7 on Dec 22, 2025.

Can I use GLM 4.7 with my subscription?

Plan2API turns Claude, ChatGPT, Gemini and Kimi subscriptions into one OpenAI-compatible API. GPT-6 and Claude models run through your ChatGPT or Claude plan at $0 per token instead.

Does GLM 4.7 always run with reasoning on?

By default, yes. You can turn it down in your request when you don't need the model working through extra reasoning steps.

Can I self-host GLM 4.7?

Yeah - Z.ai published the weights openly as zai-org/GLM-4.7, so you can try it out on an API and move it to your own setup later if you want.

More Z.ai models

All 18 Z.ai models

Already paying for ChatGPT or Claude? Use GPT-6 and Claude through your plan, $0 per token.

  • Free: 1 subscription, no daily cap, no card
  • Pro: $12 a month

GPT-6 and Claude at $0 per tokenFree plan, no card needed

Get your API key

Guides

80