# GLM-5

> Z.ai's latest large language model with strong performance on reasoning, coding, and general knowledge tasks.

Agent resources: the index of everything machine-readable is https://www.ohmygpt.com/llms.txt; the integration skill (endpoints, auth, SDK and coding-tool setup) is https://www.ohmygpt.com/skill.md.

- Model ID: `zhipu/glm-5`
- Status: available
- Released: 2025-12-01
- Context: 128K tokens
- Max output: 16K tokens
- Input: text; output: text
- Capability score: 146 (as of 2026-11-02, see https://www.ohmygpt.com/rankings.md)
- Human preference rating (LMArena text): 1446

## Prices (USD)

| Item | Price | Unit |
| --- | --- | --- |
| Input | $0.6424–$1.10 | per 1M tokens |
| Output | $2.8908–$3.52 | per 1M tokens |
| Cache read | $0.1606 | per 1M tokens |

## Providers

Without a prefix each request goes to the best-priced healthy provider. To pin one, send the model as `<provider>:zhipu/glm-5`.

| Provider | Pinned model ID | Location | Input | Output | Trains on your data |
| --- | --- | --- | --- | --- | --- |
| Zhipu AI (ChatGLM) | `chatglm:zhipu/glm-5` | China | $0.6424 | $2.8908 | no |
| Amazon Bedrock | `bedrock:zhipu/glm-5` | United States | $1.10 | $3.52 | no |

## Endpoints

| API | Request | model |
| --- | --- | --- |
| OpenAI Chat | POST https://api.ohmygpt.com/v1/chat/completions | `zhipu/glm-5` |
| OpenAI Responses | POST https://api.ohmygpt.com/v1/responses | `zhipu/glm-5` |
| Anthropic Messages | POST https://api.ohmygpt.com/v1/messages | `zhipu/glm-5` |
| Google Gemini | POST https://api.ohmygpt.com/v1/models/zhipu/glm-5:generateContent | `zhipu/glm-5` |

## Example

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

Web page: https://www.ohmygpt.com/models/zhipu/glm-5
