by Z.AI · chat
GLM 5.1 by Z.AI — Access via Apertis API. Input: $0.0013/1M tokens, Output: $0.0040/1M tokens. Context: 202K tokens. OpenAI-compatible API with 50% cost savings.
| Input | Output | Context Window |
|---|---|---|
| $0.0013 / 1M tokens | $0.0040 / 1M tokens | 202K tokens |
Use the Apertis API (OpenAI-compatible) to access GLM 5.1:
curl https://api.apertis.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "glm-5.1", "messages": [{"role": "user", "content": "Hello!"}]}'