Models / Zhipu GLM
glm-5.2 API
Zhipu GLM model available through Mimxo AI's OpenAI-compatible endpoint.
| Provider | Zhipu GLM |
|---|---|
| Model ID | glm-5.2 |
| Input / 1M tokens | $0.123 (list $0.41) |
| Output / 1M tokens | $1.197 (list $3.99) |
| Cache read / 1M | $0.078 |
| Endpoints | openai |
| Base URL | https://mimxo.com/v1 |
Example
curl https://mimxo.com/v1/chat/completions \
-H "Authorization: Bearer $MIMXO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "glm-5.2", "messages": [{"role": "user", "content": "Hello"}]}'from openai import OpenAI
client = OpenAI(base_url="https://mimxo.com/v1", api_key="YOUR_MIMXO_API_KEY")
resp = client.chat.completions.create(
model="glm-5.2",
messages=[{"role": "user", "content": "Write a haiku about APIs"}],
)
print(resp.choices[0].message.content)FAQ
How do I use glm-5.2 via API?
Send an OpenAI-compatible request to https://mimxo.com/v1/chat/completions with "model": "glm-5.2" and your Mimxo AI key.
What does glm-5.2 cost?
$0.123 per 1M input tokens and $1.197 per 1M output tokens on Mimxo AI (0.3× the list price of $0.41 / $3.99).
Other Zhipu GLM models
glm-5 · glm-5.1 · glm-5.3 · glm-5.3-flash · glm-5.3-prime