bigmodel

GLM-5.1

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

GLM-5.1 是智谱最新旗舰模型,代码能力大大增强,长程任务显著提升,能够在单次任务中持续、自主地工作长达 8 小时,完成从规划、执行到迭代优化的完整闭环,交付工程级成果。 在综合能力与 Coding 能力上,GLM-5.1 整体表现对齐 Claude Opus 4.6,并在长程自主执行、复杂工程优化与真实开发场景中展现出更强的持续工作能力,是构建 Autonomous Agent 与长程 Coding Agent 的理想基座。

Input / output modalities
文本 to 文本
Reference input / output price
Input¥6Output¥24per 1M tokens
Context window
200K
Added to catalog
Apr 8, 2026

Providers and pricing

ProviderInput lengthInput /MOutput /MCached /MContextMax outputDetails
智谱≤ 32K¥6¥24¥1.3200K128K
> 32K¥8¥28¥2
Other-A≤ 32K¥6¥24¥1.3200K128K
> 32K¥8¥28¥2
baidu≤ 32K¥6¥24¥1.3200K128K
> 32K¥8¥28¥2
Ali—¥6¥24¥1.3200K128K
Ali-three-party≤ 32K¥6¥24¥1.2200K128K
32K – 200K¥8¥28¥1.6

智谱

Latency
7.6s
Throughput
53274 tokens/s
Context
200K

Pricing

Input
¥6/M tokens
Output
¥24/M tokens
Cached
¥1.3/M tokens

Tiered pricing

Pricing varies by input token range.

0–32K Token

Input tier
¥6/M tokens
Output tier
¥24/M tokens
Cached tier
¥1.3/M tokens

32K–∞ Token

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

Specifications

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

Other-A

Latency
10.91s
Throughput
2565 tokens/s
Context
200K

Pricing

Input
¥6/M tokens
Output
¥24/M tokens
Cached
¥1.3/M tokens

Tiered pricing

Pricing varies by input token range.

0–32K Token

Input tier
¥6/M tokens
Output tier
¥24/M tokens
Cached tier
¥1.3/M tokens

32K–∞ Token

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

Specifications

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

baidu

Latency
10.78s
Throughput
79 tokens/s
Context
200K

Pricing

Input
¥6/M tokens
Output
¥24/M tokens
Cached
¥1.3/M tokens

Tiered pricing

Pricing varies by input token range.

0–32K Token

Input tier
¥6/M tokens
Output tier
¥24/M tokens
Cached tier
¥1.3/M tokens

32K–∞ Token

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

Specifications

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

Ali

Latency
3.67s
Throughput
151 tokens/s
Context
200K

Pricing

Input
¥6/M tokens
Output
¥24/M tokens
Cached
¥1.3/M tokens

Specifications

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

Ali-three-party

Latency
1.99s
Throughput
82 tokens/s
Context
200K

Pricing

Input
¥6/M tokens
Output
¥24/M tokens
Cached
¥1.2/M tokens

Tiered pricing

Pricing varies by input token range.

0–32K Token

Input tier
¥6/M tokens
Output tier
¥24/M tokens
Cached tier
¥1.2/M tokens
Cache read tier
¥0.6/M tokens
5-minute cache write tier
¥7.5/M tokens

32K–200K Token

Input tier
¥8/M tokens
Output tier
¥28/M tokens
Cached tier
¥1.6/M tokens
Cache read tier
¥0.8/M tokens
5-minute cache write tier
¥10/M tokens

Specifications

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

GLM-5.1 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.1", 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