glm-5.1 API
glm-5.1 is a language model from Zhipu, available on OneFast API behind the same API key as every other model in the catalog.
Pricing
| Usage | Price (USD) |
|---|---|
| Input | $1.12 / 1M tokens |
| Input — cache hit | $0.28 / 1M tokens |
| Output | $3.52 / 1M tokens |
Billed per 1M tokens, pay as you go in USD. Failed requests are not billed. The price shown is the public list price; after signing in, the console shows the price for your own account.
Model details
| Model ID | glm-5.1 |
| Provider | Zhipu |
| Type | Chat |
Endpoints
POST /v1/chat/completions— OpenAI-compatible chat (docs)
Quickstart
Create an API key in the console, then call the API:
curl https://api.onefast.ai/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.1",
"messages": [{"role": "user", "content": "Hello"}]
}'More examples: OpenAI-compatible chat docs · Quickstart.