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
zhipu/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 a high-speed variant of Zhipu AI's GLM-5.2.

It is described as an inference-optimized preview model with capabilities on par with the standard version.

Technical Reference

DeveloperZhipu AI
Model IDzhipu/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 positioned as the fast-inference version of GLM-5.2.

Latency-focused
It is described as suitable for latency-sensitive scenarios.

Output throughput
The model is said to deliver 1.5–2× the output TPS of the standard version.

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

Where GLM 5.2 Fast Preview Makes the Most Sense

Real-time chat
It is described as fitting real-time dialogue and chat workloads.

Multi-turn agents
It is described as suitable for multi-turn agent interactions.

Streaming code generation
It is described as a fit for streaming code generation.

Speed-sensitive inference
It is positioned for scenarios where output speed is critical.

Use cases

Real-time chat is a documented fit for this model because it is inference-optimized for latency-sensitive use cases.

Multi-turn agents are also explicitly listed as a suitable use case, including agent-style interactions that benefit from fast output.

Streaming code generation is another documented use case for this model, reflecting its optimization for low-latency, incremental output.

The model is also described as suitable for real-time dialogue and multi-turn Agent calls in another source covering the same exact model.

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": "zhipu/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 zhipu/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.

How do you access GLM 5.2 Fast Preview via API?

It is available at the endpoint https://api.aimlapi.com/v1/chat/completions using the model id zhipu/glm-5-2-fast-preview.

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

zhipu/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": "zhipu/glm-5-2-fast-preview",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'