GLM 5.2 API Pricing Calculator

Track GLM-5.2 pricing with real-time alerts, compare providers, and monitor cost changes across long-context coding, reasoning, and agentic AI workloads.

Released 16 June 2026, GLM 5.2 is a text model from Z.ai. It pairs a 1,000,000-token context window with up to 131,072 tokens of output. Input is priced at $1.40 per million tokens through Z.ai.

Last updated Oct 18, 2026

Never miss an AI pricing or launch update

Get notified about new model launches, pricing changes, provider updates, deprecations, and cost-saving insights.

🔒 We respect your privacy. Unsubscribe anytime.

Model Details

Released
Jun 16, 2026
Context Length
1,000,000
Max Output
131,072

Where is GLM 5.2 a perfect fit?

GLM-5.2 is Z.ai's flagship open-weight reasoning model, built for long-horizon tasks, project-scale software engineering, and autonomous AI agents. It combines a 1M-token context window with strong coding, reasoning, and workflow automation capabilities.
- Repository-scale software engineering and codebase understanding
- Multi-step autonomous agents executing complex workflows
- Long-document analysis and knowledge-base reasoning
- Large-scale code generation, debugging, and refactoring
- Enterprise research and technical report generation
- Function calling and tool-driven automation
- Complex planning and multi-stage reasoning tasks
- Applications requiring very long context windows with competitive inference costs

Quick Model Estimate

(USD 1.4000 per 1M tokens)
(USD 4.4000 per 1M tokens)

Your GLM 5.2 Cost Estimate

💰 Total Cost

—

for 1000 input + 1000 output tokens

📥 Input (1000 × $1.400000) —
📤 Output (1000 × $4.400000) —

Cost Breakdown

📥 Input 📤 Output

Prices are watched for changes and checked against the provider's own page.

Pricing

Provider ↕
Modality ↕
Service Tier ↕
Input Price
(per 1M tokens)
↕
Output Price
(per 1M tokens)
↕
Cached Input
(per 1M tokens)
↕
Context Size ↕
View
Z.ai LogoZ.aiTextStandard$1.4000$4.4000$0.26001,000,000 tokens→

No longer offered by

The last prices each provider charged for GLM 5.2 before it stopped offering it. These are no longer on offer. Each row links to that provider's price history.

Provider ↕
Ended ↕
Modality ↕
Service Tier ↕
Input Price
(per 1M tokens)
↕
Output Price
(per 1M tokens)
↕
Cached Input
(per 1M tokens)
↕
Context Size ↕
View
Perplexity LogoPerplexity18th Sep 2026Provider stopped offering itTextStandard$1.4000$4.4000$0.14001,000,000 tokens→

Price changes

Every recorded change to GLM 5.2’s price, most recent first. Changes across all models are on the changes page.

  1. Perplexity cut the price of GLM 5.2, effective 23 August 2026.

    Cached input $0.26 → $0.14 per 1M tokens (-46.2%).

    Per-configuration detail on Perplexity →

Recent changes

When GLM 5.2 was newly listed on a provider, moved to legacy or deprecated, or retired.

  1. Discontinued

    Perplexity stopped offering Z.ai's GLM 5.2.

See all changes, new releases and retirements →

FAQs about GLM 5.2

How much does GLM 5.2 cost per 1M tokens?

GLM 5.2 costs $1.40 per million input tokens, and $4.40 per million output tokens.

What does a typical workload cost with GLM 5.2?

1,000 requests of 2,000 input and 500 output tokens each — 2,000,000 input and 500,000 output tokens in total — costs $5.00 with GLM 5.2 at its lowest rates. Use the calculator on this page for your own volumes.

Has GLM 5.2's price changed?

Yes, once: Perplexity cut it on 23 August 2026, from $0.26 to $0.14 per million cached input tokens.

Where can I use GLM 5.2?

GLM 5.2 is available through Z.ai, from $1.40 per million input tokens.

What is GLM 5.2's context window?

GLM 5.2 has a context window of 1,000,000 tokens, and returns up to 131,072 tokens in a single response.