impulse

GLM 4.7

Open weights

GLM-4.7 is Z.ai’s latest flagship model, featuring upgrades in two key areas: enhanced programming capabilities and more stable multi-step reasoning/execution.

API id glm-4.7Released 22 Dec 2025 (Dec 2025)
A newer model in this line is out: GLM 5.3, released 18 Aug 2026.
Amazon Bedrock retires it on 30 Mar 2027 (in 132 days). 8 hosts keep serving it.
Input / 1M
$0.60
at Z.ai
Output / 1M
$2.20
at Z.ai
Context window
200K
tokens
Max output
128K
tokens per reply
Hosts
9
11 listings
Released
Dec 2025
22 Dec 2025

Pricing

List prices at Z.ai, in US dollars per million tokens.

TierInput / 1MOutput / 1M
Standard$0.60$2.20
Cached input
82% off input
$0.11
Cache write, 5 minutes$0.00

What it costs a month

At Z.ai list prices, 30 days.

  • Chat assistant5,000 requests a day, 2K in / 0.5K out, cached$301
  • RAG over documents2,000 requests a day, 8K in / 0.6K out, cached$250
  • Coding agent1,000 requests a day, 40K in / 2K out, cached$440
  • Overnight batch20,000 requests a day, 4K in / 0.4K out$1,968
Use your own numbers

Where to run it

9 hosts serve GLM 4.7. The comparison is on blended price, 3 parts input to 1 part output.

HostIn / out per 1M
Z.aiLab API
glm-4.7
$0.60 / $2.20
DeepInfraInference
GLM-4.7
$0.40 / $1.75
−26% vs headline
GMI CloudInference
GLM-4.7-FP8
$0.40 / $2.00
−20% vs headline
Together AIInference
GLM-4.7
$0.45 / $2.00
−16% vs headline
glm-4.7-maas
$0.60 / $2.20
zai.glm-4.7
$0.60 / $2.20
Retires 30 Mar 2027
BasetenInference
GLM-4.7
$0.60 / $2.20
Novita AIInference
glm-4.7
$0.60 / $2.20
Fireworks AIInference
glm-4p7
$0.60 / $2.20
Show 2 more listings: regions, snapshots and variants
Amazon Bedrock
Mantle
zai.glm-4.7
$0.60 / $2.20
Retires 30 Mar 2027
Fireworks AI
Alias
glm-4p7
$0.60 / $2.20

Capabilities

Core

  • Streaming
  • Function calling
  • JSON mode
  • Structured outputs

Multimodal

  • Vision
  • Image input
  • Audio
  • Image generation
  • Video

Advanced

  • Reasoning
  • Tool calling
  • MCP
  • Prompt caching
  • Batch API
  • Embeddings
Takes in
Text
Produces
Text
Features
Prompt caching
Open weights
License: MIT
Runs in about 860 GB of GPU memory

Cheaper alternatives

Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.

Same model, cheaper host

  • DeepInfra
    GLM-4.7
    $0.40 / $1.75
    26% less
  • GMI Cloud
    GLM-4.7-FP8
    $0.40 / $2.00
    20% less
  • Together AI
    GLM-4.7
    $0.45 / $2.00
    16% less

Smaller Zhipu AI models

No cheaper Zhipu AI model keeps its key capabilities.

Other frontier labs

  • Gemini 3.5 Flash Lite
    Google · on Google AI Studio
    $0.30 / $2.50
    Has every key capability
    15% less
  • GPT-5.4 Nano
    OpenAI · on OpenAI
    $0.20 / $1.25
    Has every key capability
    54% less
  • Claude Haiku 5.5
    Anthropic · on Anthropic
    $0.10 / $0.50
    Has every key capability
    80% less
  • GPT-6 Luna
    OpenAI · on OpenAI
    $0.10 / $0.50
    Has every key capability
    80% less

Open-weight picks

  • Motif 3
    Independent · on ai&
    $0.50 / $2.00
    Has every key capability
    13% less
  • GLM 5.3
    Zhipu AI · on CLF AI Gateway
    $0.56 / $1.76
    Has every key capability
    14% less
  • DeepSeek V4 Pro
    DeepSeek · on CLF AI Gateway
    $0.528 / $1.58
    Has every key capability
    21% less
  • Kimi K2.7 Code
    Moonshot AI · on CLF AI Gateway
    $0.38 / $1.60
    Has every key capability
    31% less

Model line

Newer and older versions, at each lab's own price.

  1. Aug 2026GLM 5.3Latest$1.40 / $4.40
  2. Jun 2026GLM 5.2$1.40 / $4.40
  3. Apr 2026GLM 5.1$1.40 / $4.40
  4. Feb 2026GLM 5$1.00 / $3.20
  5. UndatedGLM 4.7.251222Not listed
  6. Dec 2025GLM 4.7This page$0.60 / $2.20
  7. Sep 2025GLM 4.6$0.60 / $2.20
  8. Jul 2025GLM 4.5$0.60 / $2.20

Call it

Using Z.ai's API.

Python
from litellm import completion

response = completion(
    model="zai/glm-4.7",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Quick answers

How much does GLM 4.7 cost?

On Z.ai, GLM 4.7 costs $0.60 per million input tokens and $2.20 per million output tokens. Cached input costs $0.11 per million tokens. The cheapest host is DeepInfra, at $0.40 per million input tokens and $1.75 per million output tokens.

Which APIs offer GLM 4.7?

GLM 4.7 runs on 9 APIs: Z.ai, DeepInfra, GMI Cloud, Together AI, Vertex AI, Amazon Bedrock, Baseten, Novita AI and Fireworks AI.

What is GLM 4.7's context window?

200K tokens, with up to 128K tokens in one reply.

Is GLM 4.7 being retired?

Amazon Bedrock retires it on 30 Mar 2027. 8 hosts keep serving it.

Is there a newer version of GLM 4.7?

Yes. GLM 5.3 is the newest model in this line, released on 18 Aug 2026.

What are cheaper alternatives to GLM 4.7?

Models that cost less and keep most of what it can do: Gemini 3.5 Flash Lite on Google AI Studio (15% less), GPT-5.4 Nano on OpenAI (54% less) and Motif 3 on ai& (13% less). GLM 4.7 itself costs 26% less on DeepInfra. Savings are on a mix of 3 input tokens to 1 output token.

When was GLM 4.7 released?

Zhipu AI released it on 22 Dec 2025.

What is GLM 4.7's API model id?

Use glm-4.7 with Z.ai. Other hosts use their own ids: GLM-4.7 on DeepInfra, GLM-4.7-FP8 on GMI Cloud, GLM-4.7 on Together AI, glm-4.7-maas on Vertex AI.

Sources

Raw catalog entry for glm-4.7 on Z.ai
{
  "cache_creation_input_token_cost": 0,
  "cache_read_input_token_cost": 1.1e-7,
  "input_cost_per_token": 6e-7,
  "output_cost_per_token": 0.0000022,
  "litellm_provider": "zai",
  "max_input_tokens": 200000,
  "max_output_tokens": 128000,
  "mode": "chat",
  "supports_function_calling": true,
  "supports_prompt_caching": true,
  "supports_reasoning": true,
  "supports_tool_choice": true,
  "source": "https://docs.z.ai/guides/overview/pricing"
}