aiapicompareaiapicompare
aiapicompare › All models › GLM 5.2

GLM 5.2: API pricing compared

GLM 5.2 is available from 8 provider(s). Cheapest: UplinkSwitch at $0.240 per 1M input tokens and $0.600 per 1M output tokens. Context window: up to 1 048 576 tokens. Developer: Z.ai.

Strengths in the Arena leaderboard

🏆 Rank 30 · Math🏆 Rank 30 · Chinese🏆 Rank 35 · Overall🏆 Rank 35 · English🏆 Rank 36 · Creative writing🏆 Rank 37 · Instruction following🏆 Rank 37 · German🏆 Rank 38 · Hard prompts🏆 Rank 39 · Web & app building🏆 Rank 44 · Russian🏆 Rank 46 · Coding

Rankings: Arena (arena.ai, formerly LMArena), dataset lmarena-ai/leaderboard-dataset, licensed under CC BY 4.0, as of 2026-11-23. Excerpt; variants with different reasoning effort merged and matched to our prices by aiapicompare. Not affiliated with Arena and not a recommendation.

ProviderInput $/1MOutput $/1MContext
UplinkSwitch
glm-5.2
$0.240$0.6001MGo to provider ↗ Set up
OpenRouter
z-ai/glm-5.2
$0.620 +158 %$2.421.05MGo to provider ↗ Set up
DeepInfra
zai-org/GLM-5.2
$0.750 +212 %$2.401.05MGo to provider ↗ Set up
Kyma API
glm-5.2
$0.903 +276 %$3.081MGo to provider ↗ Set up
NanoGPT
TEE/glm-5.2
$1.25 +421 %$3.951.05MGo to provider ↗ Set up
CometAPI
glm-5.2
$1.40 +483 %$4.41—Go to provider ↗ Set up
Novita AI
zai-org/glm-5.2
$1.40 +483 %$4.401.05MGo to provider ↗ Set up
⚠ Far below the reference price – please check first
AnyModel⚠ 94% below reference
glm/glm-5.2
$0.075——Go to provider ↗ Set up

Sorted by price only – there are no paid placements. Data as of 2026-11-25 09:03 UTC. Prices in USD, excluding taxes. No guarantee.

Reference price: $1.31 per 1M tokens (blended 3:1), median of all providers · How we compare → · Wrong price? Report it

Price history (cheapest provider)

Price history is recorded daily – the chart appears after the first price change.

Quick start with UplinkSwitch

from openai import OpenAI
import os

client = OpenAI(base_url="https://api.uplinkswitch.com/v1", api_key=os.environ["UPLINKSWITCH_API_KEY"])
r = client.chat.completions.create(
    model="glm-5.2",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)

FAQ

Where is GLM 5.2 cheapest?

Currently at UplinkSwitch ($0.240 / 1M). Prices are updated daily; the provider’s website is authoritative.

How do I use GLM 5.2 in my tools?

All listed providers offer an OpenAI-compatible API. See the setup guide for Hermes Agent, VS Code, Cursor and more.

More models from Z.ai

GLM 5.3GLM 5.3 FlashGLM 5.1GLM 5GLM 4.7GLM 4.6VGLM 4.7 FlashGLM 4.5 AirGLM 5.3 FlashXGLM 4.5GLM 4.6GLM-5.3 Flash Uncensored