bigmodel

GLM-5

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

GLM-5 是智谱新一代的旗舰基座模型,面向 Agentic Engineering 打造,能够在复杂系统工程与长程 Agent 任务中提供可靠生产力。在 Coding 与 Agent 能力上,GLM-5 取得开源 SOTA 表现,在真实编程场景的使用体感逼近 Claude Opus 4.5,擅长复杂系统工程与长程 Agent 任务,是通用 Agent 助手的理想基座。

Input / output modalities
文本 to 文本
Reference input / output price
Input¥4Output¥18per 1M tokens
Context window
200K
Added to catalog
Feb 12, 2026

Providers and pricing

ProviderInput lengthInput /MOutput /MCached /MContextMax outputDetails
智谱≤ 32K¥4¥18¥1200K128K
> 32K¥6¥22¥1.5
Ali≤ 32K¥4¥18¥1200K128K
> 32K – ≤ 200K¥6¥22¥1.5

智谱

Latency
9.1s
Throughput
39 tokens/s
Context
200K

Pricing

Input
¥4/M tokens
Output
¥18/M tokens
Cached
¥1/M tokens

Tiered pricing

Pricing varies by input token range.

0–32K Token

Input tier
¥4/M tokens
Output tier
¥18/M tokens
Cached tier
¥1/M tokens

32K–∞ Token

Input tier
¥6/M tokens
Output tier
¥22/M tokens
Cached tier
¥1.5/M tokens

Specifications

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

Ali

Latency
0.88s
Throughput
65 tokens/s
Context
200K

Pricing

Input
¥4/M tokens
Output
¥18/M tokens
Cached
¥1/M tokens

Tiered pricing

Pricing varies by input token range.

0–32K Token

Input tier
¥4/M tokens
Output tier
¥18/M tokens
Cached tier
¥1/M tokens

32K–200K Token

Input tier
¥6/M tokens
Output tier
¥22/M tokens
Cached tier
¥1.5/M tokens

Specifications

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

GLM-5 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", 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