GLM 5.2 Fast Preview API

A latency-optimized GLM-5.2 preview with the same 1M-token context window and 1.5–2× higher output throughput for real-time chat, agents, and coding.

Modalities
TextText
In / Out price
$3.5/$11per 1M
Context window
1M tokens
Released
Jul 10, 2026

GLM 5.2 Fast Preview overview

The pelican test: one prompt, every text model, unedited SVG output from Nov 3, 2026.

SVG of a pelican riding a bicycle, written by GLM 5.2 Fast Preview through AI/ML API

GLM 5.2 Fast Preview specs

Model ID
alibaba/glm-5.2-fast-preview
Developer
Zhipu AI
Context window
1,000,000 tokens
Max output
131,072 tokens
Input
Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

What Is GLM 5.2 Fast Preview API?

GLM-5.2-Fast-Preview is the high-speed variant of Zhipu AI’s GLM-5.2 model, served by Alibaba Cloud Model Studio.

It is described as inference-optimized and aligned with the standard GLM-5.2 version’s capabilities.

Technical Reference

DeveloperZhipu AI
Model IDalibaba/glm-5.2-fast-preview
Release DateJuly 9, 2026
Context Window1,000,000 tokens (~1M)
Max Output Tokens131,072 tokens
ModalitiesText → Text
Capabilitiesparallel tool calls, reasoning, streaming, structured (JSON schema) output, tool/function calling

What GLM 5.2 Fast Preview Brings to the Table

High-speed variant
The model is presented as the fast version of GLM-5.2, optimized for higher output throughput.

Alibaba Cloud hosting
The inference service provider for glm-5.2-fast-preview is Alibaba Cloud Model Studio.

Latency-sensitive positioning
It is intended for latency-sensitive use cases such as real-time chat, multi-turn agents, and streaming code generation.

Model family relationship
The model is identified as part of the GLM series in Alibaba Cloud documentation.

Where GLM 5.2 Fast Preview Makes the Most Sense

Real-time chat
Suitable for conversational applications that need faster output generation.

Multi-turn agents
Positioned for agent workflows that benefit from higher TPS and lower latency.

Streaming code generation
Recommended for code-generation flows where fast streamed output matters.

Latency-sensitive apps
Designed for scenarios where response speed is a primary requirement.

Use cases

Real-time chat is one documented use case for GLM 5.2 Fast Preview, which is described as a latency-sensitive scenario suited to the model’s high-speed output.

Multi-turn agents are another documented fit, with the model specifically said to work well for multi-turn agent interactions and agent loops that chain many model calls.

Streaming code generation is also explicitly listed as a suited use case, including streaming code generation for latency-sensitive workflows.

Real-time coding assistants are documented as a fit as well, with the model described as suitable for AI coding assistants and real-time coding assistants.

Capabilities

  • Reasoning
  • Streaming

GLM 5.2 Fast Preview API pricing

GLM 5.2 Fast Preview pricing in US dollars
UsagePriceUnit
Input$3.51M tokens
Output$111M tokens
Cached input$0.71M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

GLM 5.2 Fast Preview vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
GLM 5.2 Fast Preview$3.5$11
GLM-5.3-Flash$0.15$0.5
GLM 5.3 FlashX$0.37$1.25
GLM-5.3$1.4$4.4
GLM-5.2$1.4$4.4

How to use the GLM 5.2 Fast Preview API

View docs (opens in a new tab)

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "alibaba/glm-5.2-fast-preview",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

GLM 5.2 Fast Preview FAQ

What is the context window of GLM 5.2 Fast Preview?

GLM 5.2 Fast Preview has a 1,000,000 tokens context window and can return up to 131,072 tokens.

What inputs and outputs does GLM 5.2 Fast Preview support?

GLM 5.2 Fast Preview takes text as input and returns text.

What is the model ID for GLM 5.2 Fast Preview?

Use alibaba/glm-5.2-fast-preview as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

When was GLM 5.2 Fast Preview released?

GLM 5.2 Fast Preview became available on July 10, 2026.

How much does GLM 5.2 Fast Preview cost?

GLM 5.2 Fast Preview costs $3.5 input and $11 output per 1M tokens on AI/ML API, billed as you go with no subscription.

Does GLM 5.2 Fast Preview support streaming?

Yes, GLM 5.2 Fast Preview can stream responses as they are generated.

Who created GLM 5.2 Fast Preview?

GLM 5.2 Fast Preview was built by Zhipu AI.

What features and capabilities does GLM 5.2 Fast Preview offer?

It supports reasoning, streaming, structured output, tools, and parallel tool calls.

Start building with GLM 5.2 Fast Preview

GLM 5.2 Fast Preview API

alibaba/glm-5.2-fast-preview

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "alibaba/glm-5.2-fast-preview",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'