Zhipu AIOpen-weight·203K context·— params

GLM 5.1zhipu/glm-5-1

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...

Cheapest blended:$2.15 / 1M tokenson Zhipu AI · 1 provider listed

Pricing across providers

Sort by:
ProviderInput /1MOutput /1MBlended /1MLatency p50FormatFreshnessAction
Zhipu AI
glm-5.1

Global. open.bigmodel.cn is US-reachable.

$1.4$4.4$2.15—OpenAI-compatiblePrice 1mo agoTry →

Affiliate disclosure: We may earn a commission from qualified signups. Pricing independence is enforced at the data layer — see our Editorial Independence Policy.

Works with

Point any of these clients at a hosting's base URL — they all speak at least one of this model's endpoint protocols (OPENAI_COMPATIBLE).

Capabilities

  • chat
  • reasoning
  • long_context

Languages: en, zh

Code samples

Example using Zhipu AI — the cheapest hosting for this model as of last verification. Swap base_url and model to use a different provider from the matrix above.

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://open.bigmodel.cn/api/paas/v4",
)

response = client.chat.completions.create(
    model="glm-5.1",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

Technical specs

Context
203K
Max output
66K
Parameters
—
Release
—
Training cutoff
—
License
—

Similar models

Compare with

  • GLM 5.1 vs DeepSeek V3.1
    Comparison planned — not yet published
  • GLM 5.1 vs R1
    Comparison planned — not yet published
  • GLM 5.1 vs DeepSeek V3
    Comparison planned — not yet published

Frequently asked

How much does GLM 5.1 cost?+
The cheapest public hosting is $2.15 per 1M blended tokens on Zhipu AI. 1 total providers are listed above with per-input / per-output / cached pricing.
How do I access GLM 5.1 from outside China?+
Availability, account verification and payment methods vary by provider and region. Check the official documentation and the selected provider's access requirements before integrating. A directory listing does not guarantee global API access.
Is GLM 5.1 open-source? Can I fine-tune it?+
GLM 5.1 has published weights. License: see the official repository. Review the linked repository and license for deployment, fine-tuning and commercial-use conditions.
Is GLM 5.1 OpenAI-compatible?+
At least one listed hosting exposes an OpenAI-compatible API, so you can point an existing openai SDK client at the Provider's base_url and use the Provider's model name. See the Code Samples above for a copy-pasteable example.
What's the maximum context window for GLM 5.1?+
The model supports up to 202,752 tokens of context (input + output). Some hosted versions may impose a smaller limit — check the "Context" column in the pricing matrix for each provider.