GLM 4.7
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.
glm-4.7Released 22 Dec 2025 (Dec 2025)Pricing
List prices at Z.ai, in US dollars per million tokens.
| Tier | Input / 1M | Output / 1M | |
|---|---|---|---|
| Standard | $0.60 | $2.20 | |
| Cached input 82% off input | $0.11 | 82% off input | |
| 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
Where to run it
9 hosts serve GLM 4.7. The comparison is on blended price, 3 parts input to 1 part output.
| Host | In / out per 1M | Model id | |
|---|---|---|---|
Z.aiLab API glm-4.7 | $0.60 / $2.20 | glm-4.7 | |
DeepInfraInference GLM-4.7 | $0.40 / $1.75 −26% vs headline | GLM-4.7 | |
GMI CloudInference GLM-4.7-FP8 | $0.40 / $2.00 −20% vs headline | GLM-4.7-FP8 | |
Together AIInference GLM-4.7 | $0.45 / $2.00 −16% vs headline | GLM-4.7 | |
Vertex AICloud glm-4.7-maas | $0.60 / $2.20 | glm-4.7-maas | |
Amazon BedrockCloud zai.glm-4.7 | $0.60 / $2.20 Retires 30 Mar 2027 | zai.glm-4.7 | Retires 30 Mar 2027 |
BasetenInference GLM-4.7 | $0.60 / $2.20 | GLM-4.7 | |
Novita AIInference glm-4.7 | $0.60 / $2.20 | glm-4.7 | |
Fireworks AIInference glm-4p7 | $0.60 / $2.20 | glm-4p7 |
Show 2 more listings: regions, snapshots and variantsHide regional listings
| Amazon Bedrock | |||||||
| Mantle zai.glm-4.7 | $0.60 / $2.20 Retires 30 Mar 2027 | zai.glm-4.7 | Retires 30 Mar 2027 | ||||
| Fireworks AI | |||||||
| Alias glm-4p7 | $0.60 / $2.20 | glm-4p7 | |||||
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: MITRuns 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
- DeepInfra26% lessGLM-4.7$0.40 / $1.75
- GMI Cloud20% lessGLM-4.7-FP8$0.40 / $2.00
- Together AI16% lessGLM-4.7$0.45 / $2.00
Smaller Zhipu AI models
No cheaper Zhipu AI model keeps its key capabilities.
Other frontier labs
- 15% less
- 54% less
- 80% less
- 80% less
Open-weight picks
- 13% less
- 14% less
- 21% less
- 31% less
Model line
Newer and older versions, at each lab's own price.
Call it
Using Z.ai's API.
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
- Baseten pricing
- DeepInfra pricing
- Together AI pricing
- Z.ai pricing
- Vertex AI pricing
- Fireworks AI pricing
- Amazon Bedrock pricing
- LiteLLM model map
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"
}