Skip to main content
A ~744B-parameter MoE with 40B active weights, ranked first among open models on the AA intelligence index — suited to project-scale coding and long-horizon agents.

Specifications

Pricing

Prices in USD per 1M tokens ($/1M).
The table shows list prices. Recharge promotions and group discounts stack; the console reflects the actual charge in real time. See Pricing and Recharge promotions.

Endpoints

Billing groups

Some groups carry extra discounts, stackable with recharge bonuses. See Tokens and groups.

Supported features

Example request

The example below calls glm-5.2 through OpenAI Chat Completions (/v1/chat/completions). Point base_url at https://api.apiyi.com/v1 — everything else matches the official API.
Read the key from an environment variable, never hard-coded. In production, issue separate tokens per use case so you can revoke and attribute usage individually.

Launch announcement

Background, benchmarks and migration notes for GLM-5.2

Model pricing directory

Live pricing, endpoints and groups for all 308 models
Specs on this page are maintained by hand in models/data/model-details.json; pricing and endpoints come from the live pricing API, updated 2026-07-31 01:30 (UTC+8), specs last verified 2026-07-31.