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

# GLM 5

> GLM-5 is Zhipu's text foundation model for agentic engineering, supporting 200K context, 128K max output, thinking modes, function calling, structured output...

## Ringkasan

GLM-5 is Zhipu's text foundation model for agentic engineering, supporting 200K context, 128K max output, thinking modes, function calling, structured output, context caching, and MCP.

| Properti | Nilai |
| - | - |
| Provider | Zhipu |
| Slug | `glm-5` |
| Konteks | 200,000 token |
| Output maks | Tidak dipublikasikan |
| Input | text |
| Output | text |
| Rilis | 2026-06-14 |

## Kapabilitas

* `text`
* `streaming`
* `tool-calling`
* `function-calling`
* `json-mode`
* `reasoning`
* `code-generation`
* `multilingual`
* `structured-outputs`
* `agentic`
* `long-context`

## Harga

| Item | Harga |
| - | - |
| Input (prompt) | \$0.588 |
| Output (completion) | \$2.647 |
| Cache read | \$0.147 |
| Cache write | - |

Harga adalah harga customer per **1M token** untuk API key Hostlinku, dengan 1 kredit = \$1. Harga aktual per request tetap mengikuti Service Mode API key dan dapat berubah; cek [Console](https://console.hostlinku.com/models) atau `GET /v1/models` untuk nilai yang berlaku.

## Endpoint yang didukung

| Endpoint | Format | Dukungan |
| - | - | - |
| `POST /v1/chat/completions` | OpenAI Chat Completions | tersedia |
| `POST /v1/messages` | Anthropic Messages | adapted (bridge) |
| `POST /v1/responses` | OpenAI Responses | adapted (bridge) |

Ketersediaan endpoint dan model mengikuti katalog serta Service Mode API key yang dipakai. Jika model tidak tersedia untuk mode tersebut, request dapat ditolak dengan `400 MODEL_NOT_IN_SERVICE_MODE`.

## Contoh request

```bash theme={null}
curl https://api.hostlinku.com/v1/chat/completions \
  -H "Authorization: Bearer sk-isi-api-key-kamu" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'
```

## Model terkait

* [GLM 5.1](https://docs.hostlinku.com/models/glm-5-1.md)
* [GLM 5.2](https://docs.hostlinku.com/models/glm-5-2.md)
* [GLM 5.3](https://docs.hostlinku.com/models/glm-5-3.md)
* [GLM 5.3 Hyper Chat](https://docs.hostlinku.com/models/glm-5-3-hyper-chat.md)
* [GLM-5.3 Flash](https://docs.hostlinku.com/models/glm-5-3-flash.md)
* [GLM-5.3 Flash Hyper](https://docs.hostlinku.com/models/glm-5-3-flash-hyper.md)

[← Kembali ke katalog model](https://docs.hostlinku.com/models.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.