Skip to content
AI Dev Toolkit.
Esc
  • Loading…

Provider

GLM API pricing: every Z.ai model, per million tokens

Z.ai’s GLM API costs from $0.0605 (GLM 4.7 Flash) to $1.68 (GLM 5.3 Prime) per million input tokens and from $0.40 to $5.28 per million output tokens. Its newest model, GLM 5.3 FlashX Legal, costs $0.37 input and $1.25 output and was first listed on 2026-11-02. None of its models charges more for long prompts: the price is flat across the context window. Prices checked 2026-11-22.

Models
17
Cheapest input
$0.0605
Priciest input
$1.68
Largest context
1,048,576
With caching
16 of 17
Open weights
12 of 17

Filter and sort Z.ai models in the comparison table

Line-up

How much does each GLM model cost?

ModelInput / 1MOutput / 1MCached / 1MContextMax outputReleased
GLM 5.3 FlashX Legal$0.37$1.25$0.0751,048,576131,0722026-11-02
GLM 5.3 Prime$1.68$5.28$0.3361,000,000131,0722026-09-23
GLM 5.3 FlashX$0.37$1.25$0.0751,048,576131,0722026-09-18
GLM 5.3 Flash$0.15$0.50$0.031,048,575–2026-08-26
GLM 5.3$1.40$4.40$0.261,048,576–2026-08-18
GLM 5.2$1.40$4.40$0.261,048,576–2026-06-16
GLM 5.1$1.40$4.40$0.26202,752131,0722026-04-07
GLM 5V Turbo$1.20$4$0.24202,752131,0722026-04-01
GLM 5 Turbo$1.20$4$0.24202,752131,0722026-03-15
GLM 5$1$3.20$0.20202,752131,0722026-02-11
GLM 4.7 Flash$0.0605$0.40–131,072–2026-01-19
GLM 4.7$0.60$2.20$0.11204,800131,0722025-12-22
GLM 4.6V$0.30$0.90$0.055131,07232,7682025-12-08
GLM 4.6$0.50$2$0.10202,752131,0722025-09-30
GLM 4.5V$0.60$1.80$0.1165,53616,3842025-08-11
GLM 4.5$0.60$2.20$0.11131,07298,3042025-07-25
GLM 4.5 Air$0.13$0.85$0.025131,07298,3042025-07-25

Prices in US dollars per 1M tokens, newest first. Release dates are when our source first listed the model.

Cheapest

GLM 4.7 FlashZ.ai$0.0605 in · $0.40 out

Largest context

GLM 5.2Z.ai1,048,576 tokens

Newest

GLM 5.3 FlashX LegalZ.ai2026-11-02

Cheapest

What is the cheapest GLM model?

By blended price (three parts input to one part output), the cheapest is GLM 4.7 Flash at $0.1454 per million tokens, and the most expensive is GLM 5.3 Prime at $2.58: 18× as much. Picking the smallest model that does the job well is usually the biggest saving available, ahead of any discount.

The largest context window is GLM 5.2’s 1,048,576 tokens.

Discounts

Does Z.ai offer prompt caching or batch discounts?

16 of 17 of the line-up has a cached-input price, which helps chatbots and agents that resend the same instructions. 2 of 17 can run through a batch API at a discount, for work that can wait up to a day. 6 of 17 accept images as input.

  • None of its models charges more for long prompts: the price is flat across the context window.

Prompt caching calculator · Batch API calculator · LLM cost calculator

Compare

How do GLM prices compare with other providers?

The median Z.ai model costs $1 per million tokens blended. The providers closest to that are Kimi ($1.1375), Amazon Nova ($0.85) and Gemini ($1.3125).

Head to head: Kimi K3 vs GLM 5.3, Claude Sonnet 5.5 vs GLM 5.3.

History

How have GLM API prices changed?

  1. GLM 5.3 Flash · Price increase, +380% blended

    Input
    from $0.0399 to $0.15
    +276%
    Output
    from $0.0784 to $0.50
    +538%
  2. GLM 4.7 · Price increase, +36% blended

    Input
    from $0.40 to $0.60
    +50%
    Output
    from $1.75 to $2.20
    +26%
    Cached input
    from $0.08 to $0.11
    +38%
  3. GLM 5.1 · Price increase, +18% blended

    Input
    from $1.19 to $1.40
    +18%
    Output
    from $3.74 to $4.40
    +18%
    Cached input
    from $0.60 to $0.26
    −57%
  4. GLM 4.6V · Price increase

    Cached input
    from $0.05 to $0.055
    +10.0%
  5. GLM 5.3 Flash · Price cut, −79% blended

    Input
    from $0.15 to $0.0399
    −73%
    Output
    from $0.50 to $0.0784
    −84%
    Batch input
    from $0.024 to $0.023
    −4.2%
    Batch output
    from $0.069 to $0.068
    −1.4%

The latest 5 price moves. Every change is in the AI pricing changes log.

FAQ

GLM API questions

How much does the GLM API cost?

Z.ai’s 17 models range from $0.0605 to $1.68 per million input tokens and from $0.40 to $5.28 per million output tokens. The newest, GLM 5.3 FlashX Legal, costs $0.37 and $1.25. Estimate your own bill in the LLM cost calculator.

What is the cheapest GLM model?

By blended price (three parts input to one part output) it is GLM 4.7 Flash, at $0.0605 input and $0.40 output per million tokens. The most expensive is GLM 5.3 Prime, at $1.68 and $5.28.

Which GLM model has the largest context window?

GLM 5.2, with 1,048,576 tokens per request. The window is shared between your prompt and the reply.

Does Z.ai offer prompt caching or batch discounts?

In our data, 16 of 17 of Z.ai’s models have a published cached-input price and 2 of 17 have a published batch price. Both can cut costs substantially for repeated prompts or work that can wait.

Prices checked · Page updated

Sources: OpenRouter models API and LiteLLM model prices and context windows, checked daily. Not affiliated with Z.ai. Confirm critical numbers on the provider’s pricing page. See our methodology.

Keep exploring