GLM-5.2 Is Now Available — Open-Weight Frontier Intelligence

17 June 20263 min read
GLM-5.2 Is Now Available — Open-Weight Frontier Intelligence

GLM-5.2 from Z.AI is now available on Cencori as a native provider.

This is Z.AI's most capable model to date — with significant improvements in coding, agentic tasks, and long-horizon execution. We're adding it as a first-class provider with full BYOK support alongside OpenAI, Anthropic, and Google.

What Ships

Native Z.AI provider — bring your own API key (ZAI_API_KEY) and call GLM-5.2 through Cencori's existing gateway pipeline. No OpenRouter middleman, no custom integrations.

  • 1M context window — tested to handle project-scale codebases in a single pass, with stable long-task execution across hundreds of turns
  • Two reasoning effort levelsmax pushes the model's full reasoning capability; high balances performance and token efficiency. Controlled via the reasoning_effort parameter
  • 128K max output tokens — generates large codebases, full refactors, and multi-file implementations without truncation
  • Function calling, structured output, streaming, context caching — all supported out of the box
  • MIT-licensed open weights — available on Hugging Face at zai-org/GLM-5.2

How It Stacks Up

On long-horizon coding benchmarks GLM-5.2 is the strongest open-source model available:

BenchmarkGLM-5.2GLM-5.1Claude Opus 4.8GPT-5.5
Terminal-Bench 2.181.062.085.0
SWE-bench Pro62.158.4
FrontierSWE~toptrails Opus 4.8 by ~1%

It trails Claude Opus 4.8 by roughly one point on FrontierSWE, outperforms GPT-5.5 and Opus 4.7 across multiple benchmarks, and is the highest-ranked open-source model on all three eval suites.

Available Now

Codetext
import { Cencori } from 'cencori';
 
const cencori = new Cencori({ apiKey: process.env.CENCORI_API_KEY });
 
const response = await cencori.ai.chat({
  model: 'glm-5.2',
  messages: [
    {
      role: 'system',
      content: 'You are a senior software engineer.',
    },
    {
      role: 'user',
      content: 'Read the current project and produce a system architecture map.',
    },
  ],
  reasoning_effort: 'max',
});

Pricing

Same API pricing as GLM-5.1:

MetricPrice
Input$0.00105 / 1K tokens
Output$0.0035 / 1K tokens

Bring your own key. Set ZAI_API_KEY in your environment or configure it in your project settings. The model will appear in the model catalog and playground automatically.

Docs