About this model
Flagship agentic coding model with 200K context, deep thinking, and long-horizon task execution. GLM-5.1 is Z.ai's flagship language model for agentic engineering, coding, reasoning, and tool-driven workflows.
Pricing
| Rate | RODI | USD (ref.) | Unit |
|---|---|---|---|
| Text tokens | |||
| In | 1060.6 | ~ 1.40 | per 1M tokens (RODI/M, USD/M) |
| Out | 3333.1 | ~ 4.40 | per 1M tokens (RODI/M, USD/M) |
RODI prices include RodiumAi markup and upstream fees. USD figures are wholesale reference rates.
Providers & pricing
| Provider | Input | Output | Cached | Free tier | Status |
|---|---|---|---|---|---|
Runware Default All rates (2)
| 1,061 | 3,333 | - | - | No data |
Capabilities
Streaming
Tool calling
Vision
JSON mode
Reasoning
API usage
Use the canonical slug with client.chat() or chat.completions.create().
Examples
…Example response
…Streaming
…RodiumAi SDK
Official Python, JavaScript, and Laravel SDKs: flat API aligned with this model slug.
…Use cases
- Agentic coding and tool-using assistants.
- Bilingual Chinese and English applications.
- Long-form writing and summarisation.
- Cost-sensitive chat at volume (Flash variants).
Notes
- GLM (Z.ai) models answer on
POST https://api.rodiumai.io/v1/chat/completions(OpenAI format), served through RodiumAi's cloud upstreams. max_tokensandmax_completion_tokensare both accepted. Leave generous room for thinking models: a few thousand tokens.- Thinking models can return their reasoning separately. Streaming deltas may include
reasoning_contentbefore the finalcontent. - OpenAI-only fields such as
n,seedorlogit_biasare ignored. Streaming, tools and JSON mode depend on the Capabilities section.