bigmodel

GLM-5.2

bigmodel/glm-5.2
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

GLM-5.2 是面向长任务时代的旗舰模型。支持真正可用的 1M 上下文,实测可承载项目级工程上下文,长程任务执行更稳定、工程规范遵循更可靠,开发场景成功率进一步提升。一次任务即可完成“从需求到多端可部署产物”的完整开发链路。

Input / output modalities
文本 to 文本
Reference input / output price
Input¥8Output¥28per 1M tokens
Context window
1M
Added to catalog
Jun 17, 2026

Providers and pricing

ProviderInput /MOutput /MCached /MContextMax outputDetails
智谱¥8¥28¥21M128K
Other-A¥8¥28¥21M128K
Ali¥8¥28¥21M128K
baidu¥8¥28¥21M128K

智谱

Latency
20.12s
Throughput
64 tokens/s
Context
1M

Pricing

Input
¥8/M tokens
Output
¥28/M tokens
Cached
¥2/M tokens

Specifications

Context
1M
Max output
128K
Supported APIs
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

Other-A

Latency
5.39s
Throughput
40 tokens/s
Context
1M

Pricing

Input
¥8/M tokens
Output
¥28/M tokens
Cached
¥2/M tokens

Specifications

Context
1M
Max output
128K
Supported APIs
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

Ali

Latency
16.29s
Throughput
58 tokens/s
Context
1M

Pricing

Input
¥8/M tokens
Output
¥28/M tokens
Cached
¥2/M tokens

Specifications

Context
1M
Max output
128K
Supported APIs
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

baidu

Latency
0s
Throughput
0 tokens/s
Context
1M

Pricing

Input
¥8/M tokens
Output
¥28/M tokens
Cached
¥2/M tokens

Specifications

Context
1M
Max output
128K
Supported APIs
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

GLM-5.2 code examples and API guide

Modelmesh normalizes requests and responses across service providers behind one consistent API.

Modelmesh provides an OpenAI-compatible Completion API for more than 300 models and service providers. Call it directly, through the OpenAI SDK, or with supported third-party SDKs.

Modelmesh-specific request headers in these examples are optional. When supplied, your application can appear on the Modelmesh rankings.

Supported endpointsSelect an endpoint to switch the example below.
/v1/chat/completions
from openai import OpenAI API_KEY = "$SSY_API_KEY" client = OpenAI( base_url="https://router.shengsuanyun.com/api/v1", api_key=API_KEY, ) try: completion = client.chat.completions.create( model="bigmodel/glm-5.2", messages=[{"role": "user", "content": "Which number is larger, 9.11 or 9.8?"}], temperature=0.6, top_p=0.7, stream=True, ) response_text = "" for chunk in completion: if chunk.choices and chunk.choices[0].delta.content is not None: content = chunk.choices[0].delta.content print(content, end="", flush=True) response_text += content except Exception as error: print(f"Request failed: {error}")
                
              

Related Models