One agent session
1M input tokens and 100K output tokens, no caching.
- Input1M x $0.07 = $0.07
- Output0.1M x $0.40 = $0.04
$0.11per session
Z.ai - Closed weights
GLM-4.7-FlashX is a closed-weights model from Z.ai that costs $0.07 per 1M input tokens and $0.40 per 1M output tokens on the first-party API, with a 200K-token context window.
Last verified from docs.z.ai. All sources
| Item | Price / 1M tokens |
|---|---|
| Input | $0.07 |
| Output | $0.40 |
| Cache read | $0.01 |
Note: Listed under 'Other Pricing' on the pricing page. The GLM-4.7 model page's FlashX tab gives 200K context and 128K max output and calls it 'Lightweight, High-Speed, and Affordable'. The release date is left blank because the release notes have no FlashX entry. weights is closed because no FlashX weights repo exists; the free GLM-4.7-Flash has weights at huggingface.co/zai-org/GLM-4.7-Flash. The model code is not in the OpenAPI enum read today, so API model id follows the docs' lowercase naming.
glm-4.7-flashxzai/glm-4.7-flashxCovered on the GLM-4.7 series page as a text-only variant; Z.ai structured output is JSON mode without schema enforcement. Not stated means the provider's docs do not say either way. It is not the same as No. Checked against provider docs on . Compare capabilities across models.
Worked from the standard list rates above, with the math shown so you can swap in your own token counts.
1M input tokens and 100K output tokens, no caching.
$0.11per session
10,000 requests a day at 2K input and 500 output tokens each.
$3.40per day
$102.00 per 30-day month
90% of the input is read from the prompt cache. The one-time cache write premium is not included.
$0.056per session
| Model | Input / 1M | Output / 1M |
|---|---|---|
| GLM-4.7-FlashX (this page) | $0.07 | $0.40 |
| Gemini 2.5 Flash-LiteGoogle | $0.10 | $0.40 |
| GPT-4.1 nanoOpenAI | $0.10 | $0.40 |
| GPT-5 nanoOpenAI | $0.05 | $0.40 |
| Jamba2 MiniAI21 Labs | $0.20 | $0.40 |
| GLM-5.3-FlashZ.ai | $0.15 | $0.50 |
| GLM-4-32B-0414-128KZ.ai | $0.10 | $0.10 |
| GLM-4.6VZ.ai | $0.30 | $0.90 |
| GLM-4.5-AirZ.ai | $0.20 | $1.10 |
| GLM-5.3-FlashXZ.ai | $0.37 | $1.25 |
| GLM-4.5Z.ai | $0.60 | $2.20 |
GLM-4.7-FlashX costs $0.07 per 1M input tokens and $0.40 per 1M output tokens on Z.ai's first-party API, per docs.z.ai on October 17, 2026. Per 1M tokens, cache reads cost $0.01.
GLM-4.7-FlashX has a 200,000-token context window and returns up to 128,000 output tokens per response.
No. GLM-4.7-FlashX is a closed-weights model. You call it through Z.ai's API as glm-4.7-flashx or through Vercel AI Gateway as zai/glm-4.7-flashx.
Last verified from docs.z.ai.
Newsletter
One email per week. New model releases, price cuts and what they mean for your bill.