DevTk.AI

GLM-5.2

Z.AI

Updated August 2026. GLM-5.2 by Z.AI: $1.40/M cache-miss input, $4.40/M output tokens. Cached input: $0.26/M. 1.0M context, 128K max output. Function Calling & JSON Mode. Free calculator + compare 40+ models.

Input Price

$1.40

cache miss / 1M tokens

Cached Input

$0.26

per 1M tokens

Output Price

$4.40

per 1M tokens

Context Window

1.0M

tokens

Specifications

ProviderZ.AI
Model IDglm-5.2
Input Price$1.40 / 1M cache-miss tokens
Cached Input Price$0.26 / 1M tokens
Output Price$4.40 / 1M tokens
Context Window1.0M tokens
Max Output128K tokens
Capabilities
textfunction_callingstructured_output
Release Date2026-06-16
Pricing SourceOfficial Z.AI pricing
Price Verified2026-08-17 · GLM-5.3 was announced on 2026-08-14 and is available in Coding Plan, but pay-as-you-go API access and pricing are still coming soon. GLM-5.2 remains the latest priced USD API entry.
NotesLatest GLM model with published pay-as-you-go USD API pricing. GLM-5.3 is newer and available in Coding Plan, but its standard API access and token pricing are still coming soon.

Monthly Cost Estimates

Estimated monthly costs based on different daily usage levels (assuming 50% input / 50% output split). Input estimates use cache-miss pricing, so cache-heavy workloads can be lower.

Daily TokensMonthly CostAnnual Cost
10K $0.87 $10.44
50K $4.35 $52.20
100K $8.70 $104.40
500K $43.50 $522.00
1.0M $87.00 $1044.00

About GLM-5.2

GLM-5.2 is a large language model by Z.AI. It features a 1.0M token context window with up to 128K tokens of output per request. The model supports 3 capabilities: text, function_calling, structured_output.

At $1.40 per million cache-miss input tokens and $4.40 per million output tokens, GLM-5.2 is positioned as a mid-range option in the Z.AI lineup. Repeated prefix input can be charged at $0.26 per million cached tokens. Use our Token Counter to estimate how many tokens your prompts use, and our Pricing Calculator to compare costs across all models.

GLM-5.2 Key Details

  • Pricing: $1.40/M cache-miss input tokens, $0.26/M cached input tokens, $4.40/M output tokens
  • Context window: 1.0M tokens — one of the largest available
  • Max output: 128K tokens per response
  • Capabilities: text, function_calling, structured_output
  • Highlights: Latest GLM model with published pay-as-you-go USD API pricing. GLM-5.3 is newer and available in Coding Plan, but its standard API access and token pricing are still coming soon.
  • Released: 2026-06-16

Other Z.AI Models

Similar Price Range

Related Tools

FAQ

How much does GLM-5.2 cost?

GLM-5.2 costs $1.40 per million cache-miss input tokens and $4.40 per million output tokens. Cached input costs $0.26 per million tokens. For a typical workload of 100K input tokens/day and 50K output tokens/day, expect approximately $10.80/month before cache-hit savings.

What is GLM-5.2's context window?

GLM-5.2 supports a context window of 1.0M tokens. This means your combined input prompt and output response can be up to 1.0M tokens. The maximum output per response is 128K tokens.

Is GLM-5.2 good for my use case?

GLM-5.2 supports text, function_calling, structured_output. As a mid-range model, it balances capability and cost for most production use cases. Use our Pricing Calculator to compare with alternatives.