# glm-5.2

GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering, and complex multi-step automation. Reasoning efforts `high` and `xhigh` are supported; `xhigh` maps to max reasoning. It is particularly strong at coding and tool use across long-running tasks, able to maintain engineering context and follow standards consistently through a full development workflow, from requirements to multi-platform deployment, in a single task.

GLM 5.2 是 Z.ai 推出的开源旗舰级大规模推理模型，支持文本输入输出和约 100 万 token 上下文窗口，适合长周期智能体工作流、项目级软件工程和复杂多步骤自动化任务。它支持 high/xhigh 推理强度，在长时间编码和工具使用中能够持续保持工程上下文与规范一致性。

- Provider: Z.ai
- Billing Mode: Pay as you go
- Label: 推理
- Model ID: `glm-5.2`
- Web: https://en.llmoxy.com/models/glm-5.2

## Pricing

Prices are in Chinese yuan (CNY, ￥); pay-as-you-go prices are per 1M tokens.

| Token Group | In | Out | Cache read | Cache write | vs. official API price |
| --- | --- | --- | --- | --- | --- |
| GLM | ￥0.56 | ￥1.76 | ￥0.104 | ￥0 | 94% lower |

Official API price (USD): In $1.40 / 1M tokens, Out $4.40 / 1M tokens, Cache read $0.26 / 1M tokens, Cache write $0 / 1M tokens. “vs. official API price” converts at 1 USD = 7 CNY before comparing.

## Quick start

Set the LLMOXY_KEY environment variable to your API key before running.

### cURL

```bash
curl https://llmoxy.com/v1/chat/completions \
  -H "Authorization: Bearer $LLMOXY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.2",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
```

### Python

```python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://llmoxy.com/v1",
    api_key=os.environ["LLMOXY_KEY"],
)

resp = client.chat.completions.create(
    model="glm-5.2",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
```

### Node.js

```javascript
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://llmoxy.com/v1",
  apiKey: process.env.LLMOXY_KEY,
});

const resp = await client.chat.completions.create({
  model: "glm-5.2",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(resp.choices[0].message.content);
```

## Endpoints

- Chat Completions: `POST https://llmoxy.com/v1/chat/completions`

## FAQ

### How much does glm-5.2 cost on LLMoxy?

Pay as you go. Price in the “GLM” token group: In ￥0.56 / 1M tokens, Out ￥1.76 / 1M tokens. That is 94% below the official API price.

### How do I call glm-5.2?

Create an API key in the LLMoxy console, set model to glm-5.2, and send the request to: Chat Completions POST https://llmoxy.com/v1/chat/completions. You can also use the OpenAI SDK directly with the base URL set to https://llmoxy.com/v1.

### Which token groups can I use with glm-5.2?

The token group sets the price you pay: you pick a group when you create an API key in the console, and every call made with that key is billed at that group’s price. Groups available for glm-5.2: GLM.

### Do I need an international credit card?

No. Top up your balance in the console first; each call is then deducted from the balance based on actual usage. Payment methods: Alipay, WeChat Pay, Visa / MasterCard, Apple Pay, and crypto such as USDT, BTC, SOL, and TRX. Multi-currency support.

## More from Z.ai

- [glm-5.3](https://en.llmoxy.com/models/glm-5.3.md): In ￥0.56 / 1M

## Links

- [All model prices](https://en.llmoxy.com/pricing.md)
- [Documentation](https://en.llmoxy.com/docs/api-reference/api-overview.md)
- [llms.txt](https://en.llmoxy.com/llms.txt)

This is the markdown version of https://en.llmoxy.com/models/glm-5.2.
