> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bytespike.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# glm-5.1

> Zhipu's GLM-5.1 — the published Chinese-LLM flagship for general chat with vision support. Available through OpenAI Chat Completions.

`glm-5.1` is the published flagship from Zhipu's 智谱 GLM family — strong on Chinese tasks, vision-capable. It supersedes the earlier `glm-5` preview.

## Pricing

| Input       | Cache read  | Output      |
| ----------- | ----------- | ----------- |
| \$1.40 / 1M | \$0.26 / 1M | \$4.40 / 1M |

Cache write is billed at the input rate. See the [pricing table](https://bytespike.ai/pricing#text) for the live rate.

## Protocols

| Protocol                | Path                                                |
| ----------------------- | --------------------------------------------------- |
| OpenAI Chat Completions | `POST https://llm.bytespike.ai/v1/chat/completions` |

## Quickstart

```bash theme={null}
curl https://llm.bytespike.ai/v1/chat/completions \
  -H "Authorization: Bearer $BYTESPIKE_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "glm-5-1",
    "messages": [{ "role": "user", "content": "Hello, ByteSpike." }]
  }'
```

## Capabilities

| Capability               | Supported   |
| ------------------------ | ----------- |
| Chat Completions         | ✅           |
| Streaming (SSE)          | ✅           |
| Tools / function calling | ✅           |
| JSON mode                | ✅           |
| Vision (image input)     | ✅           |
| Context window           | 128K tokens |

## When to use

* **Chinese-language general chat** — GLM-5.1 is competitive with Doubao on Chinese benchmarks.
* **Vision in CN region** — good OCR / document understanding.

> The earlier `glm-5` preview is legacy and no longer the published flagship — use `glm-5.1`.

## Next

* [doubao-seed-2.0-pro](/models/doubao-seed-2-0-pro) — ByteDance Chinese-LLM alternative
* [kimi-k2-6](/models/kimi-k2-6) — Moonshot long-context alternative
