Codestral 25.08 vs GLM-5.2

Codestral 25.08 and GLM-5.2 are both current production-tier models. Codestral 25.08 is meaningfully cheaper at $0.30 / $0.90 per 1M. GLM-5.2 has a 1M context window — about 4× the 256k of Codestral 25.08. GLM-5.2 leads on reasoning, general knowledge, long-context retrieval.

Specs side by side

Metric
Mistral AI
Codestral 25.08
Z.ai
GLM-5.2
Input price (per 1M)$0.3$1.4
Output price (per 1M)$0.9$4.4
Context window256k tokens1M tokens
Speed tierfastbalanced
Open weightsYesYes
EU regionYesNo
Free tierLa Plateformebigmodel.cn
Prompt cachingNoYes
Vision inputNoNo
Extended thinkingNoYes

When to choose each

Mistral AI Free tier

Choose Codestral 25.08 if…

  • Cost is a priority ($0.30 / $0.90 per 1M vs $1.4 / $4.4 per 1M)
  • EU data residency is required
  • HIPAA eligibility is required
Z.ai Free tier

Choose GLM-5.2 if…

  • You need 1M context (4× more than Codestral 25.08)
  • Reasoning is central to your workload
  • General knowledge is central to your workload

Benchmark delta

Codestral 25.08 leads on

Codestral 25.08 has no meaningful benchmark lead in this pair.

GLM-5.2 leads on

  • Reasoning
  • General knowledge
  • Long-context retrieval
  • Instruction following
  • Multilingual
  • Tool use

FAQ — Codestral 25.08 vs GLM-5.2

Codestral 25.08 vs GLM-5.2 — which is better?

Codestral 25.08 and GLM-5.2 are both current production-tier models. Codestral 25.08 is meaningfully cheaper at $0.30 / $0.90 per 1M. GLM-5.2 has a 1M context window — about 4× the 256k of Codestral 25.08. GLM-5.2 leads on reasoning, general knowledge, long-context retrieval. The right pick depends on your use case — see "When to choose each" above for a data-driven decision.

How does Codestral 25.08 pricing compare to GLM-5.2?

Codestral 25.08 costs $0.30 / $0.90 per 1M vs GLM-5.2 at $1.4 / $4.4 per 1M. Codestral 25.08 is cheaper on output tokens by roughly 389%. Both support prompt caching, which reduces effective cost by 80-90% on repeat system prompts.

Does Codestral 25.08 or GLM-5.2 have the bigger context window?

GLM-5.2 has a 1M-token context window — 4× the 256k context of Codestral 25.08. Enough for entire codebases, books, or multi-document RAG.

Is there a free tier for Codestral 25.08 or GLM-5.2?

Codestral 25.08: yes — Free tier for prototyping with rate limits. GLM-5.2: yes — Free tier with monthly token allowance.

Which is better for coding — Codestral 25.08 or GLM-5.2?

GLM-5.2 leads on coding benchmarks (Codestral 25.08: 90/100, GLM-5.2: 93/100). For production coding agents also weigh tool-use performance — Codestral 25.08 scores 78, GLM-5.2 scores 86.