Zhipu: GLM 5.2API pricing
GLM-5.2 is Zhipu AI's open-weight successor to GLM-5.1, a 753B-parameter text model released under MIT. It is aimed at long-horizon tasks such as project-scale software engineering and offers several thinking effort levels.
- 每100万枚代币的价格
- $0.32 / $0.32input / output−94%
- 缓存的输入
- $0.10per 1M tokens
- 上下文
- 100万枚代币最大产出量为13.1万枚
- 服务提供商
- 26
- 最快
- 234 tok/sTensorX
服务提供商
26 providers ·
1M 背景
支持的参数8
- 抽样
温度top_ptop_klogit_bias- 处罚
存在惩罚- 输出
停止- 工具
工具工具选择
1M 上下文 · 131K 最大输出
支持的参数9
- 抽样
温度top_ptop_k- 处罚
存在惩罚- 输出
停止- 工具
工具工具选择- 推理
推理include_reasoning
- Route 1 · fp41M context · 943K max outputCache $0.0063 · 0.32 s · 175 tok/s · 100 %0.32 s · 175 tok/sInput $0.0073Cache read $0.0063Output $6.09Latency 0.32 sSpeed 175 tok/sUptime 100 %$0.0073 in$6.09 out
支持的参数14
- 抽样
温度top_klogit_bias- 处罚
频率惩罚存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
- Route 2 · fp41M context · 943K max outputCache $0.19 · 0.32 s · 174 tok/s · 100 %0.32 s · 174 tok/sInput $0.20Cache read $0.19Output $8.40Latency 0.32 sSpeed 174 tok/sUptime 100 %$0.20 in$8.40 out
支持的参数17
- 抽样
温度top_ptop_kmin_p种子logit_bias- 处罚
频率惩罚存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
1M 上下文 · 131K 最大输出
支持的参数13
- 抽样
温度top_ptop_k种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择
1M 上下文 · 131K 最大输出
支持的参数13
- 抽样
温度top_ptop_k种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择
229K 上下文 · 32K 最大输出
支持的参数11
- 抽样
温度top_ptop_k- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
1M 上下文 · 48K 最大输出
支持的参数5
- 抽样
种子logit_bias- 处罚
存在惩罚- 工具
工具工具选择- 未确认
温度停止
- Route 1 · fp41M context · 163K max outputCache $0.088 · 2.62 s · 44 tok/s · 100 %2.62 s · 44 tok/sInput $0.47Cache read $0.088Output $1.51Latency 2.62 sSpeed 44 tok/sUptime 100 %$0.47 in$1.51 out
支持的参数12
- 抽样
top_kmin_p种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning- 未确认
温度
- Route 2 · fp41M context · 163K max outputCache $0.11 · 0.69 s · 53 tok/s · 97.1 %0.69 s · 53 tok/sInput $0.59Cache read $0.11Output $1.89Latency 0.69 sSpeed 53 tok/sUptime 97.1 %$0.59 in$1.89 out
支持的参数16
- 抽样
温度top_ptop_kmin_p种子logit_bias- 处罚
重复惩罚频率惩罚存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
- Route 3 · fp41M context · 163K max outputCache $0.17 · 1.54 s · 61 tok/s · 98.7 %1.54 s · 61 tok/sInput $0.89Cache read $0.17Output $2.83Latency 1.54 sSpeed 61 tok/sUptime 98.7 %$0.89 in$2.83 out
支持的参数14
- 抽样
温度top_ptop_kmin_p种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
1M 上下文 · 131K 最大输出
支持的参数14
- 抽样
温度top_ptop_kmin_p种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
1M 上下文 · 最大输出 128K
支持的参数11
- 抽样
温度top_p- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
1M 上下文 · 943K 最大输出
支持的参数15
- 抽样
温度top_ptop_k种子- 处罚
重复惩罚存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
1M 上下文 · 262K 最大输出
支持的参数7
- 抽样
温度top_ptop_k- 工具
工具工具选择- 推理
推理include_reasoning- 未确认
停止
1M 上下文 · 262K 最大输出
支持的参数10
- 抽样
温度top_p- 输出
response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning- 未确认
停止
262K 上下文 · 32K 最大输出
支持的参数10
- 抽样
温度top_ptop_k- 处罚
重复惩罚存在惩罚- 输出
停止- 工具
工具工具选择- 推理
推理include_reasoning
- Route 1 · fp81M context · 131K max outputCache $0.20 · 0.81 s · 50 tok/s · 100 %0.81 s · 50 tok/sInput $1.01Cache read $0.20Output $3.19Latency 0.81 sSpeed 50 tok/sUptime 100 %$1.01 in$3.19 out
- Route 2 · fp81M context · 131K max outputCache $0.24 · 1.85 s · 42 tok/s · 100 %1.85 s · 42 tok/sInput $1.18Cache read $0.24Output $3.70Latency 1.85 sSpeed 42 tok/sUptime 100 %$1.18 in$3.70 out
- Route 3 · fp81M context · 131K max outputCache $0.49 · 0.69 s · 88 tok/s · 100 %0.69 s · 88 tok/sInput $2.43Cache read $0.49Output $7.62Latency 0.69 sSpeed 88 tok/sUptime 100 %$2.43 in$7.62 out
支持的参数14
- 抽样
温度top_ptop_k种子- 处罚
存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
1M 上下文 · 131K 最大输出
支持的参数13
- 抽样
温度top_ptop_k种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择
支持的参数13
- 抽样
温度top_ptop_k种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择
1M 上下文 · 131K 最大输出
支持的参数10
- 抽样
温度top_p- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
- Route 1 · fp81M context · 262K max outputCache $0.15 · 0.57 s · 121 tok/s · 100 %0.57 s · 121 tok/sInput $1.47Cache read $0.15Output $4.62Latency 0.57 sSpeed 121 tok/sUptime 100 %$1.47 in$4.62 out
- Route 2 · fp81M context · 262K max outputCache $0.15 · 0.91 s · 89 tok/s · 99.8 %0.91 s · 89 tok/sInput $1.47Cache read $0.15Output $4.62Latency 0.91 sSpeed 89 tok/sUptime 99.8 %$1.47 in$4.62 out
- Route 3 · fp81M context · 262K max outputCache $0.22 · 0.28 s · 304 tok/s · 99.8 %0.28 s · 304 tok/sInput $2.21Cache read $0.22Output $6.93Latency 0.28 sSpeed 304 tok/sUptime 99.8 %$2.21 in$6.93 out
- Route 4 · fp81M context · 262K max outputCache $0.22 · 0.29 s · 247 tok/s · 99.8 %0.29 s · 247 tok/sInput $2.21Cache read $0.22Output $6.93Latency 0.29 sSpeed 247 tok/sUptime 99.8 %$2.21 in$6.93 out
支持的参数10
- 抽样
温度top_p- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
1M 上下文 · 943K 最大输出
支持的参数15
- 抽样
温度top_ptop_kmin_p种子- 处罚
重复惩罚频率惩罚存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
1M 上下文 · 943K 最大输出
支持的参数13
- 抽样
温度top_plogit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
262K context · 235K max output
支持的参数14
- 抽样
温度top_ptop_klogit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
1M 上下文 · 943K 最大输出
支持的参数12
- 抽样
温度top_ptop_klogit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
1M 上下文 · 131K 最大输出
支持的参数11
- 抽样
温度top_ptop_k- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
1M 上下文 · 131K 最大输出
支持的参数8
- 抽样
温度top_ptop_k- 输出
response_format- 工具
工具工具选择- 推理
推理include_reasoning- 未确认
停止
1M 上下文 · 最大输出 64K
支持的参数11
- 抽样
温度top_ptop_k- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
价格走势
API
curl https://api.opencheap.si/v1/chat/completions \
-H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
-d '{ "model": "opencheap/glm-5.2", "messages": [{ "role": "user", "content": "Hi" }] }'import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/glm-5.2",
messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/glm-5.2",
messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);致电 GLM 5.2 使用 OpenAI SDK:将其指向 https://api.opencheap.si/v1 并传递模型 ID opencheap/glm-5.2;其余代码保持不变。
About GLM 5.2
- 标价
- $0.007 / $5.80in / out per 1M
- 保存与列表
- 93 %on a 1 : 3 input-to-output mix
- 请求示例
- $0.003510,000 in + 1,000 out
- 实验室
- 53 款智浦型号
- 端点
https://api.opencheap.si/v1- 模型 ID
每个请求都会发送给模型中成本最低且状态正常的提供者,而每个响应都会报告其成本为 使用成本. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, https://api.opencheap.si/v1.
用文字表述价格
GLM 5.2 costs from $0.32 per 1M input tokens and $0.32 per 1M output tokens on OpenCheap, with cached input at $0.10 per 1M tokens. Its list price is $0.007 per 1M input tokens and $5.80 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 93 % less here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0035, and 1,000 such requests about $3.47.
26 providers serve GLM 5.2 on OpenCheap. Its context window is 1M tokens (1,048,576), room for roughly 790,000 words of English in one request.
GLM 5.2 is one of 53 Zhipu models on OpenCheap.
The public list price is $0.007 per 1M input tokens and $5.80 per 1M output tokens. OpenCheap is from $0.32 and $0.32, as of 2026-12-04 09:18 UTC.
Prices as of 2026-12-04 09:18 UTC.
关于定价的问题
How much does the GLM 5.2 API cost per 1M tokens?
GLM 5.2 costs from $0.32 per 1M input tokens and $0.32 per 1M output tokens on OpenCheap, with cached input at $0.10 per 1M tokens. Prices as of 2026-12-04 09:18 UTC.
What does one GLM 5.2 request cost?
A request with 10,000 input tokens and 1,000 output tokens costs about $0.0035, and 1,000 such requests about $3.47. Every answer reports its own cost in usage.cost.
Is GLM 5.2 cheaper on OpenCheap than its list price?
Its list price is $0.007 per 1M input tokens and $5.80 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 93 % less here.
Which providers serve GLM 5.2?
26 providers serve GLM 5.2 on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.
What is the context window of GLM 5.2?
其上下文窗口为100万个令牌(1,048,576),单次请求可处理约79万个英语单词。
How do I call the GLM 5.2 API?
Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/glm-5.2. One OpenCheap key works for every model; the rest of your code stays the same.
更多来自智浦的内容
- GLM 5.2 Thinkingglm-5.2:thinking$0.53 / $1.79 per 1M · 1M context
- GLM 5.3glm-5.3$0.12 / $0.037 per 1M · 1M context
- GLM 5.3 Flashglm-5.3-flash$0.0064 / $0.022 per 1M · 1M context
- GLM 5.1glm-5.1$0.16 / $0.50 per 1M · 204K context
- GLM 4.7glm-4.7每100万·20.2万上下文为 $0.032 / $0.14
- GLM 4.6glm-4.6每100万·20.2万上下文 $0.044 / $0.18
- GLM 4.5glm-4.5每100万 $0.15 / $0.55 · 13.1万个上下文
- GLM 4.5 Airglm-4.5-air0.098 美元 / 0.60 美元 每 1M · 13.1 万个上下文
类似型号
- Nvidia Nemotron 3.5 Super VLNVIDIA · 100万个上下文$0.063 / $0.37 per 1M8 % cheaper
- Grok 4.3xAI · 1M context$0.17 / $0.34 per 1M6 % cheaper
- Llama 4 MaverickMeta · 100万上下文$0.20 / $0.20 per 1M37 % cheaper
- GPT 6 Luna ProOpenAI · 100万上下文$0.094 / $0.47 per 1M
- Muse EmberMeta · 100万上下文$0.094 / $0.47 per 1M
- GPT 6 LunaOpenAI · 100万上下文$0.10 / $0.50 per 1M