About this model
Flagship long-horizon coding LLM with usable 1M context and stronger end-to-end engineering execution. GLM-5.2 is Z.ai's flagship language model for long-horizon coding, agentic engineering, and sustained multi-step execution.
Pricing
| Rate | RODI | USD (ref.) | Unit |
|---|---|---|---|
| Text tokens | |||
| In | 606.1 | ~ 0.800 | per 1M tokens (RODI/M, USD/M) |
| Out | 1931.7 | ~ 2.55 | per 1M tokens (RODI/M, USD/M) |
| Prompt caching | |||
| Cached | 121.3 | ~ 0.160 | 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 (3)
| 606.1 | 1,932 | 121.3 | - | 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.