# 智谱: glm-5-turbo

- 模型 ID: `glm-5-turbo`
- 供应商: 智谱
- 网页版本: https://www.moleapi.com/zh-CN/models/zhipu/glm-5-turbo
- 内容状态: catalog

## 模型简介

智谱 的 GLM 模型，适合通用对话、写作、代码辅助和工具调用场景。

## 模型能力

- OpenAI 兼容
- Responses API
- Anthropic 兼容
- Gemini 兼容
- 提示词缓存

### 已核验规格

- 目录状态: MoleAPI 当前可用
- 兼容协议: openai, anthropic, openai-response, gemini
- 可用计费分组: 标准, 特价, 转接

## 模型价格和接入方式

价格由 MoleAPI 控制台接口动态提供。

### 标准 (default, x1)

| 档位 | 条件 | 输入 | 输出 | 缓存读取 |
| --- | --- | ---: | ---: | ---: |
| base | - | $0.73 | $3.212 | $0.1737 |

### 特价 (discount, x0.8)

| 档位 | 条件 | 输入 | 输出 | 缓存读取 |
| --- | --- | ---: | ---: | ---: |
| base | - | $0.584 | $2.5696 | $0.139 |

### 转接 (relay, x0.3)

| 档位 | 条件 | 输入 | 输出 | 缓存读取 |
| --- | --- | ---: | ---: | ---: |
| base | - | $0.219 | $0.9636 | $0.0521 |

### 接入协议

| Protocol | Method | Endpoint |
| --- | --- | --- |
| openai | POST | /v1/chat/completions |
| anthropic | POST | /v1/messages |
| openai-response | POST | /v1/responses |
| gemini | POST | /v1beta/models/{model}:generateContent |

- 实时价格来源: https://home.moleapi.com/api/pricing

## glm-5-turbo 模型介绍

智谱 的 GLM 模型，适合通用对话、写作、代码辅助和工具调用场景。

### 资料来源

- [MoleAPI 控制台价格目录](https://home.moleapi.com/api/pricing) — MoleAPI

## 代码示例

### cURL

```bash
curl https://api.moleapi.com/v1/responses \
  -H "Authorization: Bearer $MOLEAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"glm-5-turbo","input":"Explain this problem step by step."}'
```

### Python

```python
from openai import OpenAI

client = OpenAI(base_url="https://api.moleapi.com/v1", api_key="YOUR_MOLEAPI_API_KEY")
response = client.responses.create(model="glm-5-turbo", input="Explain this problem step by step.")
print(response.output_text)
```

### TypeScript

```typescript
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.moleapi.com/v1", apiKey: process.env.MOLEAPI_API_KEY });
const response = await client.responses.create({ model: "glm-5-turbo", input: "Explain this problem step by step." });
console.log(response.output_text);
```

## 更多相关模型

- [glm-5.2](https://www.moleapi.com/zh-CN/models/zhipu/glm-5.2) — 智谱
- [glm-5.1](https://www.moleapi.com/zh-CN/models/zhipu/glm-5.1) — 智谱
- [glm-5](https://www.moleapi.com/zh-CN/models/zhipu/glm-5) — 智谱

## 常见问题

### glm-5-turbo 怎么计费？

本页价格从 MoleAPI 控制台接口动态读取，并随模型价格、上下文档位和账户分组更新。

### glm-5-turbo 支持哪些接入方式？

当前目录列出的协议是 openai、anthropic、openai-response、gemini。

### 如何在现有项目中切换到 glm-5-turbo？

保留 MoleAPI 的 API 地址和密钥，替换 model 参数，再检查所用协议的参数差异。

### glm-5-turbo 的资料来自哪里？

当前仅采用 MoleAPI 目录中已确认的可用性、价格和协议信息。
