Theme
Language
Text

GLM-5.2 API — how to connect and pay

A high-performance model tuned for a broad range of tasks.

Input ($/1M)
0.098
Output ($/1M)
0.308
Cache: read / write ($/1M)
0.0098 / 0.098
Context
1M

Prices in $, updated October 25, 2026.

Performance

Last 7 days: responses / client requests that reached a supplier. Retries of one request count once; input checks, disabled routes, and client cancellations do not lower model quality.

Availability

41.09%

client requests over 7 days

Average latency

5.32 s

to full response

TTFT

2.31 s

to first token

Speed

69 tok/s

generation speed, tok/s (median)

Strengths

  • OpenAI-compatible access
  • Single key for all models

Good for

  • Chat assistants
  • Automation
  • Text processing
  • Product integration

Capabilities

Context
1M tokens
Max output
128K tokens
Input
text
Tool calling
supported
JSON mode
not listed
Vision
no
Reasoning
thinking — Reasoning tokens are billed at the output rate

Improved GLM 5.x; 1M context, good English and agentic tool-use.

Providers

Comparison of public providers for this model: price, availability, TTFT, speed and cache. Metrics are from real traffic; where there is none, a probe or «—».

Provider
Defaultdefault
glm-5.2

Minimum charge per request — $0.0000143 (supplier rule): short requests are billed no less than this amount

Input $/1M
0.098
Output $/1M
0.308
Context
1M / 128K
Availability
11.48%
TTFT
3.40 s
Speed
—
Cache hit
1.48%
Caching
yes

Offers

One line per price level: our input / output price per 1M tokens, the discount off the official list price, and how many connected merchant subscription accounts are offering there.

:qwencloud
qwencloud
Typical price you actually pay: $0.0346 / $0.1086 per 1M tokens

Based on 325 paid requests, last 24 hours

$0.098 / $0.30893% off· 543 accounts· 11% filled
$0.1 / $0.314392.9% off· 8105 accounts· 0% filled
$0.196 / $0.61686% off· 3 accounts· 0% filled
$0.208 / $0.653885.1% off· 6513 accounts· 0% filled
$0.216 / $0.678984.6% off· 1 account· 0% filled
$0.4 / $1.2671.4% off· 2 accounts· 0% filled
official $1.4 / $4.4
:qwencloud-alibaba-cn
qwencloud-alibaba-cn
Typical price you actually pay: $0.0102 / $0.032 per 1M tokens

Based on 104 paid requests, last 7 days

$0.24 / $0.754382.9% off· 1 account· 0% filled
$0.39 / $1.2372.1% off· 1 account· 0% filled
$0.394 / $1.2471.9% off· 7 accounts· 0% filled
$1 / $3.1428.6% off· 13 accounts· 0% filled
official $1.4 / $4.4
:codebuddy
codebuddy
Typical price you actually pay: $0.1062 / $0.3337 per 1M tokens

Based on 128 paid requests, last 24 hours

$0.11 / $0.345892.1% off· 271 accounts· 23% filled
$0.114 / $0.358391.9% off· 600 accounts· 0% filled
$0.12 / $0.377291.4% off· 1 account· 14% filled
$0.13 / $0.408690.7% off· 1354 accounts· 8% filled
$0.14 / $0.4490% off· 204 accounts· 8% filled
$0.144 / $0.452689.7% off· 2 accounts· 0% filled
official $1.4 / $4.4
:codebuddy-cn
codebuddy-cn
$0.038 / $0.119597.3% off· 55 accounts
$0.04 / $0.125897.1% off· 1170 accounts
$0.042 / $0.13297% off· 4 accounts
$0.114 / $0.358391.9% off· 1 account
$0.124 / $0.389891.1% off· 33 accounts
$0.126 / $0.39691% off· 195 accounts
official $1.4 / $4.4

Key facts

The live catalog contains 74 text models.

GLM-5.2: 0.098 $ input and 0.308 $ output per 1M tokens.

FAQ about the GLM-5.2 API

How much does GLM-5.2 cost?

The price of GLM-5.2: $0.098 per 1M input · $0.308 per 1M output tokens. Pay only for the tokens you use — no subscriptions or flat fees.

Is it compatible with the OpenAI SDK?

Yes, the API is fully OpenAI-compatible. Just change base_url to https://getvibeapi.com/v1 and set your key — the rest of the code stays the same.

Connect GLM-5.2 right now

Sign up in a minute, pay per use, ready-made code above.

Get API key