GLM-5.1

Z.ai's flagship model for long-horizon agents and complex engineering tasks.

Input price
$0.66–$0.9636list $0.825-20%
Output price
$2.6408–$3.8544list $3.301-20%
Context
200K
Max output
128K
Modalities
InputTextOutputText
150 (#50 of 89)
1463
—
Released
2026-04-08
Knowledge cutoff
2025-04
Try in ChatCompare

Providers

Providers that serve this model. With Auto, each request goes to the best available provider. Prices in USD per 1M tokens; stats cover the last 30 days.

Pricing

Prices vary by provider. Showing Alibaba Cloud (Model Studio Intl), the lowest. Pick a provider above to see its prices.

Prompt ≤ 32K tokens

Input
$0.66list $0.825-20%
per 1M tokens
Output
$2.6408list $3.301-20%
per 1M tokens
Cache read
$0.132list $0.165-20%
per 1M tokens
Cache write (5 min)
$0.8248list $1.031-20%
per 1M tokens

Prompt > 32K tokens

Input
$0.88list $1.10-20%
per 1M tokens
Output
$3.0808list $3.851-20%
per 1M tokens
Cache read
$0.176list $0.22-20%
per 1M tokens
Cache write (5 min)
$1.10list $1.375-20%
per 1M tokens

Make a request

Set your provider preferences, then copy the request. It reads your API key from OHMYGPT_API_KEY.

Later turns reuse the provider’s prompt cache, which can lower cost and latency.

Providers
curl https://api.ohmygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $OHMYGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "zhipu/glm-5.1",
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ]
  }'

Similar models

Other models with the same output types at a similar price.

  • Better value: more capable, lower price
  • Pareto frontier
  • This model
  • Similar models

Capability scores are from Epoch AI’s Epoch Capabilities Index (CC BY 4.0, as of 2026-11-02), which combines dozens of benchmarks with GPT-5 set at 150. epoch.ai/eci

Price: our current input price per 1M tokens in USD, lowest across channels. Dated snapshots and resold copies of the same model are merged into one point; free models are not shown.

Shaded area: capability above and price below the median of all models. Pareto frontier: no other model is both cheaper and more capable.

GLM-5.1This model
150
Input
$0.66–$0.9636
Output
$2.6408–$3.8544
—
Input
$0.66
Output
$2.64
152
Input
$0.66–$0.9344
Output
$2.3106–$3.2704
—
Input
$0.66
Output
$2.64
146
Input
$0.66
Output
$2.75

Human preference ratings are from the LMArena Text Arena (CC BY 4.0, as of 2026-10-28): Elo ratings from blind votes, on a different scale from capability scores. lmarena.ai/leaderboard/text