Z.AI model API pricing
Z.AI GLM-5.2 API pricing
Direct answer
Z.AI GLM-5.2 API pricing is $1.40 per 1M input tokens and $4.40 per 1M output tokens in the ByteCosts provider pricing index. For an equal 1M input plus 1M output token plan, the listed token cost is $5.80. Context window: -. Prompt cache prices: read $0.260, write -, 1h write - per 1M tokens. The confidence grade is A: From official provider docs (price stated indirectly). The source was last checked 2026-07-09. At a reference workload of 1M input tokens and 250K output tokens per month, the listed token cost is $2.50 / month. This is a planning estimate; real invoices can differ because taxes, discounts, commitments, gateway fees, and non-token charges are excluded.
Open the pricing index - Z.AI / GLM-5.2 →
Pricing snapshot
| Field | Value |
|---|---|
| Provider | Z.AI |
| Model | GLM-5.2 |
| Input / 1M tokens | $1.40 |
| Output / 1M tokens | $4.40 |
| Cache read / 1M tokens | $0.260 |
| Cache write / 1M tokens | - |
| Cache write 1h / 1M tokens | - |
| Context window | - |
| Reference monthly workload | $2.50 / month |
The reference workload is 1M input tokens plus 250K output tokens per month. It excludes taxes, discounts, gateway fees, and non-token charges.
Reference workload examples
Each example is pure arithmetic from this committed record's input and output token prices. The assumptions are shown inline.
| Example | Assumed monthly tokens | Estimated token cost |
|---|---|---|
| Light reference | 1M input + 250K output tokens/month | $2.50 / month |
| Production reference | 10M input + 2.5M output tokens/month | $25.00 / month |
| Heavy reference | 100M input + 25M output tokens/month | $250 / month |
Examples exclude taxes, discounts, commitments, gateway fees, cache effects, and non-token charges unless those charges are part of the committed token price record.
GLM-5.2 pricing across providers
GLM-5.2 is listed by 2 providers in the ByteCosts index. Per-million-token list prices, lowest input first.
| Provider | Input / 1M | Output / 1M |
|---|---|---|
| Z.AI (this page) | $1.40 | $4.40 |
| Zhipu AI | $1.40 | $4.40 |
When this model is cost-effective
GLM-5.2 ranks 17 of 19 Z.AI records by combined list price ($5.80 for 1M input plus 1M output tokens). That puts it in the higher-priced third of this provider's committed records.
Cached input reads are listed at $0.260 per 1M tokens, 19% of the fresh input rate, so repeated cached prompts have a lower committed input-token cost than fresh prompts.
No context window is committed for this record, so there is no long-context cost signal to apply.
Cheaper alternatives
These records have a lower committed input+output list price than this page's record. Same-provider records and same-model cross-provider records are preferred when available.
| Record | Input / 1M | Output / 1M | Combined / 1M + 1M | Detail page |
|---|---|---|---|---|
| Z.AI GLM-4.7-Flash | $0 | $0 | $0 | /tools/ai-provider-pricing/zai--glm-4.7-flash |
| Z.AI GLM-4.5-Flash | $0 | $0 | $0 | /tools/ai-provider-pricing/zai--glm-4.5-flash |
| Z.AI GLM-4.6V-Flash | $0 | $0 | $0 | /tools/ai-provider-pricing/zai--glm-4.6v-flash |
Evidence and freshness
ByteCosts grades this row A. From official provider docs (price stated indirectly). The record was first tracked on 2026-07-09 and last checked on 2026-07-09.
The source URL is kept with the record so readers can verify the provider page before making a purchasing or architecture decision. Prices change often, so quote the last-checked date with any copied number.
Watch-outs
- No hidden-cost flags are attached to this source-backed record.
Price history
| When | Field | Was | Now | Change |
|---|---|---|---|---|
| 2026-07-09 | input | new | $1.40 | new |
Frequently asked questions
Is GLM-5.2 free to use?
This ByteCosts row is not marked free. Use the listed token rates and verify the provider source for discounts, commitments, and account-specific terms.
Does this page include all possible charges?
No. The page focuses on source-backed token pricing and known cache/context fields. It does not include taxes, enterprise commitments, gateway markups, storage, retrieval, fine-tuning, or platform fees unless those charges are present in the source-backed row.
Cite this page
Z.AI GLM-5.2 API pricing. ByteCosts. Updated 2026-07-09. https://bytecosts.com/tools/ai-provider-pricing/zai--glm-5.2/