# Zhipu: glm-5.1

- Model ID: `glm-5.1`
- Provider: Zhipu
- Web version: https://www.moleapi.com/en/models/zhipu/glm-5.1
- Content status: verified

## Model introduction

GLM-5.1 is Z.AI's general reasoning and coding model for Chinese and English knowledge work, tools, and engineering automation.

## Model capabilities

- OpenAI compatible
- Prompt cache
- Reasoning

### Verified specifications

- Official positioning: General reasoning, coding, and agents
- Input / output: Text / Text
- Verified capabilities: Reasoning, functions, structured tasks

## Model pricing and access

Pricing is supplied dynamically by the MoleAPI console API.

### Standard (default, x1)

- Input: $0.87 / 1M tokens
- Output: $3.48 / 1M tokens
- Cache read: $0.19 / 1M tokens

### Access protocols

| Protocol | Method | Endpoint |
| --- | --- | --- |
| openai | POST | /v1/chat/completions |

- Live pricing source: https://home.moleapi.com/api/pricing

## About glm-5.1

GLM-5.1 is Z.AI's general reasoning and coding model for Chinese and English knowledge work, tools, and engineering automation.

### Best for

Bilingual coding assistance, business analysis, document processing, and general agents that orchestrate tools.

### Core strengths

- Covers Chinese, English, and developer workflows.
- Supports reasoning, function calling, and structured tasks.
- Provides compatibility value for projects pinned to the previous generation.

### Limitations

- GLM-5.2 is the stronger current choice for long-context engineering.
- Vision work needs a GLM-VL or other multimodal model.

### Selection and production evaluation

Start a glm-5.1 evaluation by mapping its official positioning to real work: Bilingual coding assistance, business analysis, document processing, and general agents that orchestrate tools. The first pass should exercise both its main strength, "Covers Chinese, English, and developer workflows.", and its known limitation, "GLM-5.2 is the stronger current choice for long-context engineering.", instead of relying on a single subjective general-chat comparison.

For access, MoleAPI currently lists openai protocols and the Standard billing groups for this Zhipu model; the default price summary is Input $0.87 / 1M tokens · Output $3.48 / 1M tokens. Pricing, protocols, and groups come from the live catalog, so production planning should still price representative requests using real context length, output size, and cache-hit assumptions.

No independent ranking is shown unless it matches this exact model ID and reasoning profile, so nearby variants are not used as a proxy. Before launch, pin the model ID, prompt, and sample set, then compare task accuracy, structured-output validity, tool-call success, and timeout rates under the same conditions.

The model material on this page was last checked on 2026-07-24. When upstream model cards, context limits, or tool support change, update the cited bilingual facts before changing the recommendation; live MoleAPI price changes remain separate and update from the catalog automatically.

### Sources

- [B.AI GLM-5.1 model guide](https://docs.b.ai/llmservice/models/glm-5-1/) — B.AI
- [Z.AI GLM-5 series documentation](https://docs.z.ai/guides/llm/glm-5) — Z.AI
- Last verified: 2026-07-24

## Code examples

### cURL

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

## More related models

- [glm-5.2](https://www.moleapi.com/en/models/zhipu/glm-5.2) — Zhipu
- [glm-5.3](https://www.moleapi.com/en/models/zhipu/glm-5.3) — Zhipu
- [z-ai/glm-5.2](https://www.moleapi.com/en/models/zhipu/z-ai-glm-5.2) — Zhipu

## Frequently asked questions

### How is glm-5.1 priced?

Prices are read from the MoleAPI console API and update with model prices, context tiers, and account groups.

### How can I access glm-5.1?

The catalog currently lists openai.

### How do I switch an existing project to glm-5.1?

Keep the MoleAPI API address and key, replace the model parameter, and check protocol-specific parameters.

### Where do the glm-5.1 details come from?

Capabilities and limitations are checked against B.AI and the other cited pages; pricing and protocols come from the MoleAPI console.
