GLM 5.1
glm-5.1Flagship GLM model for hybrid reasoning, coding, and agentic engineering with a 200K-token context. It supports tool calling and cached-input billing. Call it through the chat completions endpoint with a messages array. A good fit for enterprise assistants, code review, and structured reasoning workloads.
Selected route pricing
Route source: TokenUs
- Input / Output
- Input: $0.118Output: $0.413
- Cache read / write
- Cache read: $0.030Cache write: Price not supplied
- Context / Max output
- 200K / —
- Live routes
- 3
Rates / 1M tokens
Image output: Price not supplied
These are separate usage rates, not a total request price.
On this page
Overview
Flagship GLM model for hybrid reasoning, coding, and agentic engineering with a 200K-token context. It supports tool calling and cached-input billing. Call it through the chat completions endpoint with a messages array. A good fit for enterprise assistants, code review, and structured reasoning workloads.
Playground
Sample response
Agent handoff preview
Providers
| Provider | Pricing | Latency | Uptime | Supply | Route |
|---|---|---|---|---|---|
Live | Input $0.118 / 1M tokens Output $0.413 Cache read $0.030 Cache write — | — | — | Community | |
Live | Input $1.136 / 1M tokens Output $3.570 Cache read $0.192 Cache write — | 6014ms | — | Verified | |
Live | Input $0.745 / 1M tokens Output $2.979 Cache read $0.161 Cache write — | 4372ms | — | Verified |
- Input
- $0.118
- Output
- $0.413
- Cache read
- $0.030
Source: the selected provider route in OpenAny's public model catalog. A price update timestamp is not supplied.
API
- Base URL
https://api.openany.si/v1- POST
/v1/chat/completions- Authentication
Authorization: Bearer $OPENANY_API_KEY
Request parameters
| Parameter | Type / range | Default value | Required | Description |
|---|---|---|---|---|
messages | array | [{"role":"user","content":"Hello!"}] | No | messages |
No required parameters returned.
Request example
curl 'https://api.openany.si/v1/chat/completions' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.1",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"route": {
"provider": "TokenUs"
}
}'Response example
No response example is configured for this endpoint. Run a request in Playground to see a live response.
Error handling
400Check the model ID and request fields.429Retry with exponential backoff.5xxRetry only temporary provider failures.Examples
Request example
POST /v1/chat/completionscurl 'https://api.openany.si/v1/chat/completions' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.1",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"route": {
"provider": "TokenUs"
}
}'