Skip to content

GLM 5.2

A balanced generalist for structured output, tool calling and mixed reasoning workloads where cost still matters.

Zhipu AIReasoningCodingavailable

Model ID

Pass this as the model field on every request.

modelglm-5.2
Provider
Zhipu AI
Context window
256K tokens
Max output
64K tokens
Access
All plans
Best for
General reasoning and structured generation

Endpoints

Both request shapes are accepted for this model.

  • /v1/chat/completionsOpenAI chat completions format
    available
  • /v1/messagesAnthropic message format
    available
Base URLhttps://api.prbycode.com/v1

At a glance

The numbers most teams compare before switching a route.

Context256K tokens
Input$0.60 / 1M
Output$2.20 / 1M
SpeedBalanced
StreamingSupported

Compare with

Other models in the catalog, side by side.

ModelContextInput / 1MOutput / 1M
Claude Sonnet 51M$3.00$15.00Compare
GLM 5.3 Flash256K$0.25$1.10Compare
DeepSeek V4 Pro256K$0.90$3.40Compare
DeepSeek V4.1 Flash256K$0.20$0.80Compare
  • Claude Sonnet 51M context · $3.00 in / $15.00 out
  • GLM 5.3 Flash256K context · $0.25 in / $1.10 out
  • DeepSeek V4 Pro256K context · $0.90 in / $3.40 out
  • DeepSeek V4.1 Flash256K context · $0.20 in / $0.80 out