Zhipu

glm-5.1

Model IDglm-5.1

Integration docsMarkdown

Model introduction

GLM-5.1 is Z.AI's general reasoning and coding model for Chinese and English knowledge work, tools, and engineering automation.

Model capabilities

Specifications come from the cited model material. Catalog tags help identify access features; use the source documentation for exact limits.

OpenAI compatiblePrompt cacheReasoning

Verified specifications

Official positioning
General reasoning, coding, and agents
Input / output
Text / Text
Verified capabilities
Reasoning, functions, structured tasks

Sources: B.AI GLM-5.1 model guide

Model pricing and access

Prices are read directly from the MoleAPI console catalog and shown by current billing group and context tier.

Your final charge follows the account group shown in the console.
Live pricing source

Pricing table

USD / 1M tokens
Standardx1defaultInput $0.87 · Output $3.48

Input

$0.87 / 1M tokens

Output

$3.48 / 1M tokens

Cache read

$0.19 / 1M tokens

Access protocols

Available billing groups: Standard

openai
POST
/v1/chat/completions

About glm-5.1

This introduction is transcreated for clarity and cross-checked against the cited model material.

GLM-5.1 is Z.AI's general reasoning and coding model for Chinese and English knowledge work, tools, and engineering automation.

Core strengths

  • Covers Chinese, English, and developer workflows.
  • Supports reasoning, function calling, and structured tasks.
  • Provides compatibility value for projects pinned to the previous generation.

Limitations

  • GLM-5.2 is the stronger current choice for long-context engineering.
  • Vision work needs a GLM-VL or other multimodal model.

Selection and production evaluation

Start a glm-5.1 evaluation by mapping its official positioning to real work: Bilingual coding assistance, business analysis, document processing, and general agents that orchestrate tools. The first pass should exercise both its main strength, "Covers Chinese, English, and developer workflows.", and its known limitation, "GLM-5.2 is the stronger current choice for long-context engineering.", instead of relying on a single subjective general-chat comparison.

For access, MoleAPI currently lists openai protocols and the Standard billing groups for this Zhipu model; the default price summary is Input $0.87 / 1M tokens · Output $3.48 / 1M tokens. Pricing, protocols, and groups come from the live catalog, so production planning should still price representative requests using real context length, output size, and cache-hit assumptions.

No independent ranking is shown unless it matches this exact model ID and reasoning profile, so nearby variants are not used as a proxy. Before launch, pin the model ID, prompt, and sample set, then compare task accuracy, structured-output validity, tool-call success, and timeout rates under the same conditions.

The model material on this page was last checked on 2026-07-24. When upstream model cards, context limits, or tool support change, update the cited bilingual facts before changing the recommendation; live MoleAPI price changes remain separate and update from the catalog automatically.

Code examples

These examples use MoleAPI's OpenAI-compatible endpoint and run after you replace the API key.

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

Frequently asked questions

How is glm-5.1 priced?

This page reads prices from the MoleAPI console API and updates with model prices, context tiers, and account groups.

How can I access glm-5.1?

Protocols and endpoints come from the supported_endpoint_types field in the MoleAPI model catalog.

How do I switch an existing project to glm-5.1?

Keep the MoleAPI API address and key, replace the model parameter with the model ID on this page, then check protocol-specific parameter differences.

Where do the glm-5.1 model details come from?

Capabilities and limitations are checked against B.AI and the other cited pages. Pricing and available protocols come only from the MoleAPI console.