NewKimi K3.1 Pro is now availableTry it now

GLM-5.2 Fast

Run GLM-5.2 Fast by Z.ai on Inference.net through a serverless, OpenAI-compatible API at $2.60 per 1M input tokens and $8.80 per 1M output tokens. Built on a Mixture-of-Experts architecture with a 1M-token context window with tool calling support, it streams low-latency responses with Zero Data Retention enabled by default.

Z.aiTool-Calling ModelMixture-of-Experts1M context
MODEL SPEC
Developed by
Z.ai
Model family
GLM-5.2 Fast
Size
Not disclosed
Architecture
Mixture-of-Experts
Context window
1M tokens
Max output
128K tokens
License
MIT
Overview

GLM-5.2 Fast is a tool-calling model from Z.ai built on a Mixture-of-Experts architecture, available through the Inference.net serverless API. Use the same OpenAI-compatible request shape across the catalog and switch models by changing a single identifier.

The API supports streaming responses and project-scoped credentials. Usage, token volume, and spend appear in the dashboard automatically, so the model can move from evaluation to production without a second integration path.

QUICKSTARTGet API key
import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://api.inference.net/v1',
  apiKey: process.env.INFERENCE_API_KEY,
})

const completion = await client.chat.completions.create({
  model: 'glm-5.2-fast',
  messages: [{ role: 'user', content: 'Hello' }],
})

PRICING & TOKEN RATES

USD per 1M tokens
GLM-5.2 Fast API pricing per 1 million tokens on Inference.net
Token typeRate (per 1M)Details
Input$2.60Standard prompt tokens
Cache read$0.4085% savings vs. standard input
Output$8.80Generated completion tokens
Reasoning$8.80Reasoning / thinking output tokens

SPECIFICATIONS & CAPABILITIES

glm-5.2-fast
GLM-5.2 Fast technical specifications and API capabilities on Inference.net
SpecificationValue
MakerZ.ai
ArchitectureMixture-of-Experts
ParametersNot disclosed
QuantizationNative / Unspecified
Context window1M tokens (1,000,000)
Max output128K tokens (128,000)
Input modalitiesText
Output modalitiesText
Tool callingSupported
Structured outputsNot supported
JSON object modeNot supported
LogprobsNot specified
Reasoning effortsNot supported
Supported wire endpoints/v1/chat/completions/v1/responses/v1/messages
Data residencyGlobal (api.inference.net)
LicenseMIT
Hugging Face repositorynvidia/GLM-5.2-NVFP4
Release dateAug 18, 2026
PROMPT CACHING
  1. Keep the prompt prefix byte-identical across calls: same text, same order.
  2. Pass a stable prompt_cache_key string. It is a routing-affinity hint; it does not create or identify cached content.
  3. Check usage.prompt_tokens_details.cached_tokens in the response to confirm cache reads.
{
  "prompt_cache_key": "v1-stable-prefix",
  "messages": [{ "role": "user", "content": "..." }]
}

Estimate monthly savings for your prefix length and hit rate in the Prompt Cache Savings Calculator.

AGENT INTEGRATIONSView all
FAQ

Frequently asked questions about GLM-5.2 Fast

On Inference.net, GLM-5.2 Fast is priced at $2.60 per 1M input tokens and $8.80 per 1M output tokens. Cached input reads are $0.40 per 1M tokens (85% less than standard input). Prompt caching is supported by keeping the prompt prefix byte-identical and passing a stable prompt_cache_key routing hint.

Head-to-head comparisons
All comparisons
Related models
See all models
Ready when you are

Start building with GLM-5.2 Fast today

Serverless, OpenAI-compatible, and billed per token. No commitments.