Prime Mode delivers higher TPS for latency-sensitive scenarios such as AI coding assistants, multi-step agent reasoning, and real-time conversations.
Prime Mode delivers higher TPS for latency-sensitive scenarios.
Prime Mode provides the following key features:
Response example:
For the latest pricing, see Pricing.
GLM-5.2 returns a
Prime Mode uses per-token billing with the same logic as the standard API. See Pricing for details.
How it works
Prime Mode provides the following key features:
- High-speed output: TPS is 1.5~2x that of the standard API; ideal for AI coding assistants, multi-step agent reasoning, real-time conversations, and other latency-sensitive use cases.
- Per-token billing: Same billing logic as the standard API — billed separately for input and output tokens.
- Flexible rate limiting: When your usage reaches the rate limit, requests will still be processed if the platform has available capacity, so actual usable TPS is no less than the stated rate limit.
model parameter to the model ID of a supported model. No additional parameters are needed.
Basic usage example:
The Prime Mode model name for GLM 5.2 remains
glm-5.2-fast-preview.Supported models
Text generation
| Model | Input (per million tokens) | Output (per million tokens) | Cache hit (per million tokens) |
|---|---|---|---|
| glm-5.2-fast-preview | $2.91 | $9.15 | $0.58 |
Video generation
| Model | 480P (per second) | 720P (per second) | 1080P (per second) |
|---|---|---|---|
| wan3.0-video-prime | $0.069 | $0.141 | $0.283 |
Usage example
GLM-5.2 returns a reasoning_content field by default. In streaming mode, reasoning and response content are delivered separately via delta.reasoning_content and delta.content: