Skip to main content
Model creator on ModelRunner
Z.ai logo

Z.ai

z-ai

Z.ai has one model in the ModelRunner catalog: GLM-5.2, a Text-to-Text endpoint, priced at from $0.35 per 1M cached input tokens — agentic coding: multi-step bug fixing, refactoring and terminal tasks.

1 public model — runnable in a free playground, through the REST API and JavaScript SDK, or from an AI assistant over MCP.

Z.ai models & pricing

What you can build with Z.ai models

  • Agentic coding: multi-step bug fixing, refactoring and terminal tasks GLM-5.2
  • Long-context code review across an entire repository in one prompt GLM-5.2
  • Open-weight MIT model when a closed frontier model is not an option GLM-5.2
  • Dial thinking effort up or down to trade answer quality against cost GLM-5.2
  • Tool calling and structured JSON output inside an autonomous agent loop GLM-5.2

Browse by capability

Use Z.ai models from Claude & Cursor

Connect the ModelRunner MCP server once and your AI assistant can run every Z.ai model on this page as a tool — authorized via OAuth, results returned as hosted URLs in the conversation.

Claude Code

claude mcp add --transport http modelrunner https://mcp.modelrunner.run/mcp

Research, weights & licences

Frequently asked questions

What Z.ai models can I run on ModelRunner?

The catalog has 1 public Z.ai model: GLM-5.2. It covers text-to-text. It has its own page with a free playground, the full input schema, and copy-paste code.

How much do Z.ai models cost?

Pay-per-use, with no subscription: the one Z.ai model billed per 1M cached input tokens costs $0.35, and every page publishes its own rate — some are tiered, so a lower resolution or a shorter clip costs less per run. You buy credits and pay only for what you generate.

How do I call a Z.ai model from the API?

POST to https://queue.modelrunner.run/z-ai/glm-5.2 with an Authorization: Key header and the input fields as the top-level JSON body (no wrapper object), then poll the returned status_url and fetch the result from response_url. The JavaScript SDK (@modelrunner/client) wraps that in a single subscribe() call, which is the one place an { input } object is used.

Can I run Z.ai model from Claude or Cursor?

Yes. Connect the ModelRunner MCP server (https://mcp.modelrunner.run/mcp) once and Z.ai's model becomes a tool your assistant can call with run_model — authorized over OAuth 2.1, so no API key goes into a config file. Results come back as hosted URLs in the conversation.

Where is the source code or paper for Z.ai models?

1 of the 1 Z.ai model in the catalog link their own upstream sources — GLM-5.2 — covering some combination of code repository, paper, weights and licence. The links are listed on this page and on each model's own page.

Browse the full model catalog, compare live per-configuration rates on the pricing page, see curated sets on explore, or view every model creator.

Other creators in text-to-text