Fast mode provides higher TPS for latency-sensitive scenarios.
Usage
Fast mode provides the following key features:
- High-speed output: TPS is increased to 1.5 to 2 times that of the standard API. This is suitable for AI coding assistants, multi-step Agent reasoning, real-time conversations, and other latency-sensitive scenarios.
- Token-based billing: The billing logic is the same as the standard API, with charges based on input and output tokens.
- Special rate limiting: When the call volume reaches the rate limit, if the platform still has spare resources, rate limiting is not triggered, so the actual available TPS is no lower than the rate limit.
https://{workspace_id}.cn-beijing.maas.aliyuncs.com/compatible-mode/v1, where {workspace_id} can be found on the Business Space Management page after you switch to the corresponding region.
Basic call example:
The model name for the prime mode of glm 5.2 is still glm-5.2-fast-preview.
Supported models
- China (Beijing)
- Singapore
Text generation model | Pricing (per million tokens) | ||
|---|---|---|---|
Input unit price | Output unit price | Cache hit | |
glm-5.2-fast-preview | $2.200 | $7.702 | $0.550 |
Video generation model | Pricing ($/second) | ||
480P | 720P | 1080P | |
wan3.0-video-prime | $0.068/second | $0.14/second | $0.28/second |
Examples
The glm-5.2 model returns a reasoning_content field by default for reasoning. During streaming, reasoning content and response content are delivered through delta.reasoning_content and delta.content respectively. Streaming call example: